From: j <[EMAIL PROTECTED]>
>On Wed, 2007-01-31 at 12:14 -0500, Lee Jenkins wrote:
> > >>
> > >> I've searched far and wide for an answer and have gotten no where, so I
> > >> was hoping one of you guys might have the answer;
> > >>
> > >> Is it possible to dynamically add a context to the dialplan?
> > >> You can add extensions via the CLI, however if the context doesn't exist
> > >> I get an error message instead of it creating the context for me.
> > >>
> > >> Any method will do, AGI, AMI, CLI... I just need a solution :)
> >
> > Yusuf,
> >
> > I was just curious what kind of context do you need to
add? The reason
> > I ask is maybe you could use a custom AGI script to simulate the same
> > steps that would occur in a dynamically added context?
> >
> > You could for instance, create an AGI that reads from a dynamically
> > created text file template or flat script?
> >
> > Just a thought...
>
> Good thought. Thing is, what exactly would the agi script do? There's
>no agi command to add a context either.
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.
Yuan Liu
> There's no way to simulate a dynamically added context mainly because,
>well, there's nothing to simulate :)
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
