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 LOCAL clients register via that port. And have the clients on the public network to register via the public ip. Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Fri, Mar 4, 2022 at 3:04 PM Youssef Boujraf <ybouj...@gmail.com> wrote: > Hi Dear > > I am trying to understand how "listen" and "advertise" work for sip > signaling purpose ( corebooks : listen > <http://www.kamailio.org/wiki/cookbooks/5.4.x/core#listen> and advertise ) > > Flow : kamailio behind NAT using softphones on private and public networks. > > - kamailio : > > Network : > > IPv4_private 192.168.1.6 / IPv4_public > > kamailio.cfg : > > listen=udp: IPv4_private: 5060 advertise IPv4_public : 5060 > > - uac (softphone) : > > zoiper, microsip, cisco spa508g > > USE CASE : > > I 'd like to force all softphone on the same local network to reach > kamailio through a public ip address. > > ??? QUESTION : Do I need to REGISTER on IPv4_private address of Kamailio > OR REGISTER on IPv4_public address of kamailio or DEFINE another "listen" > with another PORT WITHOUT "advertise" for softphone on same kamailio > network ? > > listen=udp: IPv4_private: 5060 advertise IPv4_public : 5060 > listen=udp: IPv4_private: 5066 > > > Do I need to use "kamctl ps" to verify which interface is listening on > port ? > > Thanks in advance > > Best Regards, > > Youssef BOUJRAF > Email: ybouj...@gmail.com > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > * sr-users@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users