As far as i understand, Kamailio is probably in a Datacenter somewhere and the Asterisk box is in an Office without any public IP address forwarding data directly to the Asterisk. The best solution I can think of (in terms of security and ease of use) is using a VPN between Kamailio and your client's Asterisk box. Kamailio would forward all SIP messages to Asterisk via the VPN connection (OpenVPN is a very good solution) and RTPEngine would also have to be set up on the Kamailio box.
Without a VPN, you could use the Contact of Path modules and have your Asterisk register on Kamailio, but you would have to do some code because of the NAT issues. I would keep things simple, set up a VPN and have Kamailio and Asterisk "think" they're on the same network. *Sérgio Charrua* *www.voip.pt <http://www.voip.pt/>* Tel.: +351 <callto:+351+91+104+12+66>21 130 71 77 Email : *sergio.char...@voip.pt <sergio.char...@voip.pt>* This message and any files or documents attached are strictly confidential or otherwise legally protected. It is intended only for the individual or entity named. If you are not the named addressee or have received this email in error, please inform the sender immediately, delete it from your system and do not copy or disclose it or its contents or use it for any purpose. Please also note that transmission cannot be guaranteed to be secure or error-free. On Mon, Jul 24, 2023 at 10:16 AM John shuku <john.sh...@yahoo.com> wrote: > > the problem is not NAT . > > My Asterisk does not have any public IP Address . How can I proxy the > registration requests from kamailio ( with Public IP Address ) to asterisk > ( With private IP address ) . > > The goal is to allow remote users to register in my asterisk server . > > > Am Montag, 24. Juli 2023 um 10:34:52 MESZ hat Lewis Hutchinson < > lewis.hutchin...@missionlabs.co.uk> Folgendes geschrieben: > > > This is always a good place to start > https://www.fredposner.com/1457/kamailio-behind-nat/ > > Lewis > > > > > Mission Labs Limited is registered in England, company number 10040088. > Trading Office: The Old Milk Depot, Bacup Rd, Rossendale, BB4 7FE. > Registered office: The Scalpel, 18th Floor 52 Lime Street, London, EC3M > 7AF. Email confidentiality notice: This message is private and > confidential. If you have received this message in error, please notify us > and remove it from your system. Please consider the environment before you > print this email. > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to sr-users-le...@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to sr-users-le...@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: >
__________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: