[SR-Users] forward sip register

Borin katerin.borin at gmail.com
Tue Oct 12 17:34:18 CEST 2010


Hello,
I am not good at kamailio. Could anyone tell me how can I forward register
messages coming to kamailio to asterisk? I need users to be registered on
kamailio and on asterisk at one time.
I do in kamailio.cfg:
if (is_method("REGISTER"))
      {
                save("location");
                route(FWD_REG);
                exit;

        }
route[FWD_REG] {
       rewritehost("Asterisk_IP:5060");
       if(!t_relay())
               sl_reply_error();

       exit;
}

But it (kamailio ver 3.1) does not forward them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101012/7bd4179e/attachment.htm>


More information about the sr-users mailing list