From 61bc1854d578cc5a55d36b80bc1afa1b322522b4 Mon Sep 17 00:00:00 2001 From: David Vossel <dvossel@digium.com> Date: Tue, 2 Jun 2009 17:55:35 +0000 Subject: [PATCH] fixes issue with channels not going down after transfer Iax2 currently does not support native bridging if the timeoutms value is set. We check for that in iax2_bridge, but then set timeoutms to 0 by default. If the timeoutms is not provided it is set to -1. By setting timeoutms to 0 it is processed causing a bridging retry loop. (closes issue #15216) Reported by: oxymoron Tested by: dvossel git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198824 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_iax2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index a6a56b4e09..beede16fe3 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -4277,7 +4277,7 @@ static enum ast_bridge_result iax2_bridge(struct ast_channel *c0, struct ast_cha return AST_BRIDGE_FAILED; } - timeoutms = 0; + timeoutms = -1; lock_both(callno0, callno1); if (!iaxs[callno0] || !iaxs[callno1]) { -- GitLab