Browse code

dialog: skip non-INVITE initial request for cseq update processing

(cherry picked from commit a973882b064c758972ce40e9ac3a83440c613be1)
(cherry picked from commit a309a0ee48278923871197391a30d485f0513a4f)

Daniel-Constantin Mierla authored on 02/11/2020 08:04:46
Showing 1 changed files
... ...
@@ -381,6 +381,13 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
381 381
 		goto done;
382 382
 	}
383 383
 
384
+	if((get_to(&msg)->tag_value.len>0)) {
385
+		/* intial request - handle only INVITEs */
386
+		if(msg.first_line.u.request.method_value!=METHOD_INVITE) {
387
+			goto done;
388
+		}
389
+	}
390
+
384 391
 	LM_DBG("traking cseq updates\n");
385 392
 	via = (struct via_body*)msg.h_via1->parsed;
386 393