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

Lei Tang lei.tlfly at gmail.com
Wed Feb 3 06:06:28 CET 2010


Hi Bogdan,
I tried to modify msg_translator.c, change line 1933 from

  if ((send_sock->port_no!=SIP_PORT) || (port_str!=&send_sock->port_no_str))
to
  if (1)

It seem work now.


2010/2/3 Lei Tang <lei.tlfly at gmail.com>

> Hi Bogdan and Iñaki, Thank you every much.
> Bogdan, Could you send me the patch?
>
> 2010/2/2 Iñaki Baz Castillo <ibc at aliax.net>
>
> El Martes, 2 de Febrero de 2010, Bogdan-Andrei Iancu escribió:
>> > 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).
>>
>> Sure? what about "advertised_port=5060"? :)
>>
>> Some years ago I used it in openser 1.2 to avoid a stupid bug in a stupid
>> gateway (Nortel CS2K, the worst machine in the world).
>>
>>
>>
>> --
>> Iñaki Baz Castillo <ibc at aliax.net>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
>
> --
> Lei.Tang
> lei.tlfly at gmail.com
>



-- 
Lei.Tang
lei.tlfly at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100203/46b69a6f/attachment.htm 


More information about the Users mailing list