[OpenSIPS-Users] How to force opensips add port field in via header?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Feb 2 13:17:52 CET 2010


Hi Iñaki,

actually there is no param to force adding port to the local VIA when 
the port is the SIP default one (just checked the code).

Lei, if it really required to get such a via (even if not conforming to 
RFC), I can send you a small patch.

Regards,
Bogdan

Iñaki Baz Castillo wrote:
> El Martes, 2 de Febrero de 2010, Lei Tang escribió:
>   
>>   Hi everyone, I'm using opensips 1.6.
>>   When I send sip msg by call forward function, opensips add Via header in
>> sips message like "Via: SIP/2.0/UDP
>> 10.37.143.6;branch=z9hG4bKSS1vtZ6ZQ98rp."
>>    THE QUESTION IS: How can I make opensips add the port field to the VIA
>> header even my sip port is 5060? This mean, the VIA header should be
>>   "Via: SIP/2.0/UDP 10.37.143.6*:5060*;branch=z9hG4bKSS1vtZ6ZQ98rp."
>>    Does someone can give me some advice about this question? Thank a lot!
>>
>>     
>
> There is a core parameter for that, I can not remember now the name but you 
> can find it in the wiki (cookbook section).
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list