<div>if you have patched asterisk with bristuff, you could use the app DevState(newstate).</div>
<div>Basically, a thing like this:</div>
<div>&nbsp;</div>
<div>; suppose 999 is your &quot;nightmode enable/disable&quot; extension</div>
<div>exten =&gt; 999,hint,DS/nightmode</div>
<div>
<div>exten =&gt; 999,1,your enable/disable stuff</div>exten =&gt; 999,2,your enable/disable stuff</div>
<div>exten =&gt; 999,3,your enable/disable stuff</div>
<div>.....</div>
<div>exten =&gt; 999,n,Gotoif(${ENABLING}?100:200)</div>
<div>&nbsp;</div>
<div>exten =&gt; 999,100,DevState(nightmode|3)</div>
<div>
<div>
<div>exten =&gt; 999,101,Hangup</div>
<div>exten =&gt; 999,200,DevState(nightmode|1)</div></div></div>
<div>
<div>exten =&gt; 999,201,Hangup</div></div>
<div>&nbsp;</div>
<div>then you monitor &quot;999&quot; on your BLF...</div>
<div>&nbsp;</div>
<div>hope this helps</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">2006/4/11, Jason Adams &lt;<a href="mailto:jadams@sumosystems.net">jadams@sumosystems.net</a>&gt;:</span></div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">
<div><span><font face="Arial" size="2">Hey Everyone,</font></span></div>
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Arial" size="2">I just setup a way for our receptionist to turn on the auto attendant mode via her phone.&nbsp; I setup one of the indicators to dail an extension which runs a bunch of code to turn on/off the night mode.&nbsp; Is there a way using the BLF to turn the indicator on (solid red) when night mode is on and turn the indicator off when night mode is off?
</font></span></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><span><font face="Arial" size="2">Thanks,</font></span></div></div>
<div style="DIRECTION: ltr"><span class="sg">
<div><span><font face="Arial" size="2"></font></span>&nbsp;</div>
<p align="left"><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">Jason Adams<br></span></font><b><font face="Verdana" color="maroon" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: maroon; FONT-FAMILY: Verdana">
Sumo</span></font></b><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana"> <b><span style="FONT-WEIGHT: bold">Systems</span></b></span></font><font size="2"><span style="FONT-SIZE: 10pt">
 <br></span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">57 E. Wilson Bridge Rd</span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">
<br></span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">Suite</span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">
 200</span></font><font size="2"><span style="FONT-SIZE: 10pt"><br></span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">Worthington</span></font><font face="Verdana" color="gray" size="2">
<span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">, OH</span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana"> 43085</span></font><font size="2">
<span style="FONT-SIZE: 10pt"> <br></span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">Phone | 614.433.9906 ext: 102</span></font><font size="2"><span style="FONT-SIZE: 10pt">
<br></span></font><font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">Fax | 614.433.9931</span></font><font size="2"><span style="FONT-SIZE: 10pt"> <br></span></font>
<font face="Verdana" color="gray" size="2"><span style="FONT-SIZE: 10pt; COLOR: gray; FONT-FAMILY: Verdana">E-mail | <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:jadams@sumosystems.net" target="_blank">
jadams@sumosystems.net</a></span></font><font size="1"><span style="FONT-SIZE: 8pt"> </span></font></p>
<div>&nbsp;</div></span></div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://easynews.com/" target="_blank">
Easynews.com</a> --<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>