[OpenSIPS-Users] topology_hiding and contact port

Răzvan Crainea razvan at opensips.org
Thu Aug 27 07:44:20 EST 2020

Hi, Yohann!

Is there a hard requirement for this? I am asking because the module 
explicitly removes it if it is the default port, as
Contact: <sip:XXXXXXXXXXXX at XXX.YYY.ZZZ.AAA;xyz=4f2.8a0a3952>
and Contact: <sip:XXXXXXXXXXXX at XXX.YYY.ZZZ.AAA:5060;xyz=4f2.8a0a3952> 
are 100% equivalent.
You might be able to achieve this if you're using the 
set_advertised_port() function[1] before calling topology_hiding(). I 
haven't tested this, but it just might work.

[1] https://www.opensips.org/Documentation/Script-CoreFunctions-2-4#toc46

Best regards,

Răzvan Crainea
OpenSIPS Core Developer

On 8/7/20 4:36 PM, Yohann Poilvert wrote:
> Hi all,
> I don't find where I can add the port in the contact header after 
> topology_hiding().
> Contact header after topology_hiding() :
> Contact: <sip:XXXXXXXXXXXX at XXX.YYY.ZZZ.AAA;xyz=4f2.8a0a3952>
> Contact header before topology_hiding() :
> Contact: <sip:XXXXXXXXXXXX at XXX.YYY.ZZZ.AAA:5060>
> It missed the port after topology_hiding... Can you help me ?
> Thank's
> Regards
> Yohann Poilvert
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list