doc/
subfolder, the README file is autogenerated)This PR fixes an issue regarding KEMI framework for onsend_route.
KSR.set_drop() in ksr_onsend_route does not make kamailio dropping the message when using kemi (python3) (probably holds true for other engines too):
This is exactly the example from documentation:
def ksr_onsend_route(self, msg):
KSR.set_drop()
exit()
The issue arises because we are not setting ret = 0
when the drop flag is set, but instead check if it's not set to return ret=1
(The case for native that returns 0
but no DROP_R_F
was set).
Note:
KEMI Case: ret = 1
always See app_python3/apy_kemi.c
Native case: ret
can be 0
for drop, or 1
for success
https://github.com/kamailio/kamailio/pull/3718
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.