[SR-Users] REmove Header line with tags

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 3 10:20:48 CET 2015


You will have to provide full sip trace of such call to see whats rlwrong
with routing.

Cheers,
Daniel

On Tuesday, March 3, 2015, Yuriy Gorlichenko <ovoshlook at gmail.com> wrote:

> I addes msg_apply_changes() but now kamailio dont send ACK message. I see
> that it only arrievs to kamailio.
>
> 2015-03-03 9:53 GMT+03:00 Daniel-Constantin Mierla <miconda at gmail.com
> <javascript:_e(%7B%7D,'cvml','miconda at gmail.com');>>:
>
>>  Hello,
>>
>> remove_hf() removes the entire header, including its parameters.
>>
>> The issue here seems to be related to the fact that you remove Via header
>> and the core adds rport and received parameters -- this happens due to
>> requirements from SIP RFCs.
>>
>> What you need to do is to apply changes once the Via is removed so the
>> core doesn't see it anymore, see:
>>
>>   -
>> http://kamailio.org/wiki/tutorials/faq/main#why_changes_made_to_headers_or
>>
>> Cheers,
>> Daniel
>>
>>
>> On 03/03/15 01:28, Yuriy Gorlichenko wrote:
>>
>> I need to remove all header line witht tags but remove_hf() removes only
>> Header:value
>> All tags after ";" stay at the packet as garbage and next Header moves up
>> As there
>>
>> ACK sip:12345678900 at phone.provider.com
>> <javascript:_e(%7B%7D,'cvml','sip:12345678900 at phone.provider.com');>
>> SIP/2.0
>> Via: SIP/2.0/UDP sip.server.com:5068
>> ;branch=z9hG4bKcb7a.9f70ce5990dd153cd0eaa6f1762c059c.0.cs102
>> *<There var another Via header that I removed with remove_hf_re but tags
>> is stiil there and Route header mover up>*;rport=1578;received=23.101.134.111Route:
>> <sip:54.241.2.206;lr=on;ftag=as38f20f7b;did=ce8.10a>
>> Max-Forwards: 70
>> From: "New User" <sip:00987654321 at phone.provider.com
>> <javascript:_e(%7B%7D,'cvml','sip:00987654321 at phone.provider.com');>
>> >;tag=as38f20f7b
>> To: <sip:12345678900 at phone.provider.com
>> <javascript:_e(%7B%7D,'cvml','sip:12345678900 at phone.provider.com');>
>> >;tag=B4r1B569001DB
>> Contact: <sip:contact at 10.0.1.17:50600;alias=23.101.134.111~1578~1>
>> Call-ID: 473fc8a64d7d96aa515780dc6237a6d5 at 10.0.1.17:50600
>> CSeq: 103 ACK
>> User-Agent: Some Device
>> Content-Length: 0
>>
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.org <javascript:_e(%7B%7D,'cvml','sr-users at lists.sip-router.org');>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>> Kamailio World Conference, May 27-29, 2015
>> Berlin, Germany - http://www.kamailioworld.com
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> <javascript:_e(%7B%7D,'cvml','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/micond
<http://www.linkedin.com/in/miconda>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150303/3b4c6462/attachment.html>


More information about the sr-users mailing list