[Kamailio-Users] record-route

Denis Putyato denis7979 at mail.ru
Thu Nov 12 09:11:23 CET 2009

"sip show peer"  after success registration (with record route() using )?


From: users-bounces at lists.kamailio.org
[mailto:users-bounces at lists.kamailio.org] On Behalf Of toqeer ali
Sent: Thursday, November 12, 2009 10:33 AM
To: users at lists.kamailio.org
Subject: [Kamailio-Users] record-route


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/227a461a/attachment.htm>

More information about the Users mailing list