[Freeswitch-users] correct method to play an audio file in a call originated from Freeswitch to a mobile number
Deepika Yadav
deepikay at iiitd.ac.in
Fri Aug 26 20:03:05 MSD 2016
Thanks, I will try this method also.
This worked for me :
esl command = "originate " + gateway + "+91" + phone_number + " 7778"
<extension name="exe_on_ans">
<condition field="destination_number" expression="^7778$">
<action application="set" data="execute_on_answer=transfer 4441 XML
default"/>
<action application="log" data="INFO Waiting 30 seconds for $1 to
answer..."/>
<action application="sleep" data="30000"/>
</condition>
</extension>
<extension name="ivr_demo">
<condition field="destination_number" expression="^4441$">
<action application="playback" data="/usr/local/freeswitch/
recordings/file.wav"/>
<action application="sleep" data="1000"/>
</condition>
</extension>
On Fri, Aug 26, 2016 at 8:16 PM, Aqs Younas <aqsyounas at gmail.com> wrote:
> Try this.
>
> esl command = ""originate " + gateway + "+91" + phone_number + " " + 4441
>
> <extension name="ivr_demo">
> <condition field="destination_number" expression="^4441$">
> <action application="wait_for_answer"/>
> <action application="playback"
> data="/usr/local/freeswitch/recordings/file.wav"/>
> <action application="sleep" data="1000"/>
> </condition>
> </extension>
>
>
>
> _________________________________________________________________________
> 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/20160826/a03f6578/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list