[SR-Users] Add Record-Route on 200 OK

Igor Potjevlesch igor.potjevlesch at gmail.com
Wed Jan 6 15:01:43 CET 2016


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 at 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 at 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> <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 list
sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org> 
http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160106/2497f8e2/attachment.html>


More information about the sr-users mailing list