[asterisk-users] Pass Sound files as Argument to Macro Asterisk 1.8

2014-03-08 Thread Daniel van den Berg
Hi All, I was wondering if it is possible to pass sound files to a macro as an argument in Asterisk 1.8? Thanks! Regards, Daniel van den Berg SureTel South Africa 087-944-7873 -- _ -- Bandwidth and Colocation Provided by http

Re: [asterisk-users] Pass Sound files as Argument to Macro Asterisk 1.8

2014-03-11 Thread John Kiniston
It should be. I'd write something like the below: [macro-test] exten => s,1,NoOp exten => s,n,GotoIf($[${STAT(e,/var/lib/asterisk/sounds/${ARG1}.ulaw)} = 0]?NOPROMPT:PLAYBACK) exten => s,n(NOPROMPT),Background(nothing-recorded&for&pm-prompt-number) exten => s,n,SayPhonetic(${ARG1}) exten => s,n,G