Re: [asterisk-users] Dynamically Adding A Context
Seriously man. I don't want to be testy here, but what part of *dynamic* didn't you understand? Adding a context to a flat file and reloading the server is NOT dynamic. And, as I explained in a previous post, realtime is not a solution I can use for this issue because I'm updating proxy software that uses the AMI so realtime is not an option. For everyone else; Thanks for trying to take a stab at this. It seems there simply is no way to do it. Perhaps I'll submit a patch to digium so at least we have this simple functionality in the future... j On Tue, 2007-01-30 at 13:17 -0900, Shane Spencer wrote: Reload.. Reload.. Reload.. On 1/30/07, Shane Spencer [EMAIL PROTECTED] wrote: Realtime.. Realtime.. Realtime.. On 1/30/07, j [EMAIL PROTECTED] wrote: On Tue, 2007-01-30 at 23:11 +0200, Tzafrir Cohen wrote: 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 extension But you can only add to an existing context with that. Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( ___ --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 ___ --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] Dynamically Adding A Context
At 02:17 PM 1/30/2007, you wrote: Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( You could create a set of empty extensions to use and re-use as needed. It's one of those tasks that made you wish array() had something to do with arrays!!! Ira ___ --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] Dynamically Adding A Context
Seriously? You want serious! You can't handle the serious! I would assume that editing a file and refreshing a system by means of a program or self intervention which causes no interruption in service could be concidered dynamic. How does asterisk realtime handle this thats so radically different that it can be the only true dynamic method of doing this. BTW.. Did you figure it out yet? On 1/31/07, j [EMAIL PROTECTED] wrote: Seriously man. I don't want to be testy here, but what part of *dynamic* didn't you understand? Adding a context to a flat file and reloading the server is NOT dynamic. And, as I explained in a previous post, realtime is not a solution I can use for this issue because I'm updating proxy software that uses the AMI so realtime is not an option. For everyone else; Thanks for trying to take a stab at this. It seems there simply is no way to do it. Perhaps I'll submit a patch to digium so at least we have this simple functionality in the future... j On Tue, 2007-01-30 at 13:17 -0900, Shane Spencer wrote: Reload.. Reload.. Reload.. On 1/30/07, Shane Spencer [EMAIL PROTECTED] wrote: Realtime.. Realtime.. Realtime.. On 1/30/07, j [EMAIL PROTECTED] wrote: On Tue, 2007-01-30 at 23:11 +0200, Tzafrir Cohen wrote: 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 extension But you can only add to an existing context with that. Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( ___ --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 ___ --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
Re: [asterisk-users] Dynamically Adding A Context
On Tue, 2007-01-30 at 20:17 -0800, Ira wrote: At 02:17 PM 1/30/2007, you wrote: Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( You could create a set of empty extensions to use and re-use as needed. It's one of those tasks that made you wish array() had something to do with arrays!!! Ira Thanks for the thought, unfortunately this won't work for what I'm trying to do. The software I'm building is being used on arbitrary systems all over the world, so I can't count on real time being there and I refuse to make it edit the extensions.conf and reload extensions (how would you feel if you used some proxy software and it started messing with your extensions.conf file??)... j ___ --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
Re: [asterisk-users] Dynamically Adding A Context
On Wed, 2007-01-31 at 09:28 -0900, Shane Spencer wrote: Seriously? You want serious! You can't handle the serious! Heh. Sorry man, it's been a bad day :( I would assume that editing a file and refreshing a system by means of a program or self intervention which causes no interruption in service could be concidered dynamic. I suppose the interpretation of dynamic can be somewhat subjective, however I tend to think of a text file as static. Dynamic, IMO, would be more along the lines of manipulating the configuration of the machine on-the-fly directly. How does asterisk realtime handle this thats so radically different that it can be the only true dynamic method of doing this. The problem with realtime is that not everyone uses it. I'm not trying to do something specific to my own configuration. I'm updating proxy software that's used in arbitrary environments, so I can only count on stuff that everyone has. BTW.. Did you figure it out yet? Unfortunately, it doesn't seem as though there is a way. I had to resort to making the users of the software map dynamic agent channels (i.e. Local/[EMAIL PROTECTED]) to actual device channels (i.e. SIP/200) in the users configuration file for every single user. I'm sure I'll hear some grumbling from some of the users I've spoken with in the past with very large call centers :( It would have been really cool if I could have dynamically called and traced the dynamic agents to their actual devices and removed the headache from the admin .. but .. oh well :( On 1/31/07, j [EMAIL PROTECTED] wrote: Seriously man. I don't want to be testy here, but what part of *dynamic* didn't you understand? Adding a context to a flat file and reloading the server is NOT dynamic. And, as I explained in a previous post, realtime is not a solution I can use for this issue because I'm updating proxy software that uses the AMI so realtime is not an option. For everyone else; Thanks for trying to take a stab at this. It seems there simply is no way to do it. Perhaps I'll submit a patch to digium so at least we have this simple functionality in the future... j On Tue, 2007-01-30 at 13:17 -0900, Shane Spencer wrote: Reload.. Reload.. Reload.. On 1/30/07, Shane Spencer [EMAIL PROTECTED] wrote: Realtime.. Realtime.. Realtime.. On 1/30/07, j [EMAIL PROTECTED] wrote: On Tue, 2007-01-30 at 23:11 +0200, Tzafrir Cohen wrote: 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 extension But you can only add to an existing context with that. Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( ___ --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 ___ --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 ___ --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] Dynamically Adding A Context
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
Re: [asterisk-users] Dynamically Adding A Context
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 ___ --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
[asterisk-users] Dynamically Adding A Context
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 :) Thanks for any insight you can give me! Cheers! j ___ --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] Dynamically Adding A Context
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 ___ --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] Dynamically Adding A Context
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.___ --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] Dynamically Adding A Context
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 extension But you can only add to an existing context with that. -- Tzafrir Cohen icq#16849755jabber:[EMAIL PROTECTED] +972-50-7952406 mailto:[EMAIL PROTECTED] http://www.xorcom.com iax:[EMAIL PROTECTED]/tzafrir ___ --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] Dynamically Adding A Context
On Tue, 2007-01-30 at 23:11 +0200, Tzafrir Cohen wrote: 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 extension But you can only add to an existing context with that. Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( ___ --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] Dynamically Adding A Context
Realtime.. Realtime.. Realtime.. On 1/30/07, j [EMAIL PROTECTED] wrote: On Tue, 2007-01-30 at 23:11 +0200, Tzafrir Cohen wrote: 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 extension But you can only add to an existing context with that. Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( ___ --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
Re: [asterisk-users] Dynamically Adding A Context
Reload.. Reload.. Reload.. On 1/30/07, Shane Spencer [EMAIL PROTECTED] wrote: Realtime.. Realtime.. Realtime.. On 1/30/07, j [EMAIL PROTECTED] wrote: On Tue, 2007-01-30 at 23:11 +0200, Tzafrir Cohen wrote: 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 extension But you can only add to an existing context with that. Yes exactly. I tried the 'add extension' command. With *and* without the 'replace' argument, if the context does not already exist the command gives an error ;( ___ --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