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