Hello John,

If that's the goal per se, you will likely need to use the Path[1][2][3] 
extension, which allows a proxy to stay in the signalling path of non-adjacent 
registration contacts. 

This is assuming the Asterisk project have fixed their long-standing Path bug 
in `chan_pjsip`, which they have hitherto refused to fix for several years. If 
not, you may have to engage in some hacky stateful Contact rewriting in lieu of 
Path.

You will likely need to deal with client-side NAT on the device endpoint 
side[3], including RTP[4], if your use of Asterisk is what we might think of as 
ordinary.

An honest and realistic assessment of the difficulty level here is that it's 
probably overwhelming for a Kamailio newbie, putting it all together. Kamailio 
is relatively low-level and requires considerably detailed fluency in both the 
underlying SIP concepts and in Kamailio config script programming. Another 
factor is that this is a niche application of Kamailio which cannot be achieved 
with slight modifications of the stock config file; they require truly 
intentional config programming. There's no straightforward and simple recipe, 
the whole config must be designed around this flow.

If this is a business requirement, and you are in fact completely new to 
Kamailio, it may be rational to find a commercial Kamailio consultant in the 
Business Directory:

https://www.kamailio.org/w/business-directory/

Many long-time veterans and senior developers on this mailing list offer expert 
Kamailio consulting.

Good luck!

-- Alex

[1] https://datatracker.ietf.org/doc/html/rfc3327

[2] https://kamailio.org/docs/modules/5.7.x/modules/path.html

[3] https://kamailio.org/docs/modules/5.7.x/modules/nathelper.html

[4] https://kamailio.org/docs/modules/5.7.x/modules/rtpengine.html

-- Alex

> On Jul 24, 2023, at 5:21 AM, John shuku <[email protected]> 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:54:16 MESZ hat John shuku 
> <[email protected]> Folgendes geschrieben: 
> 
> 
> 
> 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 
> <[email protected]> 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 [email protected]
> 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 [email protected]
> Important: keep the mailing list in the recipients, do not reply only to the 
> sender!
> Edit mailing list options or unsubscribe:

-- 
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://evaristesys.com
Tel: +1-706-510-6800

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to