Lance Arbuckle wrote:

I added the playback line to my [macro-stdexten] context but when I dail an extension I don't get the "please hold while I try that extension" message. It just dials the extexsion. Do I have a syntax problem somewhere ?

exten => 8005,1,Macro(stdexten,8005,Zap/2) exten => 8006,1,Macro(stdexten,8006,Sip/8006)

[macro-stdexten]
; ; Standard extension macro:
; ${ARG1} - Extension (we could have used ${MACRO_EXTEN} here as well
; ${ARG2} - Device(s) to ring
;


exten => s,1,Playback(transfer,skip)
exten => s,2,Dial(${ARG2},20)           ; Ring the interface, 20 seconds
maximum
exten => s,3,Voicemail(u${ARG1})        ; If unavailable, send to
voicemail w/ unavail announce
exten => s,103,Voicemail(b${ARG1})      ; If busy, send to voicemail w/
busy announce



It's good practise to answer the line before you say something :-)
exten => s,1,answer

From the tips and tricks page on the Wiki:
http://www.voip-info.org/wiki-Asterisk+tips+answer-before-playback
/O

--
*** Olle E. Johansson, [EMAIL PROTECTED]

Mobile +46 70 593 68 51, Edvina AB, http://www.edvina.net
Runbovägen 10, 192 48 Sollentuna, Sweden
Phone: +46 8 594 78 810, Fax: +46 8 594 78 820


_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to