<div dir="ltr">That won't work. The includes have to be in the conf file</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 October 2013 11:56, Jonas Kellens <span dir="ltr"><<a href="mailto:jonas.kellens@telenet.be" target="_blank">jonas.kellens@telenet.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
Is it possible to use the switch => statement in
extensions.conf
(<a href="http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions</a>)
to point to a database and in the database use the
include-statement ?<br>
<br>
In extconfig.conf I would have :</font><br>
<font face="Helvetica, Arial, sans-serif">extensions =>
mysql,asterisk,extensions_table<br>
<br>
In extensions.conf I would then have :<br>
<br>
[includecontext]<br>
switch => Realtime/includecontext@realtime_ext<br>
<br>
<br>
in database :<br>
<br>
INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext',
'include', =>, 'context1', '');<br>
INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext',
'include', =>, 'context2', '');<br>
INSERT INTO `my_extensions_table` VALUES (NULL, 'includecontext',
'include', =>, 'context3', '');<br>
<br>
<br>
<br>
This would then replace the following in extensions.conf :<br>
<br>
[includecontext]<br>
include => context1<br>
include => context2<br>
include => context3<br>
<br>
<br>
<br>
Possible or not ?<br>
<br>
<br>
<br>
Thanks,<br>
Jonas Kellens<br>
</font>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
<pre>Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: <a href="mailto:ish@pack-net.co.uk" target="_blank">ish@pack-net.co.uk</a>
w: <a href="http://www.pack-net.co.uk" target="_blank">http://www.pack-net.co.uk</a>
Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
</pre></div>
</div>