[SR-Users] How to easily remove top most header and set destination uri

YASIN CANER caner_yaso at hotmail.com
Fri Feb 22 14:01:56 CET 2019


Hello,

I have trouble with REFER method that has to-tag and Route header , more than one.

When it pass loose_route() method ,  loose_route function remove all route headar  then  sets RURI with top most Route.

Is there a function that removing own route header and sets destination uri ($du)  with top most uri.


Best Regards.

Yasin CANER

https://tools.ietf.org/html/rfc3515


2.6<https://tools.ietf.org/html/rfc3515#section-2.6> Behavior of SIP Proxies

SIP proxies do not require modification to support the REFER method.
   Specifically, as required by [1<https://tools.ietf.org/html/rfc3515#ref-1>], a proxy should process a REFER
   request the same way it processes an OPTIONS request.


For example,


---------->mykamailio at test2.test----------->>nextroute at test3.test------>
1
--
REFER : sip:alice at test.test ...
Route:<sip:mykamailio-local at test2.test;lr>,<sip:nextroute at test3.test;lr>,<sip:nextroute2 at test4.test>
To: <>;tag=asdads
From:<>;tag=asd123


---
2 - After Kamailio Process
---
REFER : sip:alice at test.test ...
<sip:nextroute at test3.test>,<sip:nextroute2 at test4.test>
To: <>;tag=asdads
From:<>;tag=asd123



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190222/81bdaee2/attachment.html>


More information about the sr-users mailing list