Dear all
 
I try to remove a Via from a header. Unfortunately, the via from
    INVITE sip:user@domain SIP/2.0
    Via: SIP/2.0/UDP 10.0.0.1:20592;branch=z9hG4bK-d8754z-1955bd20f1745139-1---d8754z-;rport
    Max-Forwards: 70
 
is changed after remove_hf("Via") to
    INVITE sip:user@domain SIP/2.0
    Via: SIP/2.0/UDP 10.0.0.2;branch=z9hG4bK-d8754z-1955bd20f1745139-1---d8754z-
    ;rport=20592Max-Forwards: 69
 
10.0.0.2 is a proxy i sent the message through and 10.0.0.1 is the originating endpoint. So rport is not removed and no CRLF is added after the rport parameter is added. Is this behaviour as it should be? I wanted to remove the whole line. Or can I restrict adding the rport parameter?
 
Furthermore, the option _not_ to set an via for a message sent through my proxy 10.0.0.2 would be also very helpful for me. It is not possible though, right? At least I didn't find any further information....
 
Any ideas?
 
Best regards
Sebastian
 

--
Sebastian Schumann, Dipl.-Inf. (FH)
Junior Designer Applications

Slovak Telekom, a. s.
T-Com, Operations Unit
Production and Service Division
Innovations and Enterprise Solution Subunit
Architecture and Design Department

Address: Karadzicova 10, 825 13 Bratislava, Slovakia
Office: Room 449, Jarabinkova 1, 821 09 Bratislava, Slovakia

Tel. +421 2 588 13332
Mobile +421 910 643010
E-mail sebastian.schumann@t-com.sk
Web www.t-com.sk