[Freeswitch-users] Complex phrase macro
Alex Lake
alex at digitalmail.com
Wed Jul 29 15:42:08 MSD 2015
I'd like a macro that can play multiple sound files from a specific
directory.
eg. here's one that should (though I've not tested it!) play 3 sound files:
phrase "xplay3:/home/pabx/004-3774/x,001,002,003"
<macro name="xplay3">
<input pattern="(.*),(.*),(.*),(.*)">
<match>
<action function="play-file" data="$1/$2.wav"/>
<action function="play-file" data="$1/$3.wav"/>
<action function="play-file" data="$1/$4.wav"/>
</match>
</input>
</macro>
What I'd like to do is one that can play an arbitrary number of files.
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list