[sr-dev] [kamailio/kamailio] Potential bug in kamailio-basic-kemi-python.py (#1117)
Sam
notifications at github.com
Wed May 3 22:56:54 CEST 2017
In the file kamailio-basic-kemi-python.py:65 it reads
```
# handle requests within SIP dialogs
self.ksr_route_withindlg(msg);
```
I wonder if it shouldn't read:
```
# handle requests within SIP dialogs
if self.ksr_route_withindlg(msg) == -255:
return 1
# -- only initial requests (no To tag)
```
Seems like that is the intended behavior based on the native example script and the return codes from ksr_route_withindlg(). Kamailio will always keep processing everything below line 69 regardless of the outcome of ksr_route_withindlg(). It might run fine anyway, but the comment is misleading in that case.
I'm a beginner on Kamailio so any apologies if I misunderstood something here.
The KEMI module is really exciting and we are developing a new project with it. So far it works great!
--
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/issues/1117
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170503/e5f6c58f/attachment.html>
More information about the sr-dev
mailing list