<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&#8217;ve got some modifications I&#8217;ve
made to asterisk that create a &#8220;global switch&#8221;. &nbsp;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&#8217;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>&nbsp;</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&#8217;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.&nbsp; 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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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:&nbsp; Is there a way to have
the entire extensions.conf file coming from the realtime?&nbsp; <br>
<br>
It appears that RealTime&nbsp;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 &quot;switch =&gt; Realtime&quot; line (then reload).&nbsp; I
want to be able to add phones without having to edit any files.&nbsp; <br>
<br>
I'm using a PHP w/&nbsp;MySQL&nbsp;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.&nbsp; But, the blind transfer comes
into the dialplan&nbsp;on the channel of the transferree with the context of
the transferer.&nbsp; So, I need to have each phone in it's own context to determine
what channel is actually requesting the transfer (for&nbsp;cdr, parking,
routing, etc.&nbsp;reasons).&nbsp; As such, I have to create a new context each
time I add a phone.&nbsp; <br>
&nbsp;<br>
I&nbsp;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 (&lt;--oxymoron)&nbsp;for
MWI.&nbsp; 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).&nbsp; I don't want to have to a. have to save the file on each box
or b. map the files between boxes.&nbsp; <br>
<br>
!!!&nbsp;- 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.&nbsp; <br>
&nbsp;-- <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.&nbsp;&nbsp;They are doing
their best to serve you and your indignant, malcontent attitude.&nbsp;&nbsp; <br>
-- <o:p></o:p></span></font></p>

</div>

</body>

</html>