User Tools

Site Tools


kemi:performance-tests:5.2.x

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
kemi:performance-tests:5.2.x [2018/12/06 09:42]
miconda [SIPP Scenario]
kemi:performance-tests:5.2.x [2018/12/11 17:21]
miconda [SIPP Testing Command]
Line 131: Line 131:
  
 ===== SIPP Testing Command ===== ===== SIPP Testing Command =====
 +
 +SIPP was run on the same system with Kamailio. The command is:
  
 <code> <code>
Line 505: Line 507:
  
 #!ifdef WITH_CFGPYTHON #!ifdef WITH_CFGPYTHON
-modparam("app_python", "script_name", "/usr/local/etc/kamailio/kamailio-basic-kemi-python.py")+modparam("app_python", "script_name", "../etc/kamailio-basic-kemi-python.py")
 cfgengine "python" cfgengine "python"
 #!else #!else
Line 516: Line 518:
  
 #!ifdef WITH_CFGJSDT #!ifdef WITH_CFGJSDT
-modparam("app_jsdt", "load", "/usr/local/etc/kamailio/kamailio-basic-kemi-jsdt.js")+modparam("app_jsdt", "load", "../etc/kamailio-basic-kemi-jsdt.js")
 cfgengine "jsdt" cfgengine "jsdt"
 #!else #!else
 #!ifdef WITH_CFGSQLANG #!ifdef WITH_CFGSQLANG
-modparam("app_sqlang", "load", "/usr/local/etc/kamailio/kamailio-basic-kemi-sqlang.sq")+modparam("app_sqlang", "load", "../etc/kamailio-basic-kemi-sqlang.sq")
 cfgengine "sqlang" cfgengine "sqlang"
 #!else #!else
Line 1009: Line 1011:
 function ksr_route_reqinit() function ksr_route_reqinit()
  if not KSR.is_myself_srcip() then  if not KSR.is_myself_srcip() then
- if not KSR.htable.sht_has_name("ipban", "eq", K_si) then+ if KSR.htable.sht_has_name("ipban", "eq", K_si) > 0 then
  -- ip is already blocked  -- ip is already blocked
  KSR.dbg("request from blocked IP - " .. K_rm  KSR.dbg("request from blocked IP - " .. K_rm
Line 1022: Line 1024:
  end  end
  end  end
- if KSR.corex.has_user_agent() then+ if KSR.corex.has_user_agent() > 0 then
  if string.find(K_ua, "friendly-scanner")  if string.find(K_ua, "friendly-scanner")
  or string.find(K_ua, "sipcli") then  or string.find(K_ua, "sipcli") then
Line 1433: Line 1435:
                 return -255;                 return -255;
  
-        if KSR.corex.has_user_agent() :+        if KSR.corex.has_user_agent() > 0 :
             ua = KSR.pv.gete("$ua")             ua = KSR.pv.gete("$ua")
             if (ua.find("friendly-scanner")!=-1             if (ua.find("friendly-scanner")!=-1
Line 1680: Line 1682:
 </code> </code>
  
-Executed when running with Lua scripting language:+Executed when running with Python scripting language:
  
 <code> <code>
kemi/performance-tests/5.2.x.txt ยท Last modified: 2019/01/07 09:05 by miconda