[sr-dev] git:master:beb99b3e: misc/example/kemi: merge condition lines in kamailio-basic-kemi-python.py
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 6 09:17:32 CET 2018
Module: kamailio
Branch: master
Commit: beb99b3e4911506246bdd4eaed9aae582232eb84
URL: https://github.com/kamailio/kamailio/commit/beb99b3e4911506246bdd4eaed9aae582232eb84
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/beb99b3e4911506246bdd4eaed9aae582232eb84.diff
Patch: https://github.com/kamailio/kamailio/commit/beb99b3e4911506246bdd4eaed9aae582232eb84.patch
---
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;
More information about the sr-dev
mailing list