[asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
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 :) This is a users question. Moved there What about using Realtime??? -- thanks, Yusuf ___ --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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
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... -- Warm Regards, Lee ___ --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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
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 :) ___ --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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
Reload.. Reload.. Reload..! /me ducks ___ --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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
Shane Spencer wrote: Reload.. Reload.. Reload..! LOL. -- Warm Regards, Lee ___ --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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
On 01/02/07, Yuan LIU <[EMAIL PROTECTED]> wrote: 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. Or alternatively, to avoid complete disaster, why not have extensions.conf include another file (#include ) and edit that one with your script? I've done that before (although I was actually recreating the entire file each time by populating from an external database). Andrew -- Linux supports the notion of a command line or a shell for the same reason that only children read books with only pictures in them. Language, be it English or something else, is the only tool flexible enough to accomplish a sufficiently broad range of tasks. -- Bill Garrett ___ --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
Re: [asterisk-users] Re: [asterisk-dev] Dynamically Adding A Context
Hahaha,, I think thats a freaking SWEET suggestion :) On 1/31/07, Andrew Furey <[EMAIL PROTECTED]> wrote: On 01/02/07, Yuan LIU <[EMAIL PROTECTED]> wrote: > 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. Or alternatively, to avoid complete disaster, why not have extensions.conf include another file (#include ) and edit that one with your script? I've done that before (although I was actually recreating the entire file each time by populating from an external database). Andrew -- Linux supports the notion of a command line or a shell for the same reason that only children read books with only pictures in them. Language, be it English or something else, is the only tool flexible enough to accomplish a sufficiently broad range of tasks. -- Bill Garrett ___ --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 ___ --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