[Asterisk-Users] Annonuce Me Feature

Dovid Bender asteriskdigium at yahoo.com
Mon Apr 3 03:48:05 MST 2006


Please note that I forwarded this email from one
account to annother. If there is a problem with the
format please let me know and I will email direct. The
example below is a working config on a friends machine

Dovid

http://www.voip-info.org/wiki-Asterisk+cmd+Dial

On the cmd Dial page Search for "Dial Macros"

[macro-(screen]
exten => s,1,Wait(0.2)
exten => s,2,Playback(mpd/cell-incoming-mpd)
exten => s,3,Playback(mpd/${ARG1})
 
exten => s,4,Read(ACCEPT-CALL|mpd/cell-mpd-accept|1)
exten => s,5,NoOp(${ACCEPT-CALL})
exten => s,6,GotoIf($["${ACCEPT-CALL}" = "1"] ?51:7)
exten => s,7,SetVar(MACRO_RESULT=CONTINUE)
exten => s,51,Noop("")
 
 
[macro-stdmpdexten]
exten => s,1,Wait(0.2)           
exten => s,2,Playback(pls-wait-connect-call)        
exten => s,3,Dial(${ARG2},20,mTt) ;Ring the interface,
20 seconds maximum
exten => s,4,Goto(s-${DIALSTATUS},1) ; Jump based on
status
(NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten =>
s-NOANSWER,1,Dial(SIP/${DB(follow/cell)}@sipmedia3|60|mtM(screen^${ARG3}))
exten => s-NOANSWER,2,Voicemail(u${ARG1}) ; If
unavailable, send to voicemail w/ unavail announce
exten => s-NOANSWER,3,Goto(default,s,1) ; If they
press #, return to start

exten =>
s-BUSY,1,Dial(SIP/${DB(follow/cell)}@sipmedia3|60|mtM(screen))
exten => s-BUSY,2,Voicemail(b${ARG1}) ; If busy, send
to voicemail w/ busy announce
exten => s-BUSY,3,Goto(default,s,1) ; If they press #,
return to start exten => _s-.,1,Goto(s-NOANSWER,1) ;
Treat anything else as no answer
exten => a,1,VoicemailMain(${ARG1}); If they press *,
send the user into VoicemailMain

[mpdmain]
;
; Example "main menu" context with submenu
;
exten => s,1,Answer
exten => s,2,GotoIfTime(09:00-16:59|mon-fri|*|*?s,4)
exten => s,3,Goto(office-night,s,1)
exten => s,4,Background(mpd/welcome) ;"Thanks for
calling press 1 for sales, 2 for support, ..."
exten => s,5,WaitExten
 
exten => 1,1,SetCallerID("Maint - ${CALLERIDNAME}"
<${CALLERIDNUM:2}>)
exten =>
1,2,Macro(stdmpdexten,101,SIP/101&SIP/201,cell-mpd-maint)

exten => 2,1,SetCallerID("Comp - ${CALLERIDNAME}"
<${CALLERIDNUM:2}>)
exten =>
2,2,Macro(stdmpdexten,101,SIP/101&SIP/201,cell-mpd-comp)



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the asterisk-users mailing list