<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Is it at all possible to set a Global Variable
freely whenever a context gets used without having to enter an extension
priority to use SetGlobalVar? This is really limiting the dialplan for
me. Heres an example of what I would like to be able to do.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[globals]</FONT></DIV>
<DIV><FONT face=Arial size=2>AREACODE=</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[local]</FONT></DIV>
<DIV><FONT face=Arial
size=2>exten=_NXXXXXX,1,Dial(SIP/${AREACODE}${EXTEN}/blah)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>[anyoldcontext1]</FONT></DIV>
<DIV><FONT face=Arial size=2>AREACODE=313</FONT></DIV>
<DIV><FONT face=Arial size=2>include=local</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>
<DIV><FONT face=Arial size=2>[anyoldcontext2]</FONT></DIV>
<DIV><FONT face=Arial size=2>AREACODE=810</FONT></DIV>
<DIV><FONT face=Arial size=2>include=local</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>so then sip accounts would point towards either
anyoldcontext1 or anyoldcontext2 and depending on what is set in sip.conf for a
context depends on what their area code the sip account would use. Anyone
have any ideas? I suppose my last resort will be to modify the source but
an simple alternative would be nice. Thanks a lot</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-Chad</FONT></DIV></DIV></FONT></DIV></BODY></HTML>