clever!

On Wed, Jul 29, 2015 at 3:06 PM, Alex Lake <alex@digitalmail.com> wrote:
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"/>



--
Sincerely,

Giovanni Maruzzelli
Cell : +39-347-2665618