<br><br><div><span class="gmail_quote">On 4/19/07, <b class="gmail_sendername">Forrest Beck</b> <<a href="mailto:jonforrest.beck@gmail.com">jonforrest.beck@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I thought of maybe adding a key for each extension to the astdb and<br>have a Macro query the astdb. Any other ideas?</blockquote><div><br><br>That's how we do it. We created a MySQL DB that maps DIDs to extensions, and a php script to write our configuration files for us (a file called
did.conf, which is #include'd into extensions.conf), as well as push the DID into the Asterisk DB. Actually the DB holds all of the information for our phones, and all of the files we need are generated each night, including sip configs, provisioning files for our Polycoms, the dhcpd configurations to give "static" addresses, and a few other miscellaneous files. And it creates our phone list. The nice thing about building the DB yourself is that you can do anything you want with it.
<br><br>On one of our boxes, I went a step further and created individual outgoing contexts, one for each device. The context set the caller ID. But it was definite overkill; I haven't done that since.<br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks.<br><br>--<br>***<br>Forrest Beck<br>IAXTEL: 17002871718<br><a href="mailto:jonforrest.beck@gmail.com">jonforrest.beck@gmail.com</a><br>_______________________________________________<br>--Bandwidth and Colocation provided by
<a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>