<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 02/20/2010 01:53 AM, jonas kellens wrote:
<blockquote cite="mid:1266659633.5213.3.camel@jonas.jocan.local"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="GtkHTML/3.24.5">
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 moz-do-not-send="true"
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>
</blockquote>
</blockquote>
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<br>
</body>
</html>