<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I like LUA for this. I have a LUA that builds long sentences that even include music in different places. The LUA builds the sound string from multiple files dynamically and even adjusts the length of various sections (like music) so the message is a fairly consistent length even though the parts are different. Yes, LUA is more work up front but then you can do much more and use the logic for multiple sound purposes.<div class="">Mario<br class=""><div><blockquote type="cite" class=""><div class="">On Jul 31, 2015, at 3:03 AM, Alex Lake &lt;<a href="mailto:alex@digitalmail.com" class="">alex@digitalmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <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 class="">
      Lua would have been a possibility, I guess, but I quite like the
      phrase macro system.<br class="">
      <br class="">
      On 29/07/2015 18:16, Michael Jerris wrote:<br class="">
    </div>
    <blockquote cite="mid:C0109557-B6AB-45C9-841D-035F865ACF05@jerris.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      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 class="">
          <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="">
                  &nbsp; &nbsp; &nbsp;&lt;macro name="xplayN"&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input
                  pattern="^([^,]*),([^,]*),(.*)$"&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;match&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action function="play-file"
                  data="$1/$2.wav"/&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action function="play-file"
                  data="phrase:xplayN:$1,$3"/&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/match&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/input&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;input pattern="^([^,]*),([^,]*)$"&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;match&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;action function="play-file"
                  data="$1/$2.wav"/&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/match&gt;<br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/input&gt;<br class="">
                  &nbsp; &nbsp; &nbsp;&lt;/macro&gt;<br class="">
                  <br class="">
                  Example of use:<br class="">
                  <br class="">
                  &nbsp; &nbsp; &nbsp; &nbsp;&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 class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_________________________________________________________________________
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 class="">
  </div>

_________________________________________________________________________<br class="">Professional FreeSWITCH Consulting Services: <br class=""><a href="mailto:consulting@freeswitch.org" class="">consulting@freeswitch.org</a><br class="">http://www.freeswitchsolutions.com<br class=""><br class="">Official FreeSWITCH Sites<br class="">http://www.freeswitch.org<br class="">http://confluence.freeswitch.org<br class="">http://www.cluecon.com<br class=""><br class="">FreeSWITCH-users mailing list<br class="">FreeSWITCH-users@lists.freeswitch.org<br class="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br class="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br class="">http://www.freeswitch.org</div></blockquote></div><br class=""></div></body></html>