Module: kamailio
Branch: master
Commit: beb99b3e4911506246bdd4eaed9aae582232eb84
URL:
https://github.com/kamailio/kamailio/commit/beb99b3e4911506246bdd4eaed9aae5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-06T09:16:31+01:00
misc/example/kemi: merge condition lines in kamailio-basic-kemi-python.py
- fix syntax error
---
Modified: misc/examples/kemi/kamailio-basic-kemi-python.py
---
Diff:
https://github.com/kamailio/kamailio/commit/beb99b3e4911506246bdd4eaed9aae5…
Patch:
https://github.com/kamailio/kamailio/commit/beb99b3e4911506246bdd4eaed9aae5…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-python.py
b/misc/examples/kemi/kamailio-basic-kemi-python.py
index 861464fd23..eb31480f01 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-python.py
+++ b/misc/examples/kemi/kamailio-basic-kemi-python.py
@@ -276,8 +276,7 @@ def ksr_route_auth(self, msg):
# if caller is not local subscriber, then check if it calls
# a local destination, otherwise deny, not an open relay here
- if (not KSR.is_myself_furi())
- and (not KSR.is_myself_ruri()) :
+ if (not KSR.is_myself_furi()) and (not KSR.is_myself_ruri()) :
KSR.sl.sl_send_reply(403,"Not relaying");
return -255;