[Asterisk-Users] SIP extension "busy" when not available ??
Soren Rathje
asterisk at lolle.org
Mon Feb 23 17:52:53 MST 2004
----- Original Message -----
From: <info-lists at robertc.de>
To: <asterisk-users at lists.digium.com>
Sent: Monday, February 23, 2004 10:45 PM
Subject: Re: [Asterisk-Users] SIP extension "busy" when not available ??
>
> I use a macro to define the extensions. In this way I only have to enter 1
> line per actual extension.
> The Macro is:
> [macro-stdexten]
> exten => s,1,ChanisAvail(${ARG2})
> exten => s,2,Dial(${ARG2},20,Ttr)
> exten => s,102,GoTo(voicemail,s,1) <--Note A
> exten => s,103,Hangup
> exten => s,104,GoTo(voicemail,s,1) <--Note B
> exten => s,105,Hangup
>
Hey, that works pretty cool...
I've changed it a bit... (the DND stuff I found elsewhere)
[macro-stdexten]
exten => s,1,DBget(temp=DND/${ARG1}) ; DND set ?
exten => s,2,Goto(104) ; Yes.
exten => s,102,ChanisAvail(${ARG2}) ; Channel up?
exten => s,103,Dial(${ARG2},20,tr) ; Ring the interface, 20 seconds
maximum
exten => s,104,Voicemail(u${ARG1}) ; Send to voicemail w/ unavail
announce
exten => s,105,Hangup ; Doh...
exten => s,203,NoOp ; Nada...
exten => s,204,Voicemail(b${ARG1}) ; Send to voicemail w/ busy announce
exten => s,205,Hangup ; Doh...
[dnd]
; *61# turns it on
; *60# turns it off
;
exten => _*61,1,DBput(DND/${CALLERIDNUM}=YES})
exten => _*61,2,Playback(vm-goodbye)
exten => _*61,3,SoftHangup
exten => _*60,1,DBdel(DND/${CALLERIDNUM})
exten => _*61,2,Playback(vm-goodbye)
exten => _*60,3,SoftHangup
Now I just have to figure out a way to tell if it's on or not..
-- Soren
More information about the asterisk-users
mailing list