[Freeswitch-users] how can i keep A-LEG do not hangup

Andrew aademattia at comcast.net
Thu Jan 15 16:27:00 MSK 2015


This may be able to help you but I set session.SetAutoHangup(false);

This will stop the dial plan from ending.

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of ax lyb
Sent: Thursday, January 15, 2015 2:52 AM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] how can i keep A-LEG do not hangup

 

All:

     recently i write a small program based freeswitch, in this program i
only do things like callcenter mod,

here is what i do:

 

   1. originate a call (" originate sofia/gateway/gw01/xxxx my-out-call XML
default"), in the default.xml,

      i already config it as follow:

 

           <extension name="my-call-out">

 65         <condition field="destination_number"
expression="^my-call-out$">

 66             <action application="socket" data="127.0.0.1:9600 async
full"/>

 67             <!--    <action application="log" data="This is
ax-call-out-park"/>

 68                         <action application="answer" />

 69             <action application="playback"
data="/usr/local/freeswitch/sounds/1.wav"/>

 70             

 71             <action application="park" data=""/> -->

 72         </condition>

 73     </extension>

      

    2.  when call-out-destination customer pick up the call, i control the
flow to playback a wav file, then ,

         bridge the call to a free agent while the wav file play over in
CHANNEL_EXECUTE_COMPLETE,

         these steps run normally ok.

 

   3. the question is : if i have two agent in one moment, and this time i
have 3 or > 3  out-call to bridge, 

       i'll leave the other call do nothing,for i can not get more free
agents to service; some special scene

      is i have two agents (A1,A2) service 3 call (C1,C2,C3), A1 service C1,
A2 service C2,then C3 is only 

      A-LEG when play over a wav file,about 100 seconds later, C3 is
hangup(it's not user hangup manually),

     how can i do make the C3 call not hangup until i get a free agent to
service it?

 

 

 any suggest is appreciate,

 

 

 

    ax.lyb.lei at gmail.com <mailto:ax.lyb.lei at gmail.com> 

     

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150115/114cadec/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list