[asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context

j j at intuitivecreations.com
Wed Jan 31 14:37:10 MST 2007


On Wed, 2007-01-31 at 12:14 -0500, Lee Jenkins wrote:
> yusuf wrote:
> > j wrote:
> >> Greetings!
> >>
> >> 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.
  There's no way to simulate a dynamically added context mainly because,
well, there's nothing to simulate :)




More information about the asterisk-users mailing list