[asterisk-users] Realtime extensions

jonas kellens jonas.kellens at telenet.be
Thu Feb 18 13:15:11 CST 2010


How about something like :

[mycontext]
exten => 100,1,NoOp(calling 100)
exten => 100,n,NoOp(going realtime)
switch => Realtime/mycontext at 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.
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100218/6e40f6b2/attachment.htm 


More information about the asterisk-users mailing list