Skip to content

Commit

Permalink
dialog: increase cseq after uac auth for local acks
Browse files Browse the repository at this point in the history
- related to GH #918, #919

(cherry picked from commit b75d4ca)
  • Loading branch information
miconda committed Jan 17, 2017
1 parent 3c53097 commit 869b496
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions modules/dialog/dlg_cseq.c
Expand Up @@ -401,15 +401,13 @@ int dlg_cseq_msg_sent(void *data)
parse_headers(&msg, HDR_EOH_F, 0);

/* check if transaction is marked for a new increment */
if(get_cseq(&msg)->method_id!=METHOD_ACK) {
hfk = sr_hdr_get_z(&msg, cenv->uac_cseq_auth.s);
if(hfk!=NULL) {
LM_DBG("new cseq inc requested\n");
nval = hfk->body;
trim(&nval);
} else {
LM_DBG("new cseq inc not requested\n");
}
hfk = sr_hdr_get_z(&msg, cenv->uac_cseq_auth.s);
if(hfk!=NULL) {
LM_DBG("new cseq inc requested\n");
nval = hfk->body;
trim(&nval);
} else {
LM_DBG("new cseq inc not requested\n");
}

if(nval.len<=0) {
Expand All @@ -418,6 +416,8 @@ int dlg_cseq_msg_sent(void *data)
LM_DBG("cseq refresh requested\n");
nval = hfk->body;
trim(&nval);
} else {
LM_DBG("cseq refresh not requested\n");
}
}
if(nval.len<=0) {
Expand Down

0 comments on commit 869b496

Please sign in to comment.