[Freeswitch-users] Complex phrase macro

Michael Jerris mike at jerris.com
Wed Jul 29 21:16:17 MSD 2015


Or even dialplan. When would this actually add any value over maybe just calling playback multiple times in a row?

> On Jul 29, 2015, at 1:02 PM, Stanislav Sinyagin <ssinyagin at gmail.com> wrote:
> 
> Why not just using Lua instead?
> On Jul 29, 2015 3:08 PM, "Alex Lake" <alex at digitalmail.com <mailto:alex at 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"/>
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: 
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150729/43ec1494/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list