I need a suggestion on how to bypass_media based on the gateway I'm using. Say we have 3 bridge's. One has to be full media but the other 2 can be bypass. If 1 fails, 2 will be the failover but since you have to set the media on leg a how do I change it to full media? Hangup after bridge Bridge 1 bypass_media = true Bridge 2 bypass_media = false Bridge 3 bypass_media = true
Set the bypass_media in the leg: [bypass_media=true]sofia/external/12014444444@sip.bestfone.com |[bypass_media=false]sofia/gateway/voxbeam/12014444444|[bypass_media=true]sofia/gateway/xconnect/12014444444 <action application="bridge" data="$MyBridgeString"/> -Avi On Sat, Mar 29, 2014 at 4:23 AM, Andre <andretodd@verizon.net> wrote:
I need a suggestion on how to bypass_media based on the gateway I'm using.
Say we have 3 bridge's. One has to be full media but the other 2 can be bypass. If 1 fails, 2 will be the failover but since you have to set the media on leg a how do I change it to full media?
Hangup after bridge
Bridge 1 bypass_media = true
Bridge 2 bypass_media = false
Bridge 3 bypass_media = true
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This would work perfectly. I did read something that said this wouldn't work but maybe that was old. Thanks Andre From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Avi Marcus Sent: Saturday, March 29, 2014 1:34 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Bypass_media Set the bypass_media in the leg: [bypass_media=true]sofia/external/12014444444@sip.bestfone.com <mailto:12014444444@sip.bestfone.com> |[bypass_media=false]sofia/gateway/voxbeam/12014444444|[bypass_media=true]so fia/gateway/xconnect/12014444444 <action application="bridge" data="$MyBridgeString"/> -Avi On Sat, Mar 29, 2014 at 4:23 AM, Andre <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: I need a suggestion on how to bypass_media based on the gateway I'm using. Say we have 3 bridge's. One has to be full media but the other 2 can be bypass. If 1 fails, 2 will be the failover but since you have to set the media on leg a how do I change it to full media? Hangup after bridge Bridge 1 bypass_media = true Bridge 2 bypass_media = false Bridge 3 bypass_media = true _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I've tried this but it doesn't seem to work Hangup after bridge code is here too.. <action application="bridge" data="[bypass_media=true]sofia/gateway/8/1240xxxxxxx"/> <action application="bridge" data="[bypass_media=false]sofia/gateway/8/1240xxxxxxx"/> <action application="bridge" data="[bypass_media=true]sofia/gateway/8/1240xxxxxxx"/> Do I have to change my code to the Pipe syntax "|" like your example? From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Avi Marcus Sent: Saturday, March 29, 2014 1:34 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Bypass_media Set the bypass_media in the leg: [bypass_media=true]sofia/external/12014444444@sip.bestfone.com <mailto:12014444444@sip.bestfone.com> |[bypass_media=false]sofia/gateway/voxbeam/12014444444|[bypass_media=true]so fia/gateway/xconnect/12014444444 <action application="bridge" data="$MyBridgeString"/> -Avi On Sat, Mar 29, 2014 at 4:23 AM, Andre <andretodd@verizon.net <mailto:andretodd@verizon.net> > wrote: I need a suggestion on how to bypass_media based on the gateway I'm using. Say we have 3 bridge's. One has to be full media but the other 2 can be bypass. If 1 fails, 2 will be the failover but since you have to set the media on leg a how do I change it to full media? Hangup after bridge Bridge 1 bypass_media = true Bridge 2 bypass_media = false Bridge 3 bypass_media = true _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
How do you know it didn't work? It looks like you're bridging to the same gateway each time... -Avi
The code was just a sample code but The way I know it didn't work is I call a command on answer a.ExecuteString(String.Format("uuid_media {0} ", s.uuid)); This will put the call in full media. Since by default its already full media and the code on the bridge says bypass media (in my real application) it should return a OK, but it returns an error that it's already full media. Andre From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Avi Marcus Sent: Saturday, March 29, 2014 3:21 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Bypass_media How do you know it didn't work? It looks like you're bridging to the same gateway each time... -Avi
Can you confirm the version you're running and supply a debug-level log of the call failing? On 29 March 2014 15:28, Andre <andretodd@verizon.net> wrote:
The code was just a sample code but
The way I know it didn't work is I call a command on answer
a.ExecuteString(String.Format("uuid_media {0} ", s.uuid));
This will put the call in full media. Since by default its already full media and the code on the bridge says bypass media (in my real application) it should return a OK, but it returns an error that it's already full media.
Andre
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Avi Marcus *Sent:* Saturday, March 29, 2014 3:21 PM
*To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] Bypass_media
How do you know it didn't work?
It looks like you're bridging to the same gateway each time...
-Avi
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Andre
-
Avi Marcus
-
Steven Ayre