Hello Daniel,
It seems to work.
I have a side question related to this. If the initial INVITE contains a Record-Route, for all the subsequent status 1xx, 2xx, etc., the Record-Route is not kept. Is it normal?
Regards,
Igor.
De : sr-users [mailto:sr-users-bounces@lists.sip-router.org] De la part de Daniel-Constantin Mierla
Envoyé : mardi 5 janvier 2016 19:53
À : Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Objet : Re: [SR-Users] Add Record-Route on 200 OK
Hello,
you can use append_hf() inside the onreply_route.
If you have a single IP address, that is easy:
append_hf("Record-Route: <sip:$Ri:5060;lr>\r\n")
Be careful if you use dialog module with did parameter, or other modules that need ftag parameter (e.g., uac, acc).
Cheers,
Daniel
On 05/01/16 19:37, Igor Potjevlesch wrote:
Hello,
I'm looking for a way to add a Record-Route into a 200 OK before relaying the message to the UA.
Indeed, I'm facing an issue where the 200 OK is relayed to the UA without Record-Route and with an IP address into the Contact header. So, the UA sends back his ACK to the Contact instead of the proxy itself.
Is it possible to achieve this?
Regards,
Igor.
_______________________________________________SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu