avoid sending a dialogue request with primitive == 0
This commit is contained in:
parent
537e110011
commit
ecf0680aa5
|
@ -46,12 +46,12 @@ static int send_cont_end(uint32_t dialg_id, struct tcap_obj_ident *app_ctx, stru
|
|||
struct tcap_prim_buf tcpb;
|
||||
struct tcap_dialg_ind *tcdi = &tcpb.dialg;
|
||||
|
||||
memset(&tcpb, 0, sizeof(tcpb));
|
||||
if (end)
|
||||
tcpb.prim = TCAP_PR_TC_END;
|
||||
else
|
||||
tcpb.prim = TCAP_PR_TC_CONTINUE;
|
||||
|
||||
memset(&tcpb, 0, sizeof(tcpb));
|
||||
tcdi->dialg_id = dialg_id;
|
||||
if (app_ctx) {
|
||||
memcpy(&tcdi->app_ctx_name, app_ctx, sizeof(tcdi->app_ctx_name));
|
||||
|
|
Loading…
Reference in New Issue