Thanks Daniel.
Here is the use case.
An INVITE received from an upstream Proxy to Kamailio. Kamailio needs to save the Record-Route header from the INVITE before proxying it to an Asterisk server and when the Asterisk server sends a BYE for that INVITE back thru Kamailio, Kamailio is required to attach the Record-Route as a Route header in the BYE message to the upstream Proxy.
This way the upstream Proxy can route the BYE.
Hope this makes it a bit clearer.
Thanks, --Jignesh
________________________________ From: Daniel-Constantin Mierla miconda@gmail.com To: jignesh gandhi jhgandhi@yahoo.com; Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Sent: Monday, April 28, 2014 4:32 AM Subject: Re: [SR-Users] Record-Route header
Hello,
$hdr(Record-Route) should return the record-route header value. You can store it in htable using callid as key.
However, if you explain the issues you try to solve, there might be other alternatives.
Cheers, Daniel
On 25/04/14 22:00, jignesh gandhi wrote:
Hello All,
I have a need to save the Record-Route header from the INVITE and use it as a route header in requests like BYE.
PROXY --> Kamailio(as PROXY) --> Asterisk
I am using rr module to add a record_route when passing the INVITE to Asterisk.
Thanks, Jignesh Gandhi
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users