I run an ISP with virtual services. We also offer VoIP. Currently we have our DNS set up so that virtual domains can have SIP addresses in their own domain. However, it comes to Asterisk as just the user name. For example, my SIP address is sip:darcy@VybeNetworks.com which calls extension darcy. That’s fine because I am darcy in both the virtual domain as well as the underlying ISP domain. However, clients can have whatever user name they want within their own domain. For example there might be a email@example.com that points to user dc2016
on our server. That means that the client’s sip address has to be firstname.lastname@example.org.
I am trying to figure out how to allow email@example.com to be translated to firstname.lastname@example.org (out ISP domain) but I am at a loss to see how it could work. It almost seems like I need to run a separate asterisk server for each virtual client. Is there some sort of proxy software that will let me do that more efficiently? Is there some magic DNS entries that can change it?
If it helps I am generating the configs from my client database for asterisk as well as DNS so I don’t care how complicated the configs get.