[Kamailio-Users] record-route

toqeer ali toqeer83 at gmail.com
Thu Nov 12 08:32:42 CET 2009

Let me describe my scenario:

SipUser1 -------register request------------> kamailio (SIP Proxy) -------
forwarded register request-----------> Asterisk

   1. 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
   2. However, If I remove the "record-route()" function without
   unregistering 601 and restarting the server, 602 can call to 601 .

route {
 if ($fU=="601"&&is_method("INVITE"))
  rewritehost(""); //asterisk host
route[1] {
        # send it out now; use stateful forwarding as it works reliably
        # even for UDP2TCP
        if (!t_relay()) {

should i add anything in script further...

Toqeer Ali Syed

Red Hat Certified Engineer
mob:     +92 321 9059916
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/users/attachments/20091112/33405e6a/attachment.htm>

More information about the Users mailing list