<div dir="ltr"><div>Thanks, I will try this method also.</div><div><br></div><div>This worked for me :</div><div><br></div><div>esl command =  &quot;originate &quot; + gateway + &quot;+91&quot; + <span style="font-size:12.8px">phone_number</span><span style="font-size:12.8px"> </span> + &quot; 7778&quot;</div><div><br></div><div><br></div><div><div>&lt;extension name=&quot;exe_on_ans&quot;&gt;</div><div><span style="white-space:pre">    </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^7778$&quot;&gt;</div><div>    &lt;action application=&quot;set&quot; data=&quot;execute_on_answer=transfer 4441 XML default&quot;/&gt;</div><div>    &lt;action application=&quot;log&quot; data=&quot;INFO Waiting 30 seconds for $1 to answer...&quot;/&gt;</div><div>    &lt;action application=&quot;sleep&quot; data=&quot;30000&quot;/&gt;</div><div>     &lt;/condition&gt;</div><div>&lt;/extension&gt;</div></div><div><br></div><div><br></div><div><div style="font-size:12.8px">&lt;extension name=&quot;ivr_demo&quot;&gt;</div><div style="font-size:12.8px">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^4441$&quot;&gt;</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">       </span>&lt;action application=&quot;playback&quot; data=&quot;/usr/local/freeswitch/<wbr>recordings/file.wav&quot;/&gt;</div><div style="font-size:12.8px"><span style="white-space:pre-wrap">                </span>&lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</div><div style="font-size:12.8px"><span style="font-size:12.8px;white-space:pre-wrap">        </span><span style="font-size:12.8px">&lt;/condition&gt;</span><br></div><div style="font-size:12.8px">&lt;/extension&gt;</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 26, 2016 at 8:16 PM, Aqs Younas <span dir="ltr">&lt;<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@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"><div dir="ltr">Try this. <br><br>esl command = &quot;&quot;originate &quot; + gateway + &quot;+91&quot; + phone_number + &quot;  &quot; + 4441<br><div><span class=""><div><br><span style="font-family:arial,helvetica,sans-serif">&lt;extension name=&quot;ivr_demo&quot;&gt;</span></div><div><span style="font-family:arial,helvetica,sans-serif">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^4441$&quot;&gt;</span></div></span><div><span style="font-family:arial,helvetica,sans-serif"><span style="white-space:pre-wrap">        </span> <span style="white-space:pre-wrap">        </span></span><span style="font-family:arial,helvetica,sans-serif">&lt;action application=&quot;wait_for_answer&quot;/<wbr>&gt;</span><span class=""><br><span style="font-family:arial,helvetica,sans-serif"></span><span style="font-family:arial,helvetica,sans-serif"></span><span style="font-family:arial,helvetica,sans-serif">                 &lt;action application=&quot;playback&quot; data=&quot;/usr/local/freeswitch/</span><span style="font-family:arial,helvetica,sans-serif">re<wbr>cordings/file.wav&quot;/&gt;</span></span></div><span class=""><div><span style="font-family:arial,helvetica,sans-serif"><span style="white-space:pre-wrap">                </span>&lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;</span></div><div><span style="font-family:arial,helvetica,sans-serif"><span style="white-space:pre-wrap">        </span>&lt;/condition&gt;</span></div><div><span style="font-family:arial,helvetica,sans-serif">&lt;/extension&gt;</span></div></span></div><div><br></div><br></div>
<br>______________________________<wbr>______________________________<wbr>_____________<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.<wbr>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.<wbr>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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>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>