This shows you the differences between two versions of the page.
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:37] miconda |
kemi:performance-tests:5.2.x [2018/12/11 17:21] miconda [SIPP Testing Command] |
||
---|---|---|---|
Line 110: | Line 110: | ||
test8; | test8; | ||
test9; | test9; | ||
+ | </ | ||
+ | |||
+ | These users have to be added to Kamailio subscriber table. To add them from the source code tree of Kamailio: | ||
+ | |||
+ | < | ||
+ | cd utils/ | ||
+ | DBENGINE=MYSQL ./kamdbctl create | ||
+ | DBENGINE=MYSQL ./kamctl add test0@127.0.0.1 test0 | ||
+ | DBENGINE=MYSQL ./kamctl add test1@127.0.0.1 test1 | ||
+ | DBENGINE=MYSQL ./kamctl add test2@127.0.0.1 test2 | ||
+ | DBENGINE=MYSQL ./kamctl add test3@127.0.0.1 test3 | ||
+ | DBENGINE=MYSQL ./kamctl add test4@127.0.0.1 test4 | ||
+ | DBENGINE=MYSQL ./kamctl add test5@127.0.0.1 test5 | ||
+ | DBENGINE=MYSQL ./kamctl add test6@127.0.0.1 test6 | ||
+ | DBENGINE=MYSQL ./kamctl add test7@127.0.0.1 test7 | ||
+ | DBENGINE=MYSQL ./kamctl add test8@127.0.0.1 test8 | ||
+ | DBENGINE=MYSQL ./kamctl add test9@127.0.0.1 test9 | ||
+ | DBENGINE=MYSQL ./kamctl db show subscriber | ||
</ | </ | ||
===== SIPP Testing Command ===== | ===== SIPP Testing Command ===== | ||
+ | |||
+ | SIPP was run on the same system with Kamailio. The command is: | ||
< | < | ||
Line 487: | Line 507: | ||
#!ifdef WITH_CFGPYTHON | #!ifdef WITH_CFGPYTHON | ||
- | modparam(" | + | modparam(" |
cfgengine " | cfgengine " | ||
#!else | #!else | ||
Line 498: | Line 518: | ||
#!ifdef WITH_CFGJSDT | #!ifdef WITH_CFGJSDT | ||
- | modparam(" | + | modparam(" |
cfgengine " | cfgengine " | ||
#!else | #!else | ||
#!ifdef WITH_CFGSQLANG | #!ifdef WITH_CFGSQLANG | ||
- | modparam(" | + | modparam(" |
cfgengine " | cfgengine " | ||
#!else | #!else | ||
Line 991: | 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(" | + | if KSR.htable.sht_has_name(" |
-- ip is already blocked | -- ip is already blocked | ||
KSR.dbg(" | KSR.dbg(" | ||
Line 1004: | Line 1024: | ||
end | end | ||
end | end | ||
- | if KSR.corex.has_user_agent() then | + | if KSR.corex.has_user_agent() |
if string.find(K_ua, | if string.find(K_ua, | ||
or string.find(K_ua, | or string.find(K_ua, | ||
Line 1252: | Line 1272: | ||
</ | </ | ||
- | ==== Lua Scripting Routing Functions ==== | + | ==== Python |
File: ../ | File: ../ | ||
Line 1415: | Line 1435: | ||
return -255; | return -255; | ||
- | if KSR.corex.has_user_agent() : | + | if KSR.corex.has_user_agent() |
ua = KSR.pv.gete(" | ua = KSR.pv.gete(" | ||
if (ua.find(" | if (ua.find(" | ||
Line 1662: | Line 1682: | ||
</ | </ | ||
- | Executed when running with Lua scripting language: | + | Executed when running with Python |
< | < |