[sr-dev] [kamailio/kamailio] tm: make t_run_local_req reentrant (#1348)

Federico Cabiddu notifications at github.com
Thu Nov 30 15:44:05 CET 2017


- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20171130/68f96e14/attachment.html>


More information about the sr-dev mailing list