- avoid crash when local-request event route is triggered inside another one
Nested calls to tm:local-routes generate a crash.
I've been recently experiencing this with the following scenario:
- event_route[tm:local-request] defined
- dialog module's send_bye param set to 1
- htable module's enable_dmq param set to 1
When a dialog reaches the timeout, the BYE generated by dialog module triggers the
tm:local-request event route. One of the operations done in my scenario is an htable
decrement on a table for which dmq replication is enabled. This trigger again the tm event
route (because dmq is using tm uac). When the execution of the 2nd route ends the first
one is continued, but the sip_msg structure is at this point corrupted because is declared
static in t_run_local_req.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1348
-- Commit Summary --
* tm: make t_run_local_req reentrant
-- File Changes --
M src/modules/tm/uac.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1348.patch
https://github.com/kamailio/kamailio/pull/1348.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1348