From 6b9d24b54a825dc6866dbf243c0a5ca2b60d3872 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Thu, 28 Oct 2004 14:25:50 +0000
Subject: [PATCH] Oops

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_dial.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/app_dial.c b/apps/app_dial.c
index 0bf269a683..eeb9a97e5e 100755
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -762,6 +762,7 @@ static int dial_exec(struct ast_channel *chan, void *data)
 			/* If we can't, just go on to the next call */
 			ast_log(LOG_NOTICE, "Unable to create channel of type '%s'\n", tech);
 			HANDLE_CAUSE(cause, chan);
+			cur = rest;
 			continue;
 		}
 		if (!ast_strlen_zero(tmp->chan->call_forward)) {
@@ -787,6 +788,7 @@ static int dial_exec(struct ast_channel *chan, void *data)
 			if (!tmp->chan) {
 				ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s'\n", tech, stuff);
 				HANDLE_CAUSE(cause, chan);
+				cur = rest;
 				continue;
 			}
 		}
-- 
GitLab