<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">It's because the whole dialplan is
      templated and I wanted to have one piece of data that could neatly
      go in.<br>
      Lua would have been a possibility, I guess, but I quite like the
      phrase macro system.<br>
      <br>
      On 29/07/2015 18:16, Michael Jerris wrote:<br>
    </div>
    <blockquote
      cite="mid:C0109557-B6AB-45C9-841D-035F865ACF05@jerris.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Or even dialplan. When would this actually add any value over
      maybe just calling playback multiple times in a row?
      <div class=""><br class="">
      </div>
      <div class="">
        <div>
          <blockquote type="cite" class="">
            <div class="">On Jul 29, 2015, at 1:02 PM, Stanislav
              Sinyagin &lt;<a moz-do-not-send="true"
                href="mailto:ssinyagin@gmail.com" class="">ssinyagin@gmail.com</a>&gt;
              wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <p dir="ltr" class="">Why not just using Lua instead?<br
                  class="">
              </p>
              <div class="gmail_quote">On Jul 29, 2015 3:08 PM, "Alex
                Lake" &lt;<a moz-do-not-send="true"
                  href="mailto:alex@digitalmail.com" class="">alex@digitalmail.com</a>&gt;
                wrote:<br type="attribution" class="">
                <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
                    class="">
                  <br class="">
                       &lt;macro name="xplayN"&gt;<br class="">
                           &lt;input
                  pattern="^([^,]*),([^,]*),(.*)$"&gt;<br class="">
                               &lt;match&gt;<br class="">
                                   &lt;action function="play-file"
                  data="$1/$2.wav"/&gt;<br class="">
                                   &lt;action function="play-file"
                  data="phrase:xplayN:$1,$3"/&gt;<br class="">
                               &lt;/match&gt;<br class="">
                           &lt;/input&gt;<br class="">
                           &lt;input pattern="^([^,]*),([^,]*)$"&gt;<br
                    class="">
                               &lt;match&gt;<br class="">
                                   &lt;action function="play-file"
                  data="$1/$2.wav"/&gt;<br class="">
                               &lt;/match&gt;<br class="">
                           &lt;/input&gt;<br class="">
                       &lt;/macro&gt;<br class="">
                  <br class="">
                  Example of use:<br class="">
                  <br class="">
                         &lt;action application="playback"<br class="">
data="phrase:xplayN:/home/pabx/004-3774/x,001,0211,0221,0231"/&gt;<br
                    class="">
                  <br class="">
                  <br class="">
                  <br class="">
_________________________________________________________________________<br
                    class="">
                  Professional FreeSWITCH Consulting Services:<br
                    class="">
                  <a moz-do-not-send="true"
                    href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br
                    class="">
                  <a moz-do-not-send="true"
                    href="http://www.freeswitchsolutions.com/"
                    rel="noreferrer" target="_blank" class="">http://www.freeswitchsolutions.com</a><br
                    class="">
                  <br class="">
                  Official FreeSWITCH Sites<br class="">
                  <a moz-do-not-send="true"
                    href="http://www.freeswitch.org/" rel="noreferrer"
                    target="_blank" class="">http://www.freeswitch.org</a><br
                    class="">
                  <a moz-do-not-send="true"
                    href="http://confluence.freeswitch.org/"
                    rel="noreferrer" target="_blank" class="">http://confluence.freeswitch.org</a><br
                    class="">
                  <a moz-do-not-send="true"
                    href="http://www.cluecon.com/" rel="noreferrer"
                    target="_blank" class="">http://www.cluecon.com</a><br
                    class="">
                  <br class="">
                  FreeSWITCH-users mailing list<br class="">
                  <a moz-do-not-send="true"
                    href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                    class="">FreeSWITCH-users@lists.freeswitch.org</a><br
                    class="">
                  <a moz-do-not-send="true"
                    href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                    rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br
                    class="">
                  UNSUBSCRIBE:<a moz-do-not-send="true"
                    href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                    rel="noreferrer" target="_blank" class="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br
                    class="">
                  <a moz-do-not-send="true"
                    href="http://www.freeswitch.org/" rel="noreferrer"
                    target="_blank" class="">http://www.freeswitch.org</a><br
                    class="">
                </blockquote>
              </div>
_________________________________________________________________________<br
                class="">
              Professional FreeSWITCH Consulting Services: <br class="">
              <a moz-do-not-send="true"
                href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br
                class="">
              <a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br class="">
              <br class="">
              Official FreeSWITCH Sites<br class="">
              <a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br class="">
              <a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a><br class="">
              <a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a><br class="">
              <br class="">
              FreeSWITCH-users mailing list<br class="">
              <a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br class="">
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br
                class="">
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br
                class="">
              <a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></div>
          </blockquote>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>