[Freeswitch-users] Playback within condition
Caio Assis
caioebassis at hotmail.com
Thu Sep 22 21:06:55 MSD 2016
Hi.
Here's what I'm trying to do. I want to play a sound if a certain condition is true.
<extension name="test">
<condition field="destination_number" expression="^1212$">
<condition field="${cond(${destination_number} == 1212 ? 1212 : 0000)}" expression="^1212$">
<!-- this second condition is just to ilustrate the nested condition-->
<action application="log" data="INFO LOG"/>
<action application="playback" data="sound1.gsm"/>
</condition>
<action application="playback" data="sound2.gsm"/>
<action application="hangup"/>
</condition>
</extension>
The sound 1 doesn't play, but I knew the condition was true because I can see the INFO LOG on the console. The sound 2, outside the condition, was played normally. Both PLAYBACK and READ applications don't work on nested conditions. Can anyone help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160922/ca9efae1/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list