On 02/20/2010 01:53 AM, jonas kellens wrote: > I have read on this list that people do not get a reply if they ask > stupid questions. > > Is this then a stupid question that I ask ? > > If nobody has ever combined extensions.conf and realtime in a way that > I want to do, I wanna hear it too. Even if this means no solution for > me. Then I know it's not doable. > > Jonas. > > On Thu, 2010-02-18 at 20:15 +0100, jonas kellens wrote: >> How about something like : >> >> [mycontext] >> exten => 100,1,NoOp(calling 100) >> exten => 100,n,NoOp(going realtime) >> switch => Realtime/mycont...@realtime_extensions >> <mailto: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. >>> >>> You can't use the n priority construct in realtime. the database schema won't tolerate it and has already been mentioned even if ti would it lacks the structure of the flat acsii file
-- _____________________________________________________________________ -- 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