<div dir="ltr">Hi,<div><br></div><div>I have a use case using ESL, where I need to originate a call from from Freeswitch to a mobile number and play a .wav after the recipient has answered the call.</div><div><br></div><div>I am using following way to achieve this :</div><div><br></div><div>Step 1 . Issue esl command = &quot;&quot;originate &quot; + gateway + &quot;+91&quot; + phone_number + &quot; &amp;park&quot;&quot;</div><div>Step 2. command = &quot;&quot;uuid_transfer &quot; + uuid + &quot; 4441&quot;&quot;</div><div><br></div><div>where dialplan 4441 has :</div><div><br></div><div><br></div><div><div>&lt;extension name=&quot;ivr_demo&quot;&gt;</div><div>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^4441$&quot;&gt;</div><div><span class="" style="white-space:pre">        </span> <span style="white-space:pre">       </span>&lt;action application=&quot;playback&quot; data=&quot;/usr/local/freeswitch/recordings/file.wav&quot;/&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div><div><span class="" style="white-space:pre">                </span></div><div><span class="" style="white-space:pre">        </span>&lt;/condition&gt;</div><div>&lt;/extension&gt;</div></div><div><br></div><div><br></div><div>This works fine but sometimes, after answering of the call, listener does not hear anything, file does not play.</div><div><br></div><div>If I do not use the park command and directly transfer to dialplan then the  file starts playing immediately even if the user has not answered. How can  I add a condition of answering in dialplan (&lt;action application=&quot;answer&quot;/&gt; does not work).</div><div><br></div><div>Is any other alternative to achieve this correctly.</div><div><br></div><div>Regards,</div><div>Deepika</div><div><br></div><div><br></div></div>