From ed5950376624b178eb7dddff8620c4f0c4553516 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 19 Jul 2010 19:59:29 +0200 Subject: [PATCH] link existing (incomplete) TC-U-ABORT.req code to TC-User API --- src/csl_dha.c | 4 ++-- src/tcu.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/csl_dha.c b/src/csl_dha.c index 8eedb68..6aa76ce 100644 --- a/src/csl_dha.c +++ b/src/csl_dha.c @@ -481,8 +481,8 @@ int tcap_csl_tc_u_abort_req(struct tcap_dialogue *td, uint32_t *abrt_reason, /* Build ABRT apdu (source = dialogue-service-user) */ } } - /* TR-U-ABORT.req to TSL */ - //tcap_tco_tr_u_abort_req(); + /* FIXME: TR-U-ABORT.req to TSL */ + //tcap_tco_tr_u_abort_req(tt, tcmsg); /* Dialogue terminated to CHA */ tcap_cha_dialg_term(td); /* Free Dialogue ID */ diff --git a/src/tcu.c b/src/tcu.c index 2226613..08e6390 100644 --- a/src/tcu.c +++ b/src/tcu.c @@ -218,6 +218,9 @@ LIB_EXPORTED int tcap_user_req_dialg(enum tcap_primitive prim, struct tcap_dialg case TCAP_PR_TC_END: rc = tcap_csl_tc_end_req(td, app_ctx, user_info, tcdi->prearranged_end); break; + case TCAP_PR_TC_U_ABORT: + rc = tcap_csl_tc_u_abort_req(td, &tcdi->reason, app_ctx, user_info); + break; default: fprintf(stderr, "unsupported component primitive %s\n", tcap_prim_name(prim)); return -EINVAL;