[Freeswitch-users] confirmation for group_confirm

Grant Bagdasarian GB at cm.nl
Wed Jul 16 11:55:52 MSD 2014


The copy paste from VS2012 went completely wrong :|.

Anyways, the failover works when using leg_timeout=10, even 20, but as soon as I set it to 30+, I receive a ORIGINATOR_CANCEL and the incoming leg is disconnected too.
When the value is <20 I receive ALLOTED_TIMEOUT.

What is ALLOTED_TIMEOUT and why does the originate get cancelled when the timeout is set to >30?

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Grant Bagdasarian
Sent: Wednesday, July 16, 2014 9:20 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] confirmation for group_confirm

I got it to work now. I used the enterprise originate with some additional leg options:
<ignore_early_media=true,monitor_early_media_fail=""user_busy:2:480+620!destination_out_of_order:2:1776.7,originate_continue_on_timeout="true">[leg_timeout=10]sofia/outbound/0031612345678 at 10.0.0.1:5060:_:[leg_timeout=10]sofia/outbound/0031612345679 at 10.0.0.1:5060<mailto:sofia/outbound/0031612345678 at 10.0.0.1:5060:_:%5bleg_timeout=10%5dsofia/outbound/0031612345679 at 10.0.0.1:5060>" />

From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Grant Bagdasarian
Sent: Wednesday, July 16, 2014 8:54 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] confirmation for group_confirm

Hello,

Yes, that’s correct.

I did set two bridge strings, like below:

<action application="set" data="continue_on_fail=true" />
<action application="set" data="hangup_after_bridge=true" />
<action application="set" data="bridge_parameters={ignore_early_media=true}sofia/outbound/0031612345678 at 10.0.0.1:5060,sofia/outbound/0031612345679 at 10.0.0.1:5060<mailto:bridge_parameters=%7bignore_early_media=true%7dsofia/outbound/0031612345678 at 10.0.0.1:5060,sofia/outbound/0031612345679 at 10.0.0.1:5060>" />
<action application="set" data="group_confirm_file=${prompts_directory}confirm.wav"/>
<action application="set" data="group_confirm_key=1"/>
<action application="bridge" data="${bridge_parameters}" />
<action application="bridge" data="{ignore_early_media=true}sofia/outbound/0031612345677 at 10.0.0.1:5060<mailto:%7bignore_early_media=true%7dsofia/outbound/0031612345677 at 10.0.0.1:5060>" />

But when both destinations in bridge_parameters don’t answer the phone, the incoming leg is also hung up, and execution doesn’t continue to the 2nd bridge.
The reason I set the bridge_parameters is because this will be filled by a curl response. For now it’s just hardcoded.


From: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Avi Marcus
Sent: Tuesday, July 15, 2014 6:48 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] confirmation for group_confirm

If your group confirm is working.. do you just want a backup destination if nobody picks up?
So set up hangup_after_bridge=true and then set two bridge strings.

-Avi

On Tue, Jul 15, 2014 at 2:04 PM, Grant Bagdasarian <GB at cm.nl<mailto:GB at cm.nl>> wrote:
Hello,

Is there a way to know in the incoming channel (A) if one of the destinations has pressed the group_confirm_key? Something like a “Answer Confirmation” confirmation.
I’m bridging the incoming leg to multiple destinations simultaneously and on answer they have to press the confirm key in order to accept the call.
When no one has answered or pressed the key, the incoming channel should be bridged to a final destination.
I have no idea how to do the final bridge if the above condition is met. Simultaneous bridging and configuring the group_confirm is no problem.

I’d like to this all of this in XML dialplan if possible. Other suggestions are welcome as well.

Any ideas?

Regards,

Grant

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto: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/20140716/9a1ab6e3/attachment-0001.html 


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