<!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 => 799,hint,DS/mmgc</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Lacy, What is the DS/mmgc?</FONT></DIV>
<DIV><BR>-- <BR>-- <BR>Steven</DIV>
<DIV> </DIV>
<DIV><A
href="http://www.glimasoutheast.org">http://www.glimasoutheast.org</A></DIV>
<DIV> </DIV>
<DIV><BR> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Lacy Moore - Aspendora" <<A
href="mailto:aspendora@gmail.com">aspendora@gmail.com</A>> wrote in message
<A
href="news:56a990d20609260822i63c7f28dpb9955b9a3be12f5c@mail.gmail.com">news:56a990d20609260822i63c7f28dpb9955b9a3be12f5c@mail.gmail.com</A>...</DIV>
<DIV>
<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> for
more info on this. </DIV>
<DIV> </DIV>
<DIV>Here is a part of my extensions.conf that uses this:</DIV>
<DIV> </DIV>
<DIV>; Night Mode Activations<BR>exten => 799,hint,DS/mmgc<BR>exten =>
799,1,Macro(open-close,mmgc,custom/moore-moore-now-open,custom/moore-moore-now-closed)<BR>exten
=> 799,n,Playback(beep)<BR>exten => 799,n,Hangup <BR> </DIV>
<DIV><BR><BR>[macro-open-close]<BR>exten =>
s,1,DBGet(nightmode=nightmode/${ARG1})<BR>exten => s,n,NoOp(ARG1 ${ARG1}
ARG2 ${ARG2} ARG3 ${ARG3})<BR>exten => s,n,Set(OpenFile=${ARG2})<BR>exten
=> s,n,Set(CloseFile=${ARG3}) <BR>exten => s,n,NoOp(Close file
${CloseFile}. Open file ${OpenFile}.)<BR>exten =>
s,n,GotoIf(${nightmode}=1?s,Open:s,Close)<BR>exten =>
s,n(Open),DBPut(nightmode/${ARG1}=0)<BR>exten => s,n,Devstate(${ARG1},0)
<BR>exten => s,n,Playback(${OpenFile})<BR>exten =>
s,n,Goto(Return)<BR>exten => s,n(Close),DBPut(nightmode/${ARG1}=1)<BR>exten
=> s,n,Devstate(${ARG1},2)<BR>exten =>
s,n,Playback(${CloseFile})<BR>exten => s,n(Return),NoOp <BR> </DIV>
<DIV>On my Polycom, I have a speeddial set up for 799. One press, and it
turns night mode on and announces that, another press and it turns night mode
off and announces that.. </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>
http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE></BODY></HTML>