Browse code

dialog: skip doing cseq update processing for non-sip requests

(cherry picked from commit 960b60ede8543f38b61ad2769e81e11d5a777df8)

Daniel-Constantin Mierla authored on 04/11/2020 10:15:10
Showing 1 changed files
... ...
@@ -381,7 +381,12 @@ 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)) {
384
+	if(!IS_SIP(&msg)) {
385
+		/* nothing to do for non-sip requests */
386
+		goto done;
387
+	}
388
+
389
+	if(get_to(&msg)->tag_value.len<=0) {
385 390
 		/* intial request - handle only INVITEs */
386 391
 		if(msg.first_line.u.request.method_value!=METHOD_INVITE) {
387 392
 			goto done;