CVS HEAD/Asterisk 1.2: Is there a way to have the entire extensions.conffile coming from the realtime? It appears that RealTime for the extensions.conf file is on a context by context basis, but you have to create each new context in the extensions.conf file then add a "switch => Realtime" line (then reload). I want to be able to add phones without having to edit any files. I'm using a PHP w/ MySQL AGI app to route my calls and all this would all be find except for blind transfers as I could use the channel variable itself to determine the source of the call. But, the blind transfer comes into the dialplan on the channel of the transferree with the context of the transferer. So, I need to have each phone in it's own context to determine what channel is actually requesting the transfer (for cdr, parking, routing, etc. reasons). As such, I have to create a new context each time I add a phone. I don't mind reloading so much and it looks like I'm not going to be able to avoid that anyways with the SIP RealTime cached (<--oxymoron) for MWI. The reason I don't want to edit files is that I'm sharing the dialplan between multiple boxes (the PHP app takes care of figuring out which box it is). I don't want to have to a. have to save the file on each box or b. map the files between boxes. !!! - Alternatively, if there is a way to determine in the dialplan who is the transferer without having each phone in it's own context, that would be fine. -- Automated Signature: This message is from Flobi of Flobi.com<http://Flobi.com> . Visit my website if you like: http://www.flobi.com/ Please remember to tip your waitress and bartender. They are doing their best to serve you and your indignant, malcontent attitude. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050907/8da7a475/attachment.htm
I've got some modifications I've made to asterisk that create a "global switch". It essentially just adds a check to the end of pbx_find_extension() that will try to look the extension up in the database if it's not found in one of the includes or in any of the switches attached to the context itself. It's rather hackish (it uses a global context not linked in with the regular context list), and so probably has some issues, but I can clean it up and post the patch somewhere if others are interested. It sounds like you would be. Cheers! Robert Bedell _____ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Flobi Sent: Wednesday, September 07, 2005 9:57 AM To: Asterisk-Users@lists.digium.com Subject: [Asterisk-Users] Extensions - Realtime CVS HEAD/Asterisk 1.2: Is there a way to have the entire extensions.conf file coming from the realtime? It appears that RealTime for the extensions.conf file is on a context by context basis, but you have to create each new context in the extensions.conf file then add a "switch => Realtime" line (then reload). I want to be able to add phones without having to edit any files. I'm using a PHP w/ MySQL AGI app to route my calls and all this would all be find except for blind transfers as I could use the channel variable itself to determine the source of the call. But, the blind transfer comes into the dialplan on the channel of the transferree with the context of the transferer. So, I need to have each phone in it's own context to determine what channel is actually requesting the transfer (for cdr, parking, routing, etc. reasons). As such, I have to create a new context each time I add a phone. I don't mind reloading so much and it looks like I'm not going to be able to avoid that anyways with the SIP RealTime cached (<--oxymoron) for MWI. The reason I don't want to edit files is that I'm sharing the dialplan between multiple boxes (the PHP app takes care of figuring out which box it is). I don't want to have to a. have to save the file on each box or b. map the files between boxes. !!! - Alternatively, if there is a way to determine in the dialplan who is the transferer without having each phone in it's own context, that would be fine. -- Automated Signature: This message is from Flobi of Flobi.com. Visit my website if you like: http://www.flobi.com/ Please remember to tip your waitress and bartender. They are doing their best to serve you and your indignant, malcontent attitude. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050907/da80908e/attachment.htm
> CVS HEAD/Asterisk 1.2: Is there a way to have the entire > extensions.conffile coming from the realtime?Yes. Go read the wiki on RealTime Static. -Matthew
It states that the conf file overrides the static db info, but what about the ael file? Does that override also? BTW, "RealTime Static"...talk about oxymoron :-) Gotta love it! Flobi On 9/7/05, Matthew Boehm <mboehm@cytelcom.com> wrote:> > > CVS HEAD/Asterisk 1.2: Is there a way to have the entire > > extensions.conffile coming from the realtime? > > Yes. Go read the wiki on RealTime Static. > > -Matthew > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>-- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Automated Signature: This message is from Flobi of Flobi.com<http://Flobi.com> . Visit my website if you like: http://www.flobi.com/ Please remember to tip your waitress and bartender. They are doing their best to serve you and your indignant, malcontent attitude. -- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050907/9e2018fc/attachment.htm
Seemingly Similar Threads
- Several SIP clients behind router register with the same IP, messing up call routing, any ideas?
- Additional: Several SIP clients behind router registerwiththe same IP, messing up call routing, any ideas?
- Multiple Line Appearances / Why use this?
- play each person's voicemail
- Distinctive ringing on Cisco 79xx