Browse code

misc/example/kemi: merge condition lines in kamailio-basic-kemi-python.py

- fix syntax error

Daniel-Constantin Mierla authored on 06/12/2018 08:16:31
Showing 1 changed files
... ...
@@ -276,8 +276,7 @@ class kamailio:
276 276
 
277 277
         # if caller is not local subscriber, then check if it calls
278 278
         # a local destination, otherwise deny, not an open relay here
279
-        if (not KSR.is_myself_furi())
280
-                and (not KSR.is_myself_ruri()) :
279
+        if (not KSR.is_myself_furi()) and (not KSR.is_myself_ruri()) :
281 280
             KSR.sl.sl_send_reply(403,"Not relaying");
282 281
             return -255;
283 282