I recently interconnected to an upstream carrier using Kamailio 3.0, working fine. We have configure 2 SIP trunks for failover/redundnacy. I'm using dispatcher module to round robin calls to the carrier. I wanted to monitor trunk usage between us. I was reading in the devel 3.2 about some native monitoring in the new dispatcher module without the need to load the dialog module.
Can I use the new module in version 3.0 or will I need to upgrade the core to 3.2?
I typically will not use dev software in production, so can anyone suggest a light method of trunk usage monitoring for ver 3.0? I'm not opposed to using the dialog module, I'm just not familiar with it and not sure the best way to integrate it for usage tracking. I don't need to do billing or capture cdr's on the SIP-Routers so the simpler the better.
Honestly, going the dialog module route is your easiest bet.
-- Alex Balashov - Principal
Thanks Alex,
Would there be any usage examples of dialog module? I'm not sure if I really need profiles and [values] and when to set and unset. A push in the right direction would be helpful.
Thanks.
JR
On 09.05.2011 22:44, JR Richardson wrote:
Would there be any usage examples of dialog module? I'm not sure if I really need profiles and [values] and when to set and unset. A push in the right direction would be helpful.
Hi, here is an example I've used for incoming and outgoing calls tracking, just tune it for your purposes:
loadmodule "dialog.so" modparam("dialog", "dlg_flag", 4) modparam("dialog", "db_mode", 1) modparam("dialog", "profiles_with_value", "carrierin;carrierout") ... create_dialog(); if(is_from_gw()) { # Monitor number of incoming calls get_profile_size("carrierin","$si","$avp(s:cnt)"); xlog("L_INFO", "----- currently, the carrier $si has $avp(s:cnt) active outgoing calls\n"); set_dlg_profile("carrierin","$si"); } else { # Monitor number of outgoing calls get_profile_size("carrierout","$rd","$avp(s:cnt)"); xlog("L_INFO", "----- currently, the carrier $rd has $avp(s:cnt) active outgoing calls\n"); set_dlg_profile("carrierout","$rd"); }