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

Luis Daniel Lucio Quiroz luis.daniel.lucio at gmail.com
Fri Jan 16 03:18:10 MSK 2015


Read about queues
On Jan 15, 2015 11:53 AM, "Brian West" <brian at freeswitch.org> wrote:

> Thats not relevant in this case, The autoHangup is when used in say lua...
>
> This case you will probably want this combo:
>
>
> https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket#mod_event_socket-linger
> https://wiki.freeswitch.org/wiki/Variable_park_after_bridge
>
>
>
>
> On Thu, Jan 15, 2015 at 7:27 AM, Andrew <aademattia at comcast.net> wrote:
>
>> 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
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
>
> *Brian West*
> brian at freeswitch.org
>
>
> *Twitter: @FreeSWITCH , @briankwest*
> http://www.freeswitchbook.com
> http://www.freeswitchcookbook.com
>
> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150115/d5a2cf82/attachment-0001.html 


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