From d678d095858271a0282b8a824840880f9994041b Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 4 May 2017 18:05:07 +0200 Subject: [PATCH] misc/examples: handle return code for ksr_route_withindlg() in kemy python example - closes GH #1117 --- misc/examples/kemi/kamailio-basic-kemi-python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/examples/kemi/kamailio-basic-kemi-python.py b/misc/examples/kemi/kamailio-basic-kemi-python.py index 8d23a6b3560..b38a33144f6 100644 --- a/misc/examples/kemi/kamailio-basic-kemi-python.py +++ b/misc/examples/kemi/kamailio-basic-kemi-python.py @@ -66,7 +66,8 @@ def ksr_request_route(self, msg): return 1; # handle requests within SIP dialogs - self.ksr_route_withindlg(msg); + if self.ksr_route_withindlg(msg)==-255 : + return 1; # -- only initial requests (no To tag)