Hello,
Is it possible to use the switch => statement in extensions.conf
(http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions) to
point to a database and in the database use the include-statement ?
In extconfig.conf I would have :
extensions => mysql,asterisk,extensions_table
In extensions.conf I would then have :
[includecontext]
switch => Realtime/includecontext@realtime_ext
in database :
INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext',
'include', =>, 'context1', '');
INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext',
'include', =>, 'context2', '');
INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext',
'include', =>, 'context3', '');
This would then replace the following in extensions.conf :
[includecontext]
include => context1
include => context2
include => context3
Possible or not ?
Thanks,
Jonas Kellens
--
_____________________________________________________________________
-- 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