<!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>
I have read on this list that people do not get a reply if they ask stupid questions.<BR>
<BR>
Is this then a stupid question that I ask ?<BR>
<BR>
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.<BR>
<BR>
Jonas.<BR>
<BR>
On Thu, 2010-02-18 at 20:15 +0100, jonas kellens wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
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>
<PRE>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <A HREF="http://www.api-digital.com">http://www.api-digital.com</A> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>