Hello
I need *count* for number of active calls on kamailio server. I have done
following configuration in my kamailio.cfg file
...
loadmodule "dialog.so"
modparam("dialog","profiles_with_value","caller")
modparam("dialog", "dlg_flag", 4)
....
route[0] {
...
if(is_method("INVITE"))
{
get_profile_size("caller", "$fu", "$var(SIZE)");
xlog("L_INFO", "========== $var(SIZE) \n");
if( $var(SIZE) < 1 ){
set_dlg_profile("caller","$fu");
xlog("L_INFO", "M IN server1 ONLY \n");
use_media_proxy();
record_route();
rewritehostport("server.pbx.com:5060");
route(8);
}
else {
set_dlg_profile("caller","$fu");
xlog("L_INFO", "M GOING TO SERVER2");
sl_send_reply("100", "Trying");
ds_select_domain("1", "4");
forward();
}
xlog("L_INFO", "+++++++++++ ========== $var(SIZE) \n");
exit;
}
...
}
Is anything missing in above configuration or something goes wrong.?
--
Regards,
Chandrakant Solanki
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users