<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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 class="moz-txt-link-freetext" href="http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions">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>
</body>
</html>