CyCoreSystems / asterisk-k8s-demo

Demo of scalable Asterisk on Kubernetes
Apache License 2.0
158 stars 72 forks source link

Support external endpoint registration #7

Closed juansalvatella closed 5 years ago

juansalvatella commented 5 years ago

Hi Sean, I am struggling to register an external endpoint in Asterisk as the endpoint identification method is by IP and every SIP message coming from Kamailio gets linked to the "proxies" endpoint.

If the identification method was changed to username, then all the incoming calls from the PSTN proxied through Kamailio wouldn't find an endpoint and the solution would stop working. Is there a way to allow this demo setup to be compatible with external endpoint registration?

I have already changed the Kamailio config to pass through all REGISTER messages to Asterisk.

Ulexus commented 5 years ago

This example was not intended to handle SIP registrations, no. There are actually a number of complications if you want to, for whatever reason, pass registrations through to the Asterisk machine(s). This would not be an appropriate base for that.

The more common approach would be to register against the kamailio proxies, passing only trusted traffic in to the Asterisk boxes. This is also out-of-scope for this demonstration, though.

I'm happy to consult, but I do not want to implement registrations into this demo at the moment.