<br clear="all">Hello<br><br>I need count for number of active calls on kamailio server. I have done following configuration in my kamailio.cfg file<br><br>...<br>loadmodule "dialog.so"<br>modparam("dialog","profiles_no_value","domain")<br>
modparam("dialog", "dlg_flag", 4)<br>....<br><br>route[0] {<br> ...<br> if(is_method("INVITE"))<br> {<br> get_profile_size("domain", "$var(SIZE)");<br>
xlog("L_INFO", "========== $var(SIZE) \n");<br><br> if( $var(SIZE) < 1 ){<br> set_dlg_profile("domain");<br>
xlog("L_INFO", "M IN server1 ONLY \n");<br> use_media_proxy();<br> record_route();<br>
rewritehostport("<a href="http://server.pbx.com:5060">server.pbx.com:5060</a>");<br> route(8);<br> }<br>
else {<br> set_dlg_profile("domain");<br> xlog("L_INFO", "M GOING TO SERVER2");<br>
sl_send_reply("100", "Trying");<br> ds_select_domain("1", "4");<br> forward();<br>
}<br> xlog("L_INFO", "+++++++++++ ========== $var(SIZE) \n");<br> exit;<br> }<br> ...<br>
}<br><br>Is anything missing in above configuration or something goes wrong.?<br><br>-- <br>Regards,<br><br>Chandrakant Solanki<br>