<p dir="ltr">Hi all,</p>
<p dir="ltr">I saw Matt Jordan's recent Kamailio world talk and was interested in the idea he proposed of stripping out authentication and registration from asterisk and letting Kamailio handle it.</p>
<p dir="ltr">All of the tutorials I've seen (e.g. on asipto) show Kamailio forwarding registrations to asterisk.</p>
<p dir="ltr">In order to do what Matt suggested would I be correct in assuming I would have to use the asterisk database rather than the Kamailio database? I've compared the two and the table structures are different.</p>
<p dir="ltr">If I use the asterisk database I guess asterisk still needs to be responsible for handling authentication, registration and writing the contacts to the database. If I use the Kamailio database how would I dial a local extension from asterisk if I'm using multiple domains?</p>
<p dir="ltr">For example 100@domainA.com -> 200@domainA.com</p>
<p dir="ltr">Or even</p>
<p dir="ltr">100@domainA.com -> 300@domainB.com</p>
<p dir="ltr">How would pjsip find the contact to dial?</p>
<p dir="ltr">As far as I can tell asterisk will have no idea who is registered or how to find them (contact details). Maybe I'm over thinking something simple, or maybe I'm not. Either way I would love your thoughts on how this could be done.</p>
<p dir="ltr">My Kamailio is public facing, but talks to asterisk over an internal network. Asterisk can face the internet but I'd rather not.</p>
<p dir="ltr">Thanks in advance for your help,</p>
<p dir="ltr">C</p>