dialog module count

News group gmane.comp.telephony.pbx.asterisk.user

dialog module count 2010-07-22 12:53
--000e0cd29c9c4edc3e048bf7bab7
Content-Type: text/plain; charset=ISO-8859-1

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.?
Menu
Re: dialog module count 2010-07-22 15:31
>Is anything missing in above configuration or something goes wrong.?
>
kamailio != asterisk

Wrong list.
Re: dialog module count 2010-07-22 15:45
>On Thu, Jul 22, 2010 at 6:53 AM, Chandrakant Solanki
>>Is anything missing in above configuration or something goes wrong.?
>>
>kamailio != asterisk
>
>Wrong list.
>

Looks like opensips from the code that was pasted.
dialog module count 2010-07-22 12:53
Re: dialog module count 2010-07-22 15:31
Re: dialog module count 2010-07-22 15:45