<div dir="ltr">Thats not relevant in this case, The autoHangup is when used in say lua...<div><br></div><div>This case you will probably want this combo:</div><div><br></div><div><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket#mod_event_socket-linger">https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket#mod_event_socket-linger</a><br></div><div><a href="https://wiki.freeswitch.org/wiki/Variable_park_after_bridge">https://wiki.freeswitch.org/wiki/Variable_park_after_bridge</a><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 7:27 AM, Andrew <span dir="ltr"><<a href="mailto:aademattia@comcast.net" target="_blank">aademattia@comcast.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">This may be able to help you but I set session</span><span style="font-size:9.5pt;font-family:Consolas;background:white">.SetAutoHangup(false);</span><span style="font-size:9.5pt;font-family:Consolas"><u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:9.5pt;font-family:Consolas">This will stop the dial plan from ending.</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><u></u><u></u></span></p><p class="MsoNormal"><a name="14aedc8cd992c775__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></a></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>ax lyb<br><b>Sent:</b> Thursday, January 15, 2015 2:52 AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> [Freeswitch-users] how can i keep A-LEG do not hangup<u></u><u></u></span></p></div></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">All:<u></u><u></u></p><div><p class="MsoNormal"> recently i write a small program based freeswitch, in this program i only do things like callcenter mod,<u></u><u></u></p></div><div><p class="MsoNormal">here is what i do:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> 1. originate a call (“ originate sofia/gateway/gw01/xxxx my-out-call XML default”), in the default.xml,<u></u><u></u></p></div><div><p class="MsoNormal"> i already config it as follow:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> <span style="font-family:"Andale Mono",serif;color:#fff6f4;background:black"> </span><span style="font-family:"Andale Mono",serif;color:#34bbc7;background:black"><extension </span><span style="font-family:"Andale Mono",serif;color:#34bd26;background:black">name</span><span style="font-family:"Andale Mono",serif;color:#fff6f4;background:black">=</span><span style="font-family:"Andale Mono",serif;color:#c33720;background:black">“my-call-out"</span><span style="font-family:"Andale Mono",serif;color:#34bbc7;background:black">></span><u></u><u></u></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 65 </span><span style="font-family:"Andale Mono",serif;color:#fff6f4"> </span><span style="font-family:"Andale Mono",serif;color:#34bbc7"><condition </span><span style="font-family:"Andale Mono",serif;color:#34bd26">field</span><span style="font-family:"Andale Mono",serif;color:#fff6f4">=</span><span style="font-family:"Andale Mono",serif;color:#c33720">"destination_number"</span><span style="font-family:"Andale Mono",serif;color:#34bbc7"> </span><span style="font-family:"Andale Mono",serif;color:#34bd26">expression</span><span style="font-family:"Andale Mono",serif;color:#fff6f4">=</span><span style="font-family:"Andale Mono",serif;color:#c33720">"^my-call-out$"</span><span style="font-family:"Andale Mono",serif;color:#34bbc7">></span><span style="font-family:"Andale Mono",serif;color:#c33720"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 66 </span><span style="font-family:"Andale Mono",serif;color:#fff6f4"> </span><span style="font-family:"Andale Mono",serif;color:#34bbc7"><action </span><span style="font-family:"Andale Mono",serif;color:#34bd26">application</span><span style="font-family:"Andale Mono",serif;color:#fff6f4">=</span><span style="font-family:"Andale Mono",serif;color:#c33720">"socket"</span><span style="font-family:"Andale Mono",serif;color:#34bbc7"> </span><span style="font-family:"Andale Mono",serif;color:#34bd26">data</span><span style="font-family:"Andale Mono",serif;color:#fff6f4">=</span><span style="font-family:"Andale Mono",serif;color:#c33720">"<a href="http://127.0.0.1:9600" target="_blank">127.0.0.1:9600</a> async full"</span><span style="font-family:"Andale Mono",serif;color:#34bbc7">/></span><span style="font-family:"Andale Mono",serif;color:#c33720"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 67 </span><span style="font-family:"Andale Mono",serif;color:#fff6f4"> </span><span style="font-family:"Andale Mono",serif;color:#5330e1"><!-- <action application="log" data="This is ax-call-out-park"/><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 68 </span><span style="font-family:"Andale Mono",serif;color:#5330e1"> <action application="answer" /><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 69 </span><span style="font-family:"Andale Mono",serif;color:#5330e1"> <action application="playback" data="/usr/local/freeswitch/sounds/1.wav"/><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 70 </span><span style="font-family:"Andale Mono",serif;color:#5330e1"> <u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 71 </span><span style="font-family:"Andale Mono",serif;color:#5330e1"> <action application="park" data=""/> --><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 72 </span><span style="font-family:"Andale Mono",serif;color:#fff6f4"> </span><span style="font-family:"Andale Mono",serif;color:#34bbc7"></condition><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:"Andale Mono",serif;color:#ce7924"> 73 </span><span style="font-family:"Andale Mono",serif;color:#fff6f4"> </span><span style="font-family:"Andale Mono",serif;color:#34bbc7"></extension><u></u><u></u></span></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div><div><p class="MsoNormal"> 2. when call-out-destination customer pick up the call, i control the flow to playback a wav file, then ,<u></u><u></u></p></div><div><p class="MsoNormal"> bridge the call to a free agent while the wav file play over in CHANNEL_EXECUTE_COMPLETE,<u></u><u></u></p></div><div><p class="MsoNormal"> these steps run normally ok.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> 3. the question is : if i have two agent in one moment, and this time i have 3 or > 3 out-call to bridge, <u></u><u></u></p></div><div><p class="MsoNormal"> i’ll leave the other call do nothing,for i can not get more free agents to service; some special scene<u></u><u></u></p></div><div><p class="MsoNormal"> is i have two agents (A1,A2) service 3 call (C1,C2,C3), A1 service C1, A2 service C2,then C3 is only <u></u><u></u></p></div><div><p class="MsoNormal"> A-LEG when play over a wav file,about 100 seconds later, C3 is hangup(it’s not user hangup manually),<u></u><u></u></p></div><div><p class="MsoNormal"> how can i do make the C3 call not hangup until i get a free agent to service it?<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> any suggest is appreciate,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal"> <a href="mailto:ax.lyb.lei@gmail.com" target="_blank">ax.lyb.lei@gmail.com</a><u></u><u></u></p></div><div><p class="MsoNormal"> <u></u><u></u></p></div></div></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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.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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">
<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div>
</div>