<!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.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>;exten =&gt; 799,hint,DS/mmgc</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Lacy,&nbsp; What is the DS/mmgc?</FONT></DIV>
<DIV><BR>-- <BR>-- <BR>Steven</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://www.glimasoutheast.org">http://www.glimasoutheast.org</A></DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Lacy Moore - Aspendora" &lt;<A 
  href="mailto:aspendora@gmail.com">aspendora@gmail.com</A>&gt; wrote in message 
  <A 
  href="news:56a990d20609260822i63c7f28dpb9955b9a3be12f5c@mail.gmail.com">news:56a990d20609260822i63c7f28dpb9955b9a3be12f5c@mail.gmail.com</A>...</DIV>
  <DIV>&nbsp; 
  <DIV>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Is 
    it possible to manually set the hint status of a virtual extension via the 
    dialplan?<BR><BR>I have an extension that turns my night mode on and off. 
    <BR><BR>I would love to be able to manually set the hint to be able to turn 
    on a light for night mode.<BR><BR></BLOCKQUOTE></DIV></DIV>
  <DIV>See <A 
  href="http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+BristuffDevstate">http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+BristuffDevstate</A>&nbsp;for 
  more info on this. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Here is a part of my extensions.conf that uses this:</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>; Night Mode Activations<BR>exten =&gt; 799,hint,DS/mmgc<BR>exten =&gt; 
  799,1,Macro(open-close,mmgc,custom/moore-moore-now-open,custom/moore-moore-now-closed)<BR>exten 
  =&gt; 799,n,Playback(beep)<BR>exten =&gt; 799,n,Hangup <BR>&nbsp;</DIV>
  <DIV><BR><BR>[macro-open-close]<BR>exten =&gt; 
  s,1,DBGet(nightmode=nightmode/${ARG1})<BR>exten =&gt; s,n,NoOp(ARG1 ${ARG1} 
  ARG2 ${ARG2} ARG3 ${ARG3})<BR>exten =&gt; s,n,Set(OpenFile=${ARG2})<BR>exten 
  =&gt; s,n,Set(CloseFile=${ARG3}) <BR>exten =&gt; s,n,NoOp(Close file 
  ${CloseFile}. Open file ${OpenFile}.)<BR>exten =&gt; 
  s,n,GotoIf(${nightmode}=1?s,Open:s,Close)<BR>exten =&gt; 
  s,n(Open),DBPut(nightmode/${ARG1}=0)<BR>exten =&gt; s,n,Devstate(${ARG1},0) 
  <BR>exten =&gt; s,n,Playback(${OpenFile})<BR>exten =&gt; 
  s,n,Goto(Return)<BR>exten =&gt; s,n(Close),DBPut(nightmode/${ARG1}=1)<BR>exten 
  =&gt; s,n,Devstate(${ARG1},2)<BR>exten =&gt; 
  s,n,Playback(${CloseFile})<BR>exten =&gt; s,n(Return),NoOp <BR>&nbsp;</DIV>
  <DIV>On my Polycom, I have a speeddial set up for 799.&nbsp; One press, and it 
  turns night mode on and announces that, another press and it turns night mode 
  off and announces that..&nbsp;</DIV>
  <DIV><BR clear=all><BR>-- <BR>Lacy Moore<BR>I'm the guy that doesn't give a 
  damn about anyone's problems but my own... </DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>--Bandwidth and 
  Colocation provided by Easynews.com --<BR><BR>asterisk-users mailing 
  list<BR>To UNSUBSCRIBE or update options visit:<BR>&nbsp;&nbsp; 
  http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE></BODY></HTML>