We use a script on a cron which runs from a table/queue that only has an
entry placed in it if a new context is added.
If that is the case the script writes a new extenions.conf generating
all the contexts and switch statements by doing a distinct select of
contexts in the table. It also executed the dialplan reload after the
new conf file had been generated.
If your shell scripting isn't up to much I can give you an example
Ish
On 15/08/10 19:35, Dan Journo wrote:
Hi,
I'd like to be able to create contexts in real-time when I add new
clients to my asterisk box.
Currently, I have to create a blank context in extensions.conf and add:-
switch => Realtime/@
Is there any way to avoid the step of creating the blank context and
simply include all the entries from the database?
Thanks
Dan
--
Ishfaq Malik
Software Developer
PackNet Ltd
Office: 0161 660 3062
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users