[SR-Users] Kamailio setting the reqeust URI
NITESH BANSAL
nitesh.bansal at outlook.com
Tue Apr 5 09:53:35 CEST 2016
I got it working using Route header without 'lr' parameter.In the absence of 'lr' parameter, Kamailio treated my requestas 'strict router' and updated the Reqeust-URI too.
Nitesh
> Date: Mon, 4 Apr 2016 08:24:42 -0700
> From: vancecezar at gmail.com
> To: sr-users at lists.sip-router.org
> Subject: Re: [SR-Users] Kamailio setting the reqeust URI
>
> NITESH BANSAL wrote
> > Hello,I'm using Asterisk to originate a call via Kamailio.Request-URI in
> > SIP INVITE coming from Asterisk looks like this<sip:
>
> > kamailio at .x
>
> > >But my objective is to use Kamailio to forward the call to a remote
> > endpoint.
> > What header should I put in the SIP INVITE from Asterisk to Kamailio to
> > conveythat Kamailio should use this 'SIP URI' to route the call onwards.I
> > tried 'Route' header, but it doesn't seem very clean, as kamailio doesn't
> > updatethe Request-URI in the forwarded INVITE if I use the Route header.
> > Thanks,Nitesh
> >
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>
> > sr-users at .sip-router
>
> > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> If you need to change R-URI, than modify it in script logic (PV $ru - is
> read/writable)
> e.g. (random example, set your new_user, new_domain if want to change them.
> Play around with it):
> $ru = "sip:" + $var(new_user) + "@" $var(new_domain) + ":" + $var(new_port)
> + ";transport=UDP" ;
>
> If you need to route SIP request to destination that differ from R-URI - use
> route header (as you already tried). Or use Destination URI PV - $du (it is
> set, it is used for message routing, not R-URI). Both mentioned here does
> not change R-URI.
>
> Hope this helps.
> Cheers!
>
>
>
> --
> View this message in context: http://sip-router.1086192.n5.nabble.com/Kamailio-setting-the-reqeust-URI-tp147243p147247.html
> Sent from the Users mailing list archive at Nabble.com.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160405/53586582/attachment.html>
More information about the sr-users
mailing list