Skip to content

Commit

Permalink
misc/examples/kemi/kamailio-basic-kemi-python.py: fix condition on us…
Browse files Browse the repository at this point in the history
…er agent
  • Loading branch information
miconda committed Dec 6, 2018
1 parent c3f3f08 commit 323e96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/examples/kemi/kamailio-basic-kemi-python.py
Original file line number Diff line number Diff line change
Expand Up @@ -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) :
Expand Down

0 comments on commit 323e96d

Please sign in to comment.