[SR-Users] Record-Route header

jignesh gandhi jhgandhi at yahoo.com
Mon Apr 28 13:51:43 CEST 2014

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.


 From: Daniel-Constantin Mierla <miconda at gmail.com>
To: jignesh gandhi <jhgandhi at yahoo.com>; Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org> 
Sent: Monday, April 28, 2014 4:32 AM
Subject: Re: [SR-Users] Record-Route header


$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.


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.
>Jignesh Gandhi
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 

Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140428/7b6fe3b6/attachment.html>

More information about the sr-users mailing list