How about something like :

[mycontext]
exten => 100,1,NoOp(calling 100)
exten => 100,n,NoOp(going realtime)
switch => Realtime/mycont...@realtime_extensions ; from here on we use
realtime

And then my MySQL-DB contains :

`extensions_table` VALUES (1, 'mycontext', '100', n, 'Wait', '2'); 
`extensions_table` VALUES (2, 'mycontext', '100', n, 'NoOp', 'into
RealTime'); 
'extensions_table` VALUES (3, 'mycontext', '100', n, 'Playback',
'my-sound-file');

extconfig.conf has :

realtime_extensions => mysql,asterisk,extensions_table


Is all the above correct and possible ??


On Thu, 2010-02-18 at 13:55 -0500, Jared Smith wrote:

> On Thu, 2010-02-18 at 19:46 +0100, jonas kellens wrote:
> > Does a context need completely be written or in extensions.conf or in
> > the mysql-table 'extensions_table' ? Or can I combine the two with the
> > 'switch'-statement ??
> 
> You can certainly combine the two with a switch statement.  Asterisk
> will then only look in the switch if it doesn't find a match in
> extensions.conf.
> 
> --
> Jared Smith
> Digium, Inc.
> 
> 
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to