Enable TC-END.req from user/application

This commit is contained in:
Harald Welte 2010-07-17 19:32:40 +02:00
parent a64f6ccfff
commit a5937f28d9
3 changed files with 8 additions and 4 deletions

View File

@ -16,7 +16,8 @@ struct tcap_dialg_ind {
struct tcap_address *dst_addr;
struct OBJECT_IDENTIFIER *app_ctx_name;
struct user_information *user_info;
int components_present;
int components_present:1;
int prearranged_end:1;
uint32_t reason;
void *qos;
};

View File

@ -199,6 +199,9 @@ int tcap_user_req_dialg(enum tcap_primitive prim, struct tcap_dialg_ind *tcdi)
case TCAP_PR_TC_CONTINUE:
rc = tcap_csl_tc_cont_req(td, tcdi->app_ctx_name, tcdi->user_info);
break;
case TCAP_PR_TC_END:
rc = tcap_csl_tc_end_req(td, tcdi->app_ctx_name, tcdi->user_info, tcdi->prearranged_end);
break;
default:
fprintf(stderr, "unsupported component primitive %s\n", tcap_prim_name(prim));
return -EINVAL;

View File

@ -206,7 +206,7 @@ int tcap_tsm_end_rcvd(struct tcap_transaction *tt, struct TCMessage *tcmsg, stru
/* TSM-stopped to TCO */
tcap_tco_tsm_stopped_ind(tt);
tacp_trans_set_state(tt, TCAP_TS_INVALID);
tcap_trans_set_state(tt, TCAP_TS_INVALID);
return rc;
}
@ -231,7 +231,7 @@ int tcap_tsm_abort_rcvd(struct tcap_transaction *tt, struct TCMessage *tcmsg, st
/* TSM-stopped to TCO */
tcap_tco_tsm_stopped_ind(tt);
tacp_trans_set_state(tt, TCAP_TS_INVALID);
tcap_trans_set_state(tt, TCAP_TS_INVALID);
return rc;
}
@ -255,7 +255,7 @@ int tcap_tsm_local_abort(struct tcap_transaction *tt)
/* TSM-stopped to TCO */
tcap_tco_tsm_stopped_ind(tt);
tacp_trans_set_state(tt, TCAP_TS_INVALID);
tcap_trans_set_state(tt, TCAP_TS_INVALID);
return rc;
}