Hello Anthony.<br><br>Forking A Call :<br><br>bgapi('originate',"{strategy=108,step=1,origination_caller_id_number=XXX,fail_on_single_reject=true,ignore_early_media=true,originate_timeout=90,parked_call_uuid=%s,position=%s}sofia/external/%s@XXXXXX 4998 XML default" % (self.channel_uuid,position,'XXXXXX'))<br>
<br>Means running this command Against The Outbound Socket and that goes well.<br><br>The Problem with async is that i have a multi-level IVR system not a generally simple ( press 1 for sales , press 2 for support ) type of IVR.<br>
This means lots of monitoring on the events to get it right , and some APPs fail to send events, lack of documentation ,etc.<br><br>Anyway i was able to solve this problem :<br><br>1- Process ESL and transfer the call to a extension&ValetPark and call disconnect() on the ESL connection , now open a new connection and issue uuid_bridge , all goes well connection with ESL is no longer in the middle :D<br>
<br>I have Tried to do Park from inside the ESL even declaring setAsyncExecute('1') does not execute ValetPark in async it will just fail.<br>If i don't use setAsyncExecute the call parks and ESL processing stops , so i just bypassed that using the XML dialplan.<br>
<br>I know this is not the recommended way , but will have to do for now , anyway i will try to review this situation and will see what i can do with the async mode.<br><br>If you want me to do any special testing feel free to drop me an e-mail off list.<br>
<br>Regards<br>A/T<br><br><div class="gmail_quote">2011/5/17 Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You should explain what "forking a call" means. This does not exist in<br>
our terminology.<br>
My advice is to start thinking about what you need to do to make it<br>
work vs how you want it to work.<br>
<br>
You MUST use async mode for what you are trying to do. The reason the<br>
call won't bridge in sync mode is because you are asking the channel<br>
to do 2 things at once and it can only do 1 because sync mode means to<br>
block on every command.<br>
<br>
If you are still stuck:<br>
<br>
Please pastebin a console log on debug level at <a href="http://pastebin.freeswitch.org" target="_blank">http://pastebin.freeswitch.org</a><br>
<br>
<br>
<br>
On Tue, May 17, 2011 at 4:43 AM, Antonio Teixeira<br>
<div><div></div><div><<a href="mailto:eagle.antonio@gmail.com" target="_blank">eagle.antonio@gmail.com</a>> wrote:<br>
> Hello Anthony.<br>
><br>
> Thanks for your input i have added the channel variable and still the same :<br>
><br>
> I bridge the call using uuid_bridge and after this LEG B is disconnected.<br>
> LEG A is still alive with due to a time.sleep python (not freeswitch sleep)<br>
> If i do bridge with a time.sleep() on LEG B the two calls are alive but no<br>
> transit of audio.<br>
><br>
><br>
> I also tried intercept but still no luck :\<br>
><br>
> Regards<br>
> A/T<br>
><br>
><br>
><br>
><br>
> 2011/5/16 Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>><br>
>><br>
>> set the channel variable park_after_bridge=true on all the channels so<br>
>> they go back to park again when the call ends.<br>
>><br>
>><br>
>> On Mon, May 16, 2011 at 9:16 AM, Antonio Teixeira<br>
>> <<a href="mailto:eagle.antonio@gmail.com" target="_blank">eagle.antonio@gmail.com</a>> wrote:<br>
>> > Hello Anton.<br>
>> ><br>
>> > The problem is the following :<br>
>> ><br>
>> > I receive an Inbound Call Leg A.<br>
>> > I say something using TTS and place it on Park , grab the channel uuid.<br>
>> ><br>
>> > Fork another call pass the uuid as argument.<br>
>> ><br>
>> > As soon as Leg B picks up , TTS fires UP asks the user a digit and after<br>
>> > we<br>
>> > have got the digit .<br>
>> ><br>
>> > I send uuid_bridge mycurrentchanel + argument uuid from channel A<br>
>> ><br>
>> > And i got +OK great :D<br>
>> ><br>
>> > The problem , Park is now broken and the call is terminated with last<br>
>> > dialplan extension executed or simply the call is terminated HANGUP.<br>
>> ><br>
>> > If i do some time.sleep(40) the calls don't end but they aren't merge i<br>
>> > can't see no RTP flowing trough.<br>
>> ><br>
>> > Hope you guys can help me out.<br>
>> ><br>
>> > Regards<br>
>> > A/T<br>
>> ><br>
>> ><br>
>> ><br>
>> > 2011/5/16 Anton VG <<a href="mailto:anton.vazir@gmail.com" target="_blank">anton.vazir@gmail.com</a>><br>
>> >><br>
>> >> I do it with originate &park - all works, i bridge them by uuid_bridge<br>
>> >> successfully<br>
>> >><br>
>> >> 2011/5/16 Antonio Teixeira <<a href="mailto:eagle.antonio@gmail.com" target="_blank">eagle.antonio@gmail.com</a>>:<br>
>> >> > Good Morning.<br>
>> >> ><br>
>> >> > Here i continue my fight against ESL :)<br>
>> >> > On Leg A I'm forking a call that will become Leg B after a short IVR.<br>
>> >> ><br>
>> >> > Anyway<br>
>> >> > Leg A is valet_parked with MOH while i Dial Leg B , Leg B Answers ,<br>
>> >> > Presses<br>
>> >> > 1 and is merged by uuid_bridge<br>
>> >> > Then...<br>
>> >> > Both calls are disconnected with Executed Last Dialplan Command .<br>
>> >> ><br>
>> >> > I have tried everything from freezing the IVR with sleep(in python<br>
>> >> > and<br>
>> >> > using<br>
>> >> > the freeswitch sleep).<br>
>> >> ><br>
>> >> > But i'm unable to merge both calls.<br>
>> >> ><br>
>> >> > As anyone tried something similar.<br>
>> >> ><br>
>> >> > Regards<br>
>> >> > A/T<br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > FreeSWITCH-users mailing list<br>
>> >> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> >> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> >> ><br>
>> >> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> >> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> >> ><br>
>> >> ><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> FreeSWITCH-users mailing list<br>
>> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> >><br>
>> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Anthony Minessale II<br>
>><br>
>> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
>> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
>> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
>><br>
>> AIM: anthm<br>
>> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
>> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
>> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
>><br>
>> FreeSWITCH Developer Conference<br>
>> <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
>> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
>> pstn:+19193869900<br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>