<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.5">
</HEAD>
<BODY>
How about something like :<BR>
<BR>
<FONT SIZE="2">[mycontext]</FONT><BR>
<FONT SIZE="2">exten => 100,1,NoOp(calling 100)</FONT><BR>
<FONT SIZE="2">exten => 100,n,NoOp(going realtime)</FONT><BR>
<FONT SIZE="2">switch => Realtime/<A HREF="mailto:mycontext@realtime_extensions">mycontext@realtime_extensions</A> ; from here on we use realtime</FONT><BR>
<BR>
And then my MySQL-DB contains :<BR>
<BR>
<FONT SIZE="2">`extensions_table` VALUES (1, 'mycontext', '100', n, 'Wait', '2'); </FONT><BR>
<FONT SIZE="2">`extensions_table` VALUES (2, 'mycontext', '100', n, 'NoOp', 'into RealTime'); </FONT><BR>
<FONT SIZE="2">'extensions_table` VALUES (3, 'mycontext', '100', n, 'Playback', 'my-sound-file');</FONT><BR>
<BR>
extconfig.conf has :<BR>
<BR>
<FONT SIZE="2">realtime_extensions => mysql,asterisk,extensions_table</FONT><BR>
<BR>
<BR>
Is all the above correct and possible ??<BR>
<BR>
<BR>
On Thu, 2010-02-18 at 13:55 -0500, Jared Smith wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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.
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>