<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Cheers!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Robert Bedell<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='margin-left:.5in;text-align:center'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=3 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal style='margin-left:.5in'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Flobi<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, September 07,
2005 9:57 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Asterisk-Users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [Asterisk-Users]
Extensions - Realtime</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>CVS HEAD/Asterisk 1.2: Is there a way to have
the entire extensions.conf file coming from the realtime? <br>
<br>
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. <br>
<br>
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. <br>
<br>
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. <br>
<br>
!!! - 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. <br>
-- <br>
Automated Signature: This message is from Flobi of <a href="http://Flobi.com">Flobi.com</a>.<br>
Visit my website if you like: <a href="http://www.flobi.com/">http://www.flobi.com/</a><br>
<br>
Please remember to tip your waitress and bartender. They are doing
their best to serve you and your indignant, malcontent attitude. <br>
-- <o:p></o:p></span></font></p>
</div>
</body>
</html>