<div dir="ltr">In the case of originate you could do &#39;api uuid_kill my_uuid&#39; to immediately hangup the call&#39;<div class="gmail_extra"><br><div class="gmail_quote">On 5 December 2016 at 22:23, D D <span dir="ltr">&lt;<a href="mailto:tru083@yahoo.com" target="_blank">tru083@yahoo.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><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789">Hi,</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789"><br></div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789">How can I cancel a bgapi job?</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789"><br></div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789">Let&#39;s suppose I do bgapi command to originate a call and then am immediately told it needs to</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">be cancelled...but it has not started yet.  Even if I supply my own uuid on the originate</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">and a job-uud on the bgapi command, I don&#39;t see any way I can cancel the &quot;unstarted&quot; call.</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr"><br></div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">Note that I can construct a test case for this situation by doing a fs_cli command</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">    bgapi originate {originate_delay_start=30000,o<wbr>rigination_uuid=my_uuid}sofia/<wbr>gateway/...</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">This command will start a request that cannot be cancelled until the call actually starts (thirty</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">seconds later).</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr"><br></div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">Any ideas?</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr"><br></div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">Thanks,</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr">David</div><div id="m_803412665385473146m_4406519767216542973yui_3_16_0_ym19_1_1480975948038_4789" dir="ltr"><br></div></div></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>