[sr-dev] bug in tm module?

dpaape at frontier.com dpaape at frontier.com
Wed Mar 23 16:32:55 CET 2022

Hello I'm running K5.5.3 and have checked the 'issues' link in github and saw nothing regarding what I am seeing.  I think that there is a bug in the tm module with respect to the "tm:local-response" event route.  In the "t_reply.c" file, there is a static variable called '_tm_local_response_set_lookup'.  This variable is initialized at load time to zero.  It is checked in the '_reply_light()' routine and will initiate a local callback from the config script if "armed".  The problem as I see it is that if the callback is readied, the variable is set to one.  But it is never reset.So the practical outworking is as follows.  A register is received and the request_route arms the callback.  The register requires an authorization (local database sqlite).  After the 401 is sent back, the callback via the module event route is called as expected.  All good except that the module event route script fragment is never executed again after the first call.I'm no expert on the tm module but I would think that somewhere in there, the variable should be reset to zero so that subsequent transactions can initiate the event route again.
thanks for any help,Dan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220323/e8cbde40/attachment-0001.htm>

More information about the sr-dev mailing list