Bladeren bron

examples/kemi: align the list of unfriendly UAs to the native cnf file

Дилян Палаузов 2 jaren geleden
bovenliggende
commit
6dadb322af

+ 2 - 1
misc/examples/kemi/kamailio-basic-kemi-jsdt.js

@@ -135,7 +135,8 @@ function ksr_route_reqinit()
 	if (KSR.corex.has_user_agent()>0) {
 		var UA = KSR.kx.gete_ua();
 		if (UA.indexOf("friendly")>=0 || UA.indexOf("scanner")>=0
-				|| UA.indexOf("sipcli")>=0 || UA.indexOf("sipvicious")>=0) {
+				|| UA.indexOf("sipcli")>=0 || UA.indexOf("sipvicious")>=0
+				|| UA.indexOf("VaxSIPUserAgent")>=0 || UA.indexOf("pplsip")>= 0) {
 			KSR.sl.sl_send_reply(200, "OK");
 			KSR.x.exit();
 		}

+ 2 - 1
misc/examples/kemi/kamailio-basic-kemi-lua.lua

@@ -184,7 +184,8 @@ function ksr_route_reqinit()
 	end
 	local ua = KSR.kx.gete_ua();
 	if string.find(ua, "friendly") or string.find(ua, "scanner")
-			or string.find(ua, "sipcli") or string.find(ua, "sipvicious") then
+			or string.find(ua, "sipcli") or string.find(ua, "sipvicious")
+			or string.find(ua, "VaxSIPUserAgent") or string.find(ua, "pplsip") then
 		KSR.sl.sl_send_reply(200, "OK");
 		KSR.x.exit();
 	end

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

@@ -158,7 +158,8 @@ class kamailio:
         if KSR.corex.has_user_agent() > 0 :
             ua = KSR.pv.gete("$ua")
             if (ua.find("friendly")!=-1 or ua.find("scanner")!=-1
-                    or ua.find("sipcli")!=-1 or ua.find("sipvicious")!=-1) :
+                    or ua.find("sipcli")!=-1 or ua.find("sipvicious")!=-1
+                    or ua.find("VaxSIPUserAgent")!=-1 or ua.find("pplsip")!=-1) :
                 KSR.sl.sl_send_reply(200, "Processed")
                 return -255
 

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

@@ -146,7 +146,8 @@ def ksr_route_reqinit():
     if KSR.corex.has_user_agent() > 0 :
         ua = KSR.kx.gete_ua()
         if (ua.find("friendly")!=-1 or ua.find("scanner")!=-1
-                or ua.find("sipcli")!=-1 or ua.find("sipvicious")!=-1) :
+                or ua.find("sipcli")!=-1 or ua.find("sipvicious")!=-1
+                or ua.find("VaxSIPUserAgent")!=-1 or ua.find("pplsip")!=-1) :
             KSR.sl.sl_send_reply(200, "Processed")
             return -255
 

+ 2 - 1
misc/examples/kemi/kamailio-basic-kemi-ruby.rb

@@ -123,7 +123,8 @@ def ksr_route_reqinit()
   if KSR::COREX.has_user_agent() > 0 then
     ua = KSR::PV.gete("$ua");
     if ua.include? 'friendly' or ua.include? 'scanner' or
-        ua.include? 'sipcli' or ua.include? 'sipvicious' then
+        ua.include? 'sipcli' or ua.include? 'sipvicious' or
+        ua.include? 'VaxSIPUserAgent' or ua.include? 'pplsip' then
       KSR::SL.sl_send_reply(200, "OK");
       exit
     end

+ 2 - 1
misc/examples/kemi/kamailio-basic-kemi-sqlang.sq

@@ -138,7 +138,8 @@ function ksr_route_reqinit()
 		local UA = KSR.pv.get("$ua");
 		// if (sipscanregex.match(UA)) {
 		if (UA.find("friendly")!=null || UA.find("scanner")!=null
-				|| UA.find("sipcli")!=null || UA.find("sipvicious")!=null) {
+				|| UA.find("sipcli")!=null || UA.find("sipvicious")!=null
+				|| UA.find("VaxSIPUserAgent")!= null || UA.find("pplsip")!= null) {
 			KSR.sl.sl_send_reply(200, "OK");
 			KSR.x.exit();
 		}