<div dir="auto">You originate a call and subscribe to events and based on those events you originate another call.</div><div class="gmail_extra"><br><div class="gmail_quote">On 20 May 2017 1:39 am, "Bipin Patel" <<a href="mailto:bipin@xbipin.com">bipin@xbipin.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>
<div style="color:black">
<div style="color:black">
<p style="margin:0 0 1em 0;color:black">Well I have a script that calls
numbers over a fxo gateway and plays a ivr. The fxo gateway has one channel
available at times out of 4, the originate keeps calling them non stop
without even the first call finished, I want it to pause till one call is
over and then move over to the next so the others don't fail due to no
channels available.</p>
</div>
<div style="color:black">
<p style="color:black;font-size:10pt;font-family:Arial,sans-serif;margin:10pt 0">On
May 19, 2017 8:41:30 PM Michael Jerris <<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>> wrote:</p>
<blockquote type="cite" class="gmail_quote" style="margin:0 0 0 0.75ex;border-left:1px solid #808080;padding-left:0.75ex">
Not specifically what you asked, thats not how it works.  What exactly
are you trying to accomplish…<div><br><div><blockquote type="cite"><div>On May 19, 2017, at 12:31 PM, Bipin
Patel <<a href="mailto:bipin@xbipin.com" target="_blank">bipin@xbipin.com</a>> wrote:</div><br class="m_3516677226697783012Apple-interchange-newline"><div><font size="-1" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Arial">hi,<br><br>any other
way this can be done<span class="m_3516677226697783012Apple-converted-space"> </span><br><br><br></font></font><span style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none"></span><div class="m_3516677226697783012moz-signature" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">Regards,<br>Bipin<br><br><br><hr style="width:1065px;height:1px;background-color:rgb(204,204,204);border:0px;background-position:initial initial;background-repeat:initial initial"></div><div class="m_3516677226697783012moz-cite-prefix" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">--------
Original Message --------<br>Subject: Re: [Freeswitch-users]
return to shell only when call from originate is complete?<br>From: Michael Jerris<span class="m_3516677226697783012Apple-converted-space"> </span><a class="m_3516677226697783012moz-txt-link-rfc2396E" href="mailto:mike@jerris.com" style="color:rgb(42,86,133)" target="_blank"><mike@jerris.com></a><br>To: Bipin Patel<span class="m_3516677226697783012Apple-converted-space"> </span><a class="m_3516677226697783012moz-txt-link-rfc2396E" href="mailto:bipin@xbipin.com" style="color:rgb(42,86,133)" target="_blank"><bipin@xbipin.com></a><br>Date: 5/19/2017, 7:48:22 PM<br></div><blockquote type="cite" style="font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">No, thats not what originate does.<div><br><div><blockquote type="cite"><div>On May 19, 2017, at
11:43 AM, Bipin Patel <<a href="mailto:bipin@xbipin.com" style="color:rgb(42,86,133)" target="_blank">bipin@xbipin.com</a>> wrote:</div><br class="m_3516677226697783012Apple-interchange-newline"><div><font size="-1" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Arial">hi,<br><br>does it happen right
after answer?<br>is there any way to lock it so it returns only
after failure or after hangup? yes im using ignore_early_media<br><br><br></font></font><span style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);float:none;display:inline!important"></span><div class="m_3516677226697783012moz-signature" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">Regards,<br>Bipin<br><br><br><hr style="width:1045px;height:1px;background-color:rgb(204,204,204);border:0px;background-position:initial initial;background-repeat:initial initial"></div><div class="m_3516677226697783012moz-cite-prefix" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">--------
Original Message --------<br>Subject: Re: [Freeswitch-users]
return to shell only when call from originate is complete?<br>From: Michael Jerris<span class="m_3516677226697783012Apple-converted-space"> </span><a class="m_3516677226697783012moz-txt-link-rfc2396E" href="mailto:mike@jerris.com" style="color:rgb(42,86,133)" target="_blank"><mike@jerris.com></a><br>To: FreeSWITCH Users Help<span class="m_3516677226697783012Apple-converted-space"> </span><a class="m_3516677226697783012moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org" style="color:rgb(42,86,133)" target="_blank"><freeswitch-users@lists.<wbr>freeswitch.org></a><br>Date: 5/19/2017, 7:34:35 PM<br></div><blockquote type="cite" style="font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">originate
returns when we get call progress, or in the case of ignore_early_media, on
answer or failure.<div><br><div><blockquote type="cite"><div>On May 19, 2017, at 10:36 AM, Bipin
Patel <<a href="mailto:bipin@xbipin.com" style="color:rgb(42,86,133)" target="_blank">bipin@xbipin.com</a>> wrote:</div><br class="m_3516677226697783012Apple-interchange-newline"><div><font size="-1" style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><font face="Arial">hi,<br><br>i was wondering if its
possible to to release handle from an originate command only once the call
is completed, i mean i send a originate command from shell using fs_cli but
only return back to prompt once the call is completed rather than as soon
as a bridge is created or a UUID generated<br><br></font></font></div></blockquote></div><br></div></blockquote></div></blockquote></div><br></div></blockquote><br style="color:rgb(72,72,72);font-family:Verdana,sans-serif;font-size:9.600000381469727px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><br class="m_3516677226697783012Apple-interchange-newline"></div></blockquote></div><br></div></blockquote>
</div>
</div>
</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></div>