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

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Feb 3 12:07:05 CET 2010


Hi Lei,

Indeed, that is the right place to change.

Regards,
Bogdan

Lei Tang wrote:
> 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 <mailto: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 <mailto: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 <mailto:ibc at aliax.net>>
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
>     -- 
>     Lei.Tang
>     lei.tlfly at gmail.com <mailto:lei.tlfly at gmail.com>
>
>
>
>
> -- 
> Lei.Tang
> lei.tlfly at gmail.com <mailto:lei.tlfly at gmail.com>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


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




More information about the Users mailing list