[asterisk-users] Use Asterisk Realtime Extensions with Switch-statement and include-statement

Ishfaq Malik ish at pack-net.co.uk
Wed Oct 16 08:03:39 CDT 2013


That won't work. The includes have to be in the conf file


On 16 October 2013 11:56, Jonas Kellens <jonas.kellens at 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 at 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: ish at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131016/c6689d04/attachment.html>


More information about the asterisk-users mailing list