<div dir="ltr">This will only play file and when file is played then it will send call to gateway. I need to simultaneously play file as well as dial to gateway and end sound file play in case 183 or 180 from gateway.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 11, 2015 at 6:35 PM,  <span dir="ltr">&lt;<a href="mailto:acheraime@gmail.com" target="_blank">acheraime@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Try pre_answer application as follow:<br>
<br>
&lt;action application=&quot;pre_answer&quot;/&gt;<br>
&lt;action application=&quot;playback&quot; data=&quot;your_audio_file&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;your_dial_string&quot;/&gt;<br>
<br>
Sent from my iPhone<br>
<div><div class="h5"><br>
&gt; On Sep 11, 2015, at 7:59 AM, John Nash &lt;<a href="mailto:john.nash778@gmail.com">john.nash778@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I need to test a case to generate following user experience ..<br>
&gt;<br>
&gt; User dials a number and when call hits freeswitch, freeswitch plays a sound file but the same time dials out to a gateway, that means user hears sound file but at the same time call is being tried by gateway and when gateway sends ring 183 or 180, Sound file stops playing and user hears ringback or any media sent by gateway .<br>
&gt;<br>
&gt; I plan to do this by using bridge application to two destinations, One is to play sound file and other to send call to gateway.<br>
&gt;<br>
&gt; But how can I hangup the call to extension which is playing Sound file, upon receiving the 180 or 183 from gateway (Second fork )..where should I look for this?<br>
</div></div>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>