yusuf
2007-Jan-30 09:05 UTC
[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
On Tue, 2007-01-30 at 18:04 +0200, 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 :) > > > > This is a users question. Moved there > > What about using Realtime???Good question. I'll explain: I'm updating proxy software (amsuite.sourceforge.net) which needs to be able to figure out where Local channels actually map to for dynamic agents. The only feasible way to do this in a truly dynamic sense is to call the Local channel and wait for a Dial event. In order to do this, I have to add a couple quick extensions to the dial plan dynamically, so I have to be able to add my own context. This question doesn't relate to my specific setup, if that were true, it'd be easy :) I can only rely on functionality that everyone would have and I'm trying to avoid making users of the software avoid any tedious and unnecessary setup. p.s. I double posted this in dev because I was hoping a developer would have some special insight into a hack I might be able to use. I've scoured the internet and IRC and there seems to be no "just use this function" user-type solution. j>
In order to do this, I have to add a couple quick extensions to the dial plan dynamically, so I have to be able to add my own context. from API use Command to run the CLI command add extension --------------------------------- The fish are biting. Get more visitors on your site using Yahoo! Search Marketing. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070130/7d70652a/attachment.htm
On Tue, Jan 30, 2007 at 12:59:15PM -0800, chester c young wrote:> In order to do this, I have to add a couple quick extensions to the > dial plan dynamically, so I have to be able to add my own context. > > from API use Command to run the CLI command add extensionBut you can only add to an existing context with that. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
Lee Jenkins
2007-Jan-31 10:14 UTC
[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
lol. On Wed, 2007-01-31 at 13:00 -0900, Shane Spencer wrote:> Cool. My first attempt would have been to find out how to use > asterisk variables in the dialplan since I can set those like crazy > mad via an AGI. Then i would have cried and become horribly > demotivated. > _______________________________________________ > --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