aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-30 02:46:41 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-30 02:46:41 +0000
commit6b1490ae1129abcbb0bf79ee4f87901c92ecac44 (patch)
treecc435abbdbed11a747e58cc11aa9b7b6578343c6
parent456073461137931cf90ec89d8219e43003b3c37f (diff)
Treat an empty FORWARD_CONTEXT the same way we treat a missing one.
(closes issue #15056) Reported by: p_lindheimer Patches: 05292009_bug15056.diff uploaded by seanbright (license 71) Tested by: p_lindheimer git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@198251 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_dial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index f0907bd4d..c8cb3a37d 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -503,6 +503,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l
tech = tmpchan;
} else {
const char *forward_context = pbx_builtin_getvar_helper(c, "FORWARD_CONTEXT");
+ if (ast_strlen_zero(forward_context)) {
+ forward_context = NULL;
+ }
snprintf(tmpchan, sizeof(tmpchan), "%s@%s", c->call_forward, forward_context ? forward_context : c->context);
stuff = tmpchan;
tech = "Local";