Module: kamailio
Branch: master
Commit: 323e96dbe5f263d66134183de8b2e8cff268431f
URL:
https://github.com/kamailio/kamailio/commit/323e96dbe5f263d66134183de8b2e8c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-06T10:22:12+01:00
misc/examples/kemi/kamailio-basic-kemi-python.py: fix condition on user agent
---
Modified: misc/examples/kemi/kamailio-basic-kemi-python.py
---
Diff:
https://github.com/kamailio/kamailio/commit/323e96dbe5f263d66134183de8b2e8c…
Patch:
https://github.com/kamailio/kamailio/commit/323e96dbe5f263d66134183de8b2e8c…
---
diff --git a/misc/examples/kemi/kamailio-basic-kemi-python.py
b/misc/examples/kemi/kamailio-basic-kemi-python.py
index eb31480f01..dc0f7957da 100644
--- a/misc/examples/kemi/kamailio-basic-kemi-python.py
+++ b/misc/examples/kemi/kamailio-basic-kemi-python.py
@@ -156,7 +156,7 @@ def ksr_route_reqinit(self, msg):
KSR.pv.seti("$sht(ipban=>$si)", 1);
return -255;
- if KSR.corex.has_user_agent() :
+ if KSR.corex.has_user_agent() > 0 :
ua = KSR.pv.gete("$ua")
if (ua.find("friendly-scanner")!=-1
or ua.find("sipcli")!=-1) :