diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-30 03:27:31 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-30 03:27:31 +0000 |
commit | e9358a3d2adf8b32bc805a9f499f163f81e93799 (patch) | |
tree | 759ba756c2a1cf51919937b5f63dfe0345b788b5 /apps | |
parent | 37c761684a030ee3f8bfe76075727f5cba75f93d (diff) |
Merged revisions 198285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r198285 | seanbright | 2009-05-29 23:26:06 -0400 (Fri, 29 May 2009) | 15 lines
Merged revisions 198251 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r198251 | seanbright | 2009-05-29 22:46:41 -0400 (Fri, 29 May 2009) | 8 lines
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.6.0@198292 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index e21813534..3ca204bf4 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -498,6 +498,9 @@ static void do_forward(struct chanlist *o, 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"; |