Skip to content

Commit

Permalink
dialog: skip doing cseq update processing for non-sip requests
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 4, 2020
1 parent 81d3e7a commit 960b60e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/dialog/dlg_cseq.c
Expand Up @@ -381,7 +381,12 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
goto done;
}

if((get_to(&msg)->tag_value.len<=0)) {
if(!IS_SIP(&msg)) {
/* nothing to do for non-sip requests */
goto done;
}

if(get_to(&msg)->tag_value.len<=0) {
/* intial request - handle only INVITEs */
if(msg.first_line.u.request.method_value!=METHOD_INVITE) {
goto done;
Expand Down

0 comments on commit 960b60e

Please sign in to comment.