<div>Let me describe my scenario:</div><div><br></div><div>SipUser1 -------register request------------> kamailio (SIP Proxy) ------- forwarded register request-----------> Asterisk</div><div><br></div><div><ol><li>In the above scenario, when I register to Asterisk through Kamailio, it works fine when I give the "record-route()" function in the cfg file. Further, using this, I can also call to another extension 602 which is also registered to Asterisk but 602 cannot call to 601 which is registered via kamailio.</li>
<li>However, If I remove the "record-route()" function without unregistering 601 and restarting the server, 602 can call to 601 . </li></ol></div><div>route {</div><div> if ($fU=="601"&&is_method("INVITE"))</div>
<div> record_route();</div><div> rewritehost("10.0.10.111"); //asterisk host</div><div> route(1);</div><div>}</div><div><div>route[1] {</div><div> # send it out now; use stateful forwarding as it works reliably</div>
<div> # even for UDP2TCP</div><div> if (!t_relay()) {</div><div> sl_reply_error();</div><div> };</div><div> exit;</div><div>}</div><div><br></div><div>should i add anything in script further...</div>
</div><div><br></div><div><br></div><div><br></div><div>-- <br>Toqeer Ali Syed<br><br>Red Hat Certified Engineer<br>mob: +92 321 9059916<br>
</div>