<p dir="ltr">Read about queues</p>
<div class="gmail_quote">On Jan 15, 2015 11:53 AM, &quot;Brian West&quot; &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">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" target="_blank">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">&lt;<a href="mailto:aademattia@comcast.net" target="_blank">aademattia@comcast.net</a>&gt;</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:&quot;Calibri&quot;,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:&quot;Calibri&quot;,sans-serif"><u></u><u></u></span></p><p class="MsoNormal"><a name="14aee8330e183682_14aedc8cd992c775__MailEndCompose"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u>&nbsp;<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:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,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><p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal">All:<u></u><u></u></p><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp;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>&nbsp;<u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp;1. originate a call (&ldquo; originate sofia/gateway/gw01/xxxx my-out-call XML default&rdquo;), in the default.xml,<u></u><u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp; i already config it as follow:<u></u><u></u></p></div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp;<span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4;background:black">&nbsp; &nbsp; </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7;background:black">&lt;extension </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bd26;background:black">name</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4;background:black">=</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720;background:black">&ldquo;my-call-out&quot;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7;background:black">&gt;</span><u></u><u></u></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;65 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7">&lt;condition </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bd26">field</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">=</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720">&quot;destination_number&quot;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7"> </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bd26">expression</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">=</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720">&quot;^my-call-out$&quot;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7">&gt;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;66 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7">&lt;action </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bd26">application</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">=</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720">&quot;socket&quot;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7"> </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bd26">data</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">=</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720">&quot;<a href="http://127.0.0.1:9600" target="_blank">127.0.0.1:9600</a> async full&quot;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7">/&gt;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#c33720"><u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;67 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#5330e1">&lt;!--&nbsp; &nbsp; &lt;action application=&quot;log&quot; data=&quot;This is ax-call-out-park&quot;/&gt;<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;68 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#5330e1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;answer&quot; /&gt;<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;69 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#5330e1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;playback&quot; data=&quot;/usr/local/freeswitch/sounds/1.wav&quot;/&gt;<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;70&nbsp;</span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#5330e1"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;71 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#5330e1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application=&quot;park&quot; data=&quot;&quot;/&gt; --&gt;<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;72 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7">&lt;/condition&gt;<u></u><u></u></span></p></div><div><p class="MsoNormal" style="background:black"><span style="font-family:&quot;Andale Mono&quot;,serif;color:#ce7924">&nbsp;73 </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#fff6f4">&nbsp; &nbsp; </span><span style="font-family:&quot;Andale Mono&quot;,serif;color:#34bbc7">&lt;/extension&gt;<u></u><u></u></span></p></div><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp;&nbsp;<u></u><u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; 2. &nbsp;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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;these steps run normally ok.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp;3. the question is : if i have two agent in one moment, and this time i have 3 or &gt; 3 &nbsp;out-call to bridge,&nbsp;<u></u><u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp;i&rsquo;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">&nbsp; &nbsp; &nbsp; is i have two agents (A1,A2) service 3 call (C1,C2,C3), A1 service C1, A2 service C2,then C3 is only&nbsp;<u></u><u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp; A-LEG when play over a wav file,about 100 seconds later, C3 is hangup(it&rsquo;s not user hangup manually),<u></u><u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; &nbsp;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>&nbsp;<u></u></p></div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div><div><p class="MsoNormal">&nbsp;any suggest is appreciate,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div><div><p class="MsoNormal"><u></u>&nbsp;<u></u></p></div><div><p class="MsoNormal">&nbsp; &nbsp; <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">&nbsp; &nbsp; &nbsp;<u></u><u></u></p></div></div></div></div></div><br>_________________________________________________________________________<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" 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" 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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><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><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 |&nbsp;<b>ISN:</b>410*543 |&nbsp;<b>Skype:</b>briankwest</font></p></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>