[asterisk-commits] seanbright: branch 1.4 r198251 - /branches/1.4/apps/app_dial.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 29 21:46:46 CDT 2009


Author: seanbright
Date: Fri May 29 21:46:41 2009
New Revision: 198251

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198251
Log:
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

Modified:
    branches/1.4/apps/app_dial.c

Modified: branches/1.4/apps/app_dial.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=198251&r1=198250&r2=198251
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Fri May 29 21:46:41 2009
@@ -503,6 +503,9 @@
 					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";




More information about the asterisk-commits mailing list