<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2> Am using Asterisk to call
peoples phone as part of a service of my website. It will call people for
various things...one of them to tell people sports scores. I am using
several sound files to piece together a dynamic message saying who played and
what the score was. The problem is that I can hardcode the sound files
that are needed to play and it works fine, but I cannot hardcode the
extensions.conf file with the new sound files to play for every game. I
need a way to create dynamic extensions so when it dials out, it will
be playing back the correct sound files for the current game
being played.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 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. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> 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. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> I think that idea will
work...but does anybody know of a better way to do it?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Gabe</FONT><FONT face=Arial
size=2></DIV></FONT></BODY></HTML>