<pre>Hello, <br><br>I am newbie into the asterisk dev. Feel the same problem with realtime context, the extensions being loaded realtime but not the context , it is still static with me.. <br>would like to test if anyone having this patch written by ALF. Where can I get the patch for
pbx.c and pbx_config.c <br><br>thanks<br>~Russell<br><br>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<br></pre><h1>[asterisk-dev] Realtime Dialplan</h1>
<b>Alf Scherer</b>
<a href="mailto:asterisk-dev%40lists.digium.com?Subject=%5Basterisk-dev%5D%20Realtime%20Dialplan&In-Reply-To=" title="[asterisk-dev] Realtime Dialplan">asterisk at jass.at
</a><br>
<i>Fri Apr 21 16:24:15 MST 2006</i>
<ul><li>Previous message: <a href="http://lists.digium.com/pipermail/asterisk-dev/2006-April/020178.html">[asterisk-dev] NLUUG fall conference -- IP Communication
</a></li><li>Next message: <a href="http://lists.digium.com/pipermail/asterisk-dev/2006-April/020180.html">[asterisk-dev] Realtime Dialplan
</a></li><li> <b>Messages sorted by:</b>
<a href="http://lists.digium.com/pipermail/asterisk-dev/2006-April/date.html#20179">[ date ]</a>
<a href="http://lists.digium.com/pipermail/asterisk-dev/2006-April/thread.html#20179">[ thread ]</a>
<a href="http://lists.digium.com/pipermail/asterisk-dev/2006-April/subject.html#20179">[ subject ]</a>
<a href="http://lists.digium.com/pipermail/asterisk-dev/2006-April/author.html#20179">[ author ]</a>
</li></ul><pre><br><br>Hello Friends,<br><br>recently while testing Asterisk's Realtime feature I engaged into an<br>interesting problem: the current implementation of the realtime dialplan<br>switch requires the context to exist in the
extensions.conf, otherwise<br>the pbx implementation does not know how to handle an non existing<br>context (however the context exists in the database). if I setup a<br>database for an easier management I still would have to change the
<br>extensions.conf every time I add an context and do a "extensions reload"<br>on the Asterisk CLI to reflect the changes? Hmm, that somehow turns the<br>whole idea of having a database based dialplan down to nonsense.
<br><br>(correct me if I'm wrong with my assumption)<br><br>Basically it means, if I use a database to setup my dialplan with<br>different contexts I would have to add each of the contexts to the<br>extensions.conf, instead of having some sort of "fallback" context that
<br>would in case of an unknown context have an 'eswitch' directive asking a<br>Realtime switch to lookup the desired context in the database.<br><br>It might also be that I didn't read the FM as good as I should have, but
<br>I really didn't find any reference that would point me into a direction<br>of how to solve this problem.<br><br>For that reason I patched the files pbx.c and pbx_config.c to add the<br>functionallity of a "catchall"-context that would ask a Realtime switch
<br>for the desired context and extension. That basically means that by<br>using the patch you are able to manage the dialplan completely through a<br>database without ever doing an "extensions reload" as it should be.
<br><br>Tell me if you are interested in testing and I'd contribute a patch for<br>the latest SVN release. <br><br><br>Greetings<br>Alf Scherer<br></pre>