<div>Hello<br clear="all"></div><div><br></div><div>I need <strong>count</strong> for number of active calls on kamailio server. I have done following configuration in my kamailio.cfg file</div><div><br></div><div>...</div>
<div>loadmodule "dialog.so"<br>modparam("dialog","profiles_with_value","caller")<br>modparam("dialog", "dlg_flag", 4)<br>....<br></div><div><br></div><div>route[0] {</div>
<div> ...</div><div> if(is_method("INVITE"))<br> {<br> get_profile_size("caller", "$fu", "$var(SIZE)");<br> xlog("L_INFO", "========== $var(SIZE) \n");<br>
<br> if( $var(SIZE) < 1 ){<br> set_dlg_profile("caller","$fu");<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("caller","$fu");<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></div><div> ...</div><div>}</div><div><br></div><div>Is anything missing in above configuration or something goes wrong.?</div><br>-- <br>Regards,<br><br>Chandrakant Solanki<br>