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(a)gmail.com
<javascript:_e(%7B%7D,'cvml','miconda@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@phone.provider.com
<javascript:_e(%7B%7D,'cvml','sip:12345678900@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@phone.provider.com
<javascript:_e(%7B%7D,'cvml','sip:00987654321@phone.provider.com');>
;tag=as38f20f7b
To:
<sip:12345678900@phone.provider.com
<javascript:_e(%7B%7D,'cvml','sip:12345678900@phone.provider.com');>
;tag=B4r1B569001DB
Contact:
<sip:contact@10.0.1.17:50600;alias=23.101.134.111~1578~1>
Call-ID: 473fc8a64d7d96aa515780dc6237a6d5@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(a)lists.sip-router.org
<javascript:_e(%7B%7D,'cvml','sr-users@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(a)lists.sip-router.org
<javascript:_e(%7B%7D,'cvml','sr-users@lists.sip-router.org');>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users