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:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Flobi
Sent: Wednesday, September 07,
2005 9:57 AM
To: [email protected]
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.
--
|
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users