<p dir="ltr">Why not just using Lua instead?<br>
</p>
<div class="gmail_quote">On Jul 29, 2015 3:08 PM, &quot;Alex Lake&quot; &lt;<a href="mailto:alex@digitalmail.com">alex@digitalmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK - Got this working. Just in case anyone is interested:<br>
<br>
     &lt;macro name=&quot;xplayN&quot;&gt;<br>
         &lt;input pattern=&quot;^([^,]*),([^,]*),(.*)$&quot;&gt;<br>
             &lt;match&gt;<br>
                 &lt;action function=&quot;play-file&quot; data=&quot;$1/$2.wav&quot;/&gt;<br>
                 &lt;action function=&quot;play-file&quot; data=&quot;phrase:xplayN:$1,$3&quot;/&gt;<br>
             &lt;/match&gt;<br>
         &lt;/input&gt;<br>
         &lt;input pattern=&quot;^([^,]*),([^,]*)$&quot;&gt;<br>
             &lt;match&gt;<br>
                 &lt;action function=&quot;play-file&quot; data=&quot;$1/$2.wav&quot;/&gt;<br>
             &lt;/match&gt;<br>
         &lt;/input&gt;<br>
     &lt;/macro&gt;<br>
<br>
Example of use:<br>
<br>
       &lt;action application=&quot;playback&quot;<br>
data=&quot;phrase:xplayN:/home/pabx/004-3774/x,001,0211,0221,0231&quot;/&gt;<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div>