[asterisk-users] Re: Set hint status from dialplan?

Steven asterisk at tescogroup.com
Tue Sep 26 10:02:30 MST 2006


That is the metermaid patch.  It has been included into 1.4 as far as I know.

I am hoping to use that for parking slot BLFs on the phones.

My extension for day/night mode is not a real channel, so I am hoping to set the hint value manually.

-- 
-- 
Steven

http://www.glimasoutheast.org



"C F" <shmaltz at gmail.com> wrote in message news:81000b5a0609260912xc40a2ddo99b15bfc21a3eacf at mail.gmail.com...
> IIRC, there was a dev status for the local channel being worked on the
> bug tracker.
> Ok, here is the link:
> http://bugs.digium.com/view.php?id=5779
>
> On 9/26/06, Lacy Moore - Aspendora <aspendora at gmail.com> wrote:
>>
>>
>> > Is it possible to manually set the hint status of a virtual extension via
>> the dialplan?
>> >
>> > I have an extension that turns my night mode on and off.
>> >
>> > I would love to be able to manually set the hint to be able to turn on a
>> light for night mode.
>> >
>> >
>>
>> See
>> http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+BristuffDevstate
>> for more info on this.
>>
>> Here is a part of my extensions.conf that uses this:
>>
>> ; Night Mode Activations
>> exten => 799,hint,DS/mmgc
>> exten =>
>> 799,1,Macro(open-close,mmgc,custom/moore-moore-now-open,custom/moore-moore-now-closed)
>> exten => 799,n,Playback(beep)
>> exten => 799,n,Hangup
>>
>>
>>
>> [macro-open-close]
>> exten => s,1,DBGet(nightmode=nightmode/${ARG1})
>> exten => s,n,NoOp(ARG1 ${ARG1} ARG2 ${ARG2} ARG3 ${ARG3})
>> exten => s,n,Set(OpenFile=${ARG2})
>> exten => s,n,Set(CloseFile=${ARG3})
>> exten => s,n,NoOp(Close file ${CloseFile}. Open file ${OpenFile}.)
>> exten => s,n,GotoIf(${nightmode}=1?s,Open:s,Close)
>> exten => s,n(Open),DBPut(nightmode/${ARG1}=0)
>> exten => s,n,Devstate(${ARG1},0)
>> exten => s,n,Playback(${OpenFile})
>> exten => s,n,Goto(Return)
>> exten => s,n(Close),DBPut(nightmode/${ARG1}=1)
>> exten => s,n,Devstate(${ARG1},2)
>> exten => s,n,Playback(${CloseFile})
>> exten => s,n(Return),NoOp
>>
>> 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..
>>
>>
>> --
>> Lacy Moore
>> I'm the guy that doesn't give a damn about anyone's problems but my own...
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
> 





More information about the asterisk-users mailing list