<div dir="ltr">On 15 May 2013 14:19, Trevor Burt <span dir="ltr"><<a href="mailto:trevorjburt@googlemail.com" target="_blank">trevorjburt@googlemail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
        <div><div><div><p>Dear All, <br></p><p>using the following link:-</p><p><br></p><p><a href="http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb</a><br>


</p>
<p>I have successfully integrated Asterisk and Kamailio on the same box 
for testing, but am now facing the problem of getting Freepbx to use the
 same MySQL database tables.</p>
<p></p></div></div></div></div></blockquote><div><br></div><div style>Freepbx does not use Asterisk Realtime. It writes out the database table contents to /etc/asterisk/*.conf </div><div style><br></div><div style>That said, all the information does exist in the database, and you should be able to either change the Kamailio auth_db parameters to match your db_url, user_column and password_column, etc to suit, or create a view out of the FPBX tables that Kamailio can read. </div>

<div style><br></div><div style>You would also need to do something similar for alias_db settings for your sip users table so that Kamailio can resolve these. That is pretty much the only part of the Asterisk database Kamailio needs</div>

<div style><br></div><div style>Having said that, if you make a change in FPBX but have not yet clicked on the "Apply changes" (which writes out the .conf files) your database data might be out of sync with Asterisk. Probably not a huge issue.</div>

<div style><br></div><div style>Hope this helps.</div><div style><br></div><div style>-Barry Flanagan</div><div style><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><div><div><p>My Kamailio and Asterisk install uses the following tables:-</p>
<p>sipusers<br>
sipregs<br>
voicemail<br>
voicemail_data<br>
voicemail_messages</p>
<p>However Freepbx uses the following tables.</p>
<p>devices <br>
users</p>
<p>Any idea on how I fully integrate Freepbx with my Asterisk and Kamailio configuration using Mysql?</p>
<p>My goal is to have a Kamailio LB to multiple Asterisk/Freepbx servers sharing the same extension and voicemail databases.</p>
<p>I will also probably integrate a2billing and share the a2billing 
database between the Asterisk/Freepbx servers to create a fully scalable
 solution.</p>
<p>Any advice most gratefully received.</p>
</div></div></div>      </div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div>