<html><div style='background-color:'><DIV class=RTE>
<P><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">From: <I>j <j@intuitivecreations.com></I><BR>>On Wed, 2007-01-31 at 12:14 -0500, Lee Jenkins wrote:<BR>> > >><BR>> > >> I've searched far and wide for an answer and have gotten no where, so I<BR>> > >> was hoping one of you guys might have the answer;<BR>> > >><BR>> > >> Is it possible to dynamically add a context to the dialplan?<BR>> > >> You can add extensions via the CLI, however if the context doesn't exist<BR>> > >> I get an error message instead of it creating the context for me.<BR>> > >><BR>> > >> Any method will do, AGI, AMI, CLI... I just need a solution :)<BR>> ><BR>> > Yusuf,<BR>> ><BR>> > I was just curious what kind of context do you need to
add? The reason<BR>> > I ask is maybe you could use a custom AGI script to simulate the same<BR>> > steps that would occur in a dynamically added context?<BR>> ><BR>> > You could for instance, create an AGI that reads from a dynamically<BR>> > created text file template or flat script?<BR>> ><BR>> > Just a thought...<BR>><BR>> Good thought. Thing is, what exactly would the agi script do? There's<BR>>no agi command to add a context either.</FONT></P>
<P><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">What Lee suggested is to have the AGI script to actually parse, insert a new context in extensions.conf, or deleting from it, then reload extensions.conf. This would at least achieve what you wanted to do.</FONT></P>
<P><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">Yuan Liu<BR>> There's no way to simulate a dynamically added context mainly because,<BR>>well, there's nothing to simulate :)<BR></P></DIV></FONT></div></html>