Detecting Errors when dialing through multiple gateways
Hi All, I have been having pretty good luck with redundancy by dialing through multiple gateways like: <action application="bridge" data="sofia/gateway/cheap/1xxxxxxxxxx, [leg_delay_start=8]sofia/gateway/expensive/1xxxxxxxxxx"/> If gateway cheap fails, the call goes through on the expensive gateway. That is fine, but I would like an email notification of the failure on the cheap gateway. Is there any way to do that? The support group at the gateway vender is very good at correcting the problem when notified. I would love to send them an email of failures automatically. Thanks, Sean
Lua scripts are really good at doing this, and if you are crafty enough you can even give them a failure description and supporting sip trace. That IMO would be the best option. I'm mobile right now so I can't write you an example but maybe others can chime in. - BDF On May 17, 2013 4:59 PM, "Sean Devoy" <sdevoy@bizfocused.com> wrote:
Hi All,****
** **
I have been having pretty good luck with redundancy by dialing through multiple gateways like:****
<action application="bridge" data="sofia/gateway/cheap/1xxxxxxxxxx, [leg_delay_start=8]sofia/gateway/expensive/1xxxxxxxxxx"/>****
** **
If gateway cheap fails, the call goes through on the expensive gateway. That is fine, but I would like an email notification of the failure on the cheap gateway. Is there any way to do that? The support group at the gateway vender is very good at correcting the problem when notified. I would love to send them an email of failures automatically.****
** **
Thanks,****
Sean****
_________________________________________________________________________ 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
Thanks Brian. I will dig in to some of the LUA samples. This is not the first time I have been steered that way. I am kind of glad to see you unavailable on Friday Night! Now we have to get MC a girlfriend or a favorite bar. He like answered EVERY open question at 7:30p on Friday night. (MAYBE he is in California and it was like 4:30p). Seriously though, thanks everyone for all the help. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian Foster Sent: Friday, May 17, 2013 5:12 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Detecting Errors when dialing through multiple gateways Lua scripts are really good at doing this, and if you are crafty enough you can even give them a failure description and supporting sip trace. That IMO would be the best option. I'm mobile right now so I can't write you an example but maybe others can chime in. - BDF On May 17, 2013 4:59 PM, "Sean Devoy" <sdevoy@bizfocused.com> wrote: Hi All, I have been having pretty good luck with redundancy by dialing through multiple gateways like: <action application="bridge" data="sofia/gateway/cheap/1xxxxxxxxxx, [leg_delay_start=8]sofia/gateway/expensive/1xxxxxxxxxx"/> If gateway cheap fails, the call goes through on the expensive gateway. That is fine, but I would like an email notification of the failure on the cheap gateway. Is there any way to do that? The support group at the gateway vender is very good at correcting the problem when notified. I would love to send them an email of failures automatically. Thanks, Sean _________________________________________________________________________ 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
On Fri, May 17, 2013 at 1:53 PM, Sean Devoy <sdevoy@bizfocused.com> wrote:
Hi All,****
** **
I have been having pretty good luck with redundancy by dialing through multiple gateways like:****
<action application="bridge" data="sofia/gateway/cheap/1xxxxxxxxxx, [leg_delay_start=8]sofia/gateway/expensive/1xxxxxxxxxx"/>
I'm curious why your're doing simultaneous dial instead of sequential dial here. In any case, you can have multiple bridge apps instead of doing the comma-sep list: <action application="set" data="continue_on_fail=true"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/gateway/cheap/$1"/> <action application="log" data="WARNING Bridge attempt failed ${bridge_hangup_cause}"/> <action application="system" data="/usr/sbin/send_notification_email.sh"/> <action application="bridge" data="sofia/gateway/expensive/$1"/> Try it out. Also, don't forget the standard disclaimer<http://wiki.freeswitch.org/wiki/Reporting_Bugs#Standard_Disclaimer> . -MC
****
** **
If gateway cheap fails, the call goes through on the expensive gateway. That is fine, but I would like an email notification of the failure on the cheap gateway. Is there any way to do that? The support group at the gateway vender is very good at correcting the problem when notified. I would love to send them an email of failures automatically.****
** **
Thanks,****
Sean****
_________________________________________________________________________ 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
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Awww, but there is a trade-off here. In my bridge, the "back up" expensive gateway starts connecting after only 8 seconds. Using your schema, in some cases, the first or "cheap" gateway takes the full timeout limit to expire. Only then, after 25 or 30 seconds, does the backup start trying to connect. Too many users give up after 20 or 25 seconds of silence. Few will wait for a 25 second timeout, followed by a 12 to 15 second connection. But, if error detection is not possible in the sequential dial way, I like your approach, but with an extra "play" message saying "ooops, rerouting, hang on, hang on I can do this" From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Friday, May 17, 2013 7:17 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Detecting Errors when dialing through multiple gateways On Fri, May 17, 2013 at 1:53 PM, Sean Devoy <sdevoy@bizfocused.com> wrote: Hi All, I have been having pretty good luck with redundancy by dialing through multiple gateways like: <action application="bridge" data="sofia/gateway/cheap/1xxxxxxxxxx, [leg_delay_start=8]sofia/gateway/expensive/1xxxxxxxxxx"/> I'm curious why your're doing simultaneous dial instead of sequential dial here. In any case, you can have multiple bridge apps instead of doing the comma-sep list: <action application="set" data="continue_on_fail=true"/> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/gateway/cheap/$1"/> <action application="log" data="WARNING Bridge attempt failed ${bridge_hangup_cause}"/> <action application="system" data="/usr/sbin/send_notification_email.sh"/> <action application="bridge" data="sofia/gateway/expensive/$1"/> Try it out. Also, don't forget the standard disclaimer <http://wiki.freeswitch.org/wiki/Reporting_Bugs#Standard_Disclaimer> . -MC If gateway cheap fails, the call goes through on the expensive gateway. That is fine, but I would like an email notification of the failure on the cheap gateway. Is there any way to do that? The support group at the gateway vender is very good at correcting the problem when notified. I would love to send them an email of failures automatically. Thanks, Sean _________________________________________________________________________ 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 -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
participants (3)
-
Brian Foster
-
Michael Collins
-
Sean Devoy