That won't work. The includes have to be in the conf file
On 16 October 2013 11:56, Jonas Kellens <jonas.kell...@telenet.be> wrote: > 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 > -- Ishfaq Malik Department: VOIP Support Company: Packnet Limited t: +44 (0)845 004 4994 f: +44 (0)161 660 9825 e: i...@pack-net.co.uk w: http://www.pack-net.co.uk Registered Address: PACKNET LIMITED, Duplex 2, Ducie House 37 Ducie Street Manchester, M1 2JW COMPANY REG NO. 04920552
-- _____________________________________________________________________ -- 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