Skip to content

Commit

Permalink
dialog: skip non-INVITE initial request for cseq update processing
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 2, 2020
1 parent c6b642c commit a973882
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/dialog/dlg_cseq.c
Expand Up @@ -381,6 +381,13 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
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;
}
}

LM_DBG("traking cseq updates\n");
via = (struct via_body*)msg.h_via1->parsed;

Expand Down

0 comments on commit a973882

Please sign in to comment.