Module: kamailio
Branch: master
Commit: fd35a1a4eee2c50a3b7bf4ee6b1f6f20f4fa7d62
URL:
https://github.com/kamailio/kamailio/commit/fd35a1a4eee2c50a3b7bf4ee6b1f6f2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-17T14:54:04+01:00
dialog: handle CANCEL requests for CSeq updates
---
Modified: src/modules/dialog/dlg_cseq.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fd35a1a4eee2c50a3b7bf4ee6b1f6f2…
Patch:
https://github.com/kamailio/kamailio/commit/fd35a1a4eee2c50a3b7bf4ee6b1f6f2…
---
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;
}
}