[Asterisk-Users] Dynamic extensions without using DynExtenDB?

Peter Svensson psvasterisk at psv.nu
Sat Dec 25 04:22:28 MST 2004


On Sat, 25 Dec 2004, Gabriel Afana wrote:

>     I've looked at the DynExtenDB, but that wont work well because every
> time a call is initiated, it loads the extension.  Thats not practical
> because if the system needs to call 500 people right at the end of the
> game, its going to take too much overhead just to load and unload the
> extension for every call.
> 
>     I am thinking now just to load the extensions through MySQL and have
> an "extensions reload" command sent the CLI for Asterisk so my backend
> system can update mysql and then reload the extensions on Asterisk when
> a call needs to be made with new sport scores.

Have you considered using agi instead of a lot of extensions? Especially 
with fastagi it may be an easier route to go.

> P.S.  I know I can reload the extensions by typing "extensions reload"
> in the CLI, but is there a command line command I can run that will do
> it without having to login?  It will make my scripting job a lot easier
> if I can just have a perl scrip run something like
> system("/usr/sbin/asterisk -r extensions reload")

asterisk -rx "extensions reload"

Peter




More information about the asterisk-users mailing list