Răsfoiți Sursa

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

- fix syntax error
Daniel-Constantin Mierla 6 ani în urmă
părinte
comite
beb99b3e49
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      misc/examples/kemi/kamailio-basic-kemi-python.py

+ 1 - 2
misc/examples/kemi/kamailio-basic-kemi-python.py

@@ -276,8 +276,7 @@ class kamailio:
 
 
         # if caller is not local subscriber, then check if it calls
         # if caller is not local subscriber, then check if it calls
         # a local destination, otherwise deny, not an open relay here
         # 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");
             KSR.sl.sl_send_reply(403,"Not relaying");
             return -255;
             return -255;