All pastes #15299 Raw Edit

Anonymous

public text v1 · immutable
#15299 ·published 2005-06-21 12:26 UTC
rendered paste body
[macro-psrecback]
exten => s,1,SetVar(current=${PSUSER}-${PSTRACK})
exten => s,2,Monitor(wav,${current})
exten => s,3,ResponseTimeout,600
exten => s,4,Background(ps/offers/${PSTRACK})

[psrback]
exten => s,1,Macro(psrecback)    // gets here ok and plays the macro
exten => s,2,Goto(psrecback,*,1)

exten => *,3,StopMonitor
exten => *,4,Playback(ps/bail-1)


This is the section of my dialplan which is causing probs. psrback starts, the macro begins and the /ps/offers/trackid starts to play. Asterisk records the wav file ok, but when somebody hits '*' during the recording, I want the dialplan to go to psrback,*,3  - that way it'll stopp monitoring and play the bail-1 notice.

I get this error:  Invalid extension '*', but no rule 'i' in context 'psrback' - how come? Why doesn't the line "exten => *,3,StopMonitor" handle this?