<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Agreed. I tend to be using Lua wherever
I can these days.<br>
If I were doing it again from scratch, that's what I'd use.<br>
Dialplan still the king for managing multithreads (and it seems to
do this by magic as far as I can tell) but Lua is so much more
readable for an old dinosaur like me.<br>
<br>
On 31/07/2015 18:32, Mario wrote:<br>
</div>
<blockquote
cite="mid:BB8412C5-6EE5-452B-91CA-4D58AD4BEDB2@mgtech.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
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 <<a
moz-do-not-send="true"
href="mailto:alex@digitalmail.com" class="">alex@digitalmail.com</a>>
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 <<a
moz-do-not-send="true"
href="mailto:ssinyagin@gmail.com" class="">ssinyagin@gmail.com</a>>
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" <<a
moz-do-not-send="true"
href="mailto:alex@digitalmail.com"
class="">alex@digitalmail.com</a>>
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="">
<macro name="xplayN"><br
class="">
<input
pattern="^([^,]*),([^,]*),(.*)$"><br
class="">
<match><br class="">
<action
function="play-file" data="$1/$2.wav"/><br
class="">
<action
function="play-file"
data="phrase:xplayN:$1,$3"/><br
class="">
</match><br class="">
</input><br class="">
<input
pattern="^([^,]*),([^,]*)$"><br
class="">
<match><br class="">
<action
function="play-file" data="$1/$2.wav"/><br
class="">
</match><br class="">
</input><br class="">
</macro><br class="">
<br class="">
Example of use:<br class="">
<br class="">
<action application="playback"<br
class="">
data="phrase:xplayN:/home/pabx/004-3774/x,001,0211,0221,0231"/><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 moz-do-not-send="true"
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 moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br
class="">
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://confluence.freeswitch.org/">http://confluence.freeswitch.org</a><br
class="">
<a moz-do-not-send="true"
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 moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br
class="">
<a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 class="" wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org/">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://confluence.freeswitch.org/">http://confluence.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com/">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" 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 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>