#ALL MESSAGES
if($sht(a=>method::all) > 0) {
sql_query("cb", "INSERT INTO stats_method
(from_date, to_date, method, total) VALUES($var(f_date),
$var(t_date), 'ALL', $sht(a=>method::all))");
$sht(a=>method::all) = 0;
}
}
However, Kamailio's routing logic syntax is different and
I'm having a hard time parsing through it. This is what the
RTCP-XR collection logic looks like in the Opensips routing
logic:
# main request routing logic
route{
#For example, you can capture only needed
methods...
if (method =~
"^(INVITE|ACK|CANCEL|BYE|REFER|PRACK|UPDATE)") {
sip_capture();
}
else if (method =~ "^PUBLISH" && !$ct
=~ "x-sipX-nonat" && $rd = "
domain.com"
) {
#xlog("$rd=================================");
perl_exec("messagedump");
t_reply("200","PUBLISH RECORDED");
}
exit;
}
onreply_route {
#And only needed reply or needed requests
method
if(status =~
"^(1[0-9][0-9]|[3[0-9][0-9]|4[0-9]|[56][0-9][0-9])") {
if($rm =~
"^(INVITE|ACK|CANCEL|BYE|REFER|PRACK|UPDATE)") {
sip_capture();
}
exit;
}
}
Any help would be appreciated.
--
Ashlin Jones-Acosta
Telephony Systems Engineer
Infrastructure Technology
Direct: (805) 222-0934
PennyMac