Browse code

misc/examples/kemi/kamailio-basic-kemi-python.py: fix condition on user agent

Daniel-Constantin Mierla authored on 06/12/2018 09:22:12
Showing 1 changed files
... ...
@@ -156,7 +156,7 @@ class kamailio:
156 156
                 KSR.pv.seti("$sht(ipban=>$si)", 1);
157 157
                 return -255;
158 158
 
159
-        if KSR.corex.has_user_agent() :
159
+        if KSR.corex.has_user_agent() > 0 :
160 160
             ua = KSR.pv.gete("$ua")
161 161
             if (ua.find("friendly-scanner")!=-1
162 162
                     or ua.find("sipcli")!=-1) :