[Freeswitch-users] Complex phrase macro

Alex Lake alex at digitalmail.com
Wed Jul 29 17:06:34 MSD 2015


OK - Got this working. Just in case anyone is interested:

     <macro name="xplayN">
         <input pattern="^([^,]*),([^,]*),(.*)$">
             <match>
                 <action function="play-file" data="$1/$2.wav"/>
                 <action function="play-file" data="phrase:xplayN:$1,$3"/>
             </match>
         </input>
         <input pattern="^([^,]*),([^,]*)$">
             <match>
                 <action function="play-file" data="$1/$2.wav"/>
             </match>
         </input>
     </macro>

Example of use:

       <action application="playback" 
data="phrase:xplayN:/home/pabx/004-3774/x,001,0211,0221,0231"/>





Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list