<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 &quot;dialog.so&quot;<br>modparam(&quot;dialog&quot;,&quot;profiles_with_value&quot;,&quot;caller&quot;)<br>modparam(&quot;dialog&quot;, &quot;dlg_flag&quot;, 4)<br>....<br></div><div><br></div><div>route[0] {</div>
<div>         ...</div><div>               if(is_method(&quot;INVITE&quot;))<br>               {<br>                               get_profile_size(&quot;caller&quot;, &quot;$fu&quot;, &quot;$var(SIZE)&quot;);<br>                                xlog(&quot;L_INFO&quot;, &quot;========== $var(SIZE) \n&quot;);<br>
<br>                                 if( $var(SIZE) &lt; 1 ){<br>                                         set_dlg_profile(&quot;caller&quot;,&quot;$fu&quot;);<br>                                                 xlog(&quot;L_INFO&quot;, &quot;M IN server1 ONLY \n&quot;);<br>
                                                 use_media_proxy();<br>                                                  record_route();<br>                                                  rewritehostport(&quot;<a href="http://server.pbx.com:5060">server.pbx.com:5060</a>&quot;);<br>
                                                  route(8);<br>                                }<br>                                else {<br>                                           set_dlg_profile(&quot;caller&quot;,&quot;$fu&quot;);<br>
                                                    xlog(&quot;L_INFO&quot;, &quot;M GOING TO SERVER2&quot;);<br>                                                   sl_send_reply(&quot;100&quot;, &quot;Trying&quot;);<br>                                                  ds_select_domain(&quot;1&quot;, &quot;4&quot;);<br>
                                                  forward();<br>                                }<br>                            xlog(&quot;L_INFO&quot;, &quot;+++++++++++ ========== $var(SIZE) \n&quot;);<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>