Module: kamailio
Branch: 5.4
Commit: 88d1eb7a79acd6afecb3d6760889433f69646b5b
URL:
https://github.com/kamailio/kamailio/commit/88d1eb7a79acd6afecb3d6760889433…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-17T14:55:13+01:00
dialog: handle CANCEL requests for CSeq updates
(cherry picked from commit fd35a1a4eee2c50a3b7bf4ee6b1f6f20f4fa7d62)
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/88d1eb7a79acd6afecb3d6760889433…
Patch:
https://github.com/kamailio/kamailio/commit/88d1eb7a79acd6afecb3d6760889433…
---
diff --git a/src/modules/dialog/dlg_cseq.c b/src/modules/dialog/dlg_cseq.c
index 17c63bbb1c..70b2b43c2b 100644
--- a/src/modules/dialog/dlg_cseq.c
+++ b/src/modules/dialog/dlg_cseq.c
@@ -387,8 +387,9 @@ int dlg_cseq_msg_sent(sr_event_param_t *evp)
}
if(get_to(&msg)->tag_value.len<=0) {
- /* intial request - handle only INVITEs */
- if(msg.first_line.u.request.method_value!=METHOD_INVITE) {
+ /* intial request - handle only INVITEs, ACKs and CANCELs */
+ if(!(msg.first_line.u.request.method_value
+ & (METHOD_INVITE|METHOD_ACK|METHOD_CANCEL))) {
goto done;
}
}