Lance Arbuckle
2003-Dec-30 16:36 UTC
[Asterisk-Users] playback in [macro-stdexten] problem
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
--
.~.
/V\ Lance C. Arbuckle
// \\
/( )\
^'~'^
Lance Arbuckle
2003-Dec-30 17:10 UTC
[Asterisk-Users] playback in [macro-stdexten] problem
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] > exten => s,1,Playback(transfer,skip) > exten => s,2,Dial(${ARG2},20) > exten => s,3,Voicemail(u${ARG1}) > exten => s,103,Voicemail(b${ARG1})I read the wiki a few more times and I know the 'skip' option is causing the behavior i'm seeing. What's the difference between putting the playback line as the first priority in the extension (and not having in in macro-stdexten ) verses moving the playback inside the macro ? I thought functionally they would be the same. exten => 8005,1,Playback(transfer,skip) exten => 8005,2,Macro(stdexten,8005,Zap/2) exten => 8006,1,Playback(transfer,skip) exten => 8006,2,Macro(stdexten,8006,Sip/8006) [macro-stdexten] exten => s,1,Dial(${ARG2},20) exten => s,2,Voicemail(u${ARG1}) exten => s,102,Voicemail(b${ARG1}) Thanks -- .~. /V\ Lance C. Arbuckle // \\ /( )\ ^'~'^
Olle E. Johansson
2003-Dec-31 01:37 UTC
[Asterisk-Users] playback in [macro-stdexten] problem
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, oej@edvina.net 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