[OpenSIPS-Users] topology_hiding and contact port

Yohann Poilvert y.poilvert at geekinfo.fr
Fri Aug 28 06:41:55 EST 2020


Hi Răzvan,

I try to mix mid_registrar and topology_hiding...
REGISTER is ok, but when i made outgoing call, the UAS response is 403 Not registred.

Is it possible to add the tag added with mid_registrar to the INVITE contact ?

Regards


[ https://twitter.com/SegLoad ] 	

	[ https://www.linkedin.com/in/yohann-poilvert-a7ba84117/ ] 	

	

	Yohann Poilvert 

	[ tel:0686739335 | 0686739335 ] 
	[ mailto:y.poilvert at geekinfo.fr | y.poilvert at geekinfo.fr ] 
	[ https://www.geekinfo.fr/ | https://www.geekinfo.fr/ ]

----- Mail original -----
De: "Răzvan Crainea" <razvan at opensips.org>
À: "users" <users at lists.opensips.org>
Envoyé: Jeudi 27 Août 2020 09:44:20
Objet: Re: [OpenSIPS-Users] topology_hiding and contact port

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
http://www.opensips-solutions.com

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
> 

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list