Re: [SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-07 Thread Youssef Boujraf
Question : If kamailio is behind a double NAT setup Internet - (Model-router : NAT 1) - (router - NAT2) - kamailio Could I use this settings ? - For public softphone : listen=udp: IPv4_private: 5060 advertise IPv4_public : 5060 Domain : IPv4_public:5060 As described above, Question :

Re: [SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-05 Thread Ovidiu Sas
As long as traffic to IPv4_public : 5060 lands on IPv4_private: 5060, yes, you can use this double NAT setup. -ovidiu On Sat, Mar 5, 2022 at 08:35 Youssef Boujraf wrote: > Question : > > If kamailio is behind a double NAT setup > > Internet - (Model-router : NAT 1) - (router - NAT2) - kamailio

Re: [SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-05 Thread Youssef Boujraf
Question : If kamailio is behind a double NAT setup Internet - (Model-router : NAT 1) - (router - NAT2) - kamailio Could I use this settings ? - For public softphone : listen=udp: IPv4_private: 5060 advertise IPv4_public : 5060 Domain : IPv4_public:5060 - For private softphone on same

Re: [SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-04 Thread Youssef Boujraf
Dear, Then; - For public softphone : listen=udp: IPv4_private: 5060 advertise IPv4_public : 5060 Domain : IPv4_public:5060 - For private softphone on same vlan as kamailio listen=udp: IPv4_private:5066 Domain : IPv4_private:5066 Best Regards, Youssef BOUJRAF Email: ybouj...@gmail.com

Re: [SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-04 Thread David Villasmil
why do you want the softphones (which are on THE SAME NETWORK) to register via Kamailio's public IP? what you suggest is exactly what you should do: listen=udp: IPv4_private: 5060 advertise IPv4_public : 5060 listen=udp: IPv4_private: 5066 Just add a listen on a different port and have the

[SR-Users] kamailio.cfg : behind the NAT (listen and advertise) understanding

2022-03-04 Thread Youssef Boujraf
Hi Dear I am trying to understand how "listen" and "advertise" work for sip signaling purpose ( corebooks : listen and advertise ) Flow : kamailio behind NAT using softphones on private and public networks. - kamailio : Network :