Browse code

dialog: handle CANCEL requests for CSeq updates

(cherry picked from commit fd35a1a4eee2c50a3b7bf4ee6b1f6f20f4fa7d62)

Daniel-Constantin Mierla authored on 17/12/2020 13:54:04 • Henning Westerholt committed on 21/12/2020 15:34:12
Showing 1 changed files
... ...
@@ -387,8 +387,9 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
387 387
 	}
388 388
 
389 389
 	if(get_to(&msg)->tag_value.len<=0) {
390
-		/* intial request - handle only INVITEs */
391
-		if(msg.first_line.u.request.method_value!=METHOD_INVITE) {
390
+		/* intial request - handle only INVITEs, ACKs and CANCELs */
391
+		if(!(msg.first_line.u.request.method_value
392
+					& (METHOD_INVITE|METHOD_ACK|METHOD_CANCEL))) {
392 393
 			goto done;
393 394
 		}
394 395
 	}