[sr-dev] git:master:654f22a0: dialog: set context iuid for CANCEL requests to let isflagset function return the right value in case a dialog flag was previously set on the call
Daniel-Constantin Mierla
miconda at gmail.com
Fri Aug 26 09:50:40 CEST 2022
Module: kamailio
Branch: master
Commit: 654f22a03e874f86c4b2b2d29eb969a1be3bb25e
URL: https://github.com/kamailio/kamailio/commit/654f22a03e874f86c4b2b2d29eb969a1be3bb25e
Author: David Escartin <descartin at sonoc.io>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-08-26T09:49:42+02:00
dialog: set context iuid for CANCEL requests to let isflagset function return the right value in case a dialog flag was previously set on the call
---
Modified: src/modules/dialog/dlg_handlers.c
---
Diff: https://github.com/kamailio/kamailio/commit/654f22a03e874f86c4b2b2d29eb969a1be3bb25e.diff
Patch: https://github.com/kamailio/kamailio/commit/654f22a03e874f86c4b2b2d29eb969a1be3bb25e.patch
---
diff --git a/src/modules/dialog/dlg_handlers.c b/src/modules/dialog/dlg_handlers.c
index 39f1f83dd7..794aa7c7d2 100644
--- a/src/modules/dialog/dlg_handlers.c
+++ b/src/modules/dialog/dlg_handlers.c
@@ -1258,6 +1258,9 @@ dlg_cell_t *dlg_lookup_msg_dialog(sip_msg_t *msg, unsigned int *dir)
msg->callid->body.len, msg->callid->body.s);
return NULL;
}
+ if(msg->first_line.u.request.method_value == METHOD_CANCEL) {
+ dlg_set_ctx_iuid(dlg);
+ }
if(dir) *dir = vdir;
return dlg;
}
More information about the sr-dev
mailing list