[asterisk-commits] dvossel: branch dvossel/call_forward_api_trunk r198761 - /team/dvossel/call_f...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 1 17:01:03 CDT 2009
Author: dvossel
Date: Mon Jun 1 17:00:59 2009
New Revision: 198761
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198761
Log:
check for empty forward_context string.
Modified:
team/dvossel/call_forward_api_trunk/main/channel.c
Modified: team/dvossel/call_forward_api_trunk/main/channel.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/dvossel/call_forward_api_trunk/main/channel.c?view=diff&rev=198761&r1=198760&r2=198761
==============================================================================
--- team/dvossel/call_forward_api_trunk/main/channel.c (original)
+++ team/dvossel/call_forward_api_trunk/main/channel.c Mon Jun 1 17:00:59 2009
@@ -3961,6 +3961,9 @@
const char *forward_context;
ast_channel_lock(orig);
forward_context = pbx_builtin_getvar_helper(orig, "FORWARD_CONTEXT");
+ if (ast_strlen_zero(forward_context)) {
+ forward_context = NULL;
+ }
snprintf(tmpchan, sizeof(tmpchan), "%s@%s", orig->call_forward, forward_context ? forward_context : orig->context);
ast_channel_unlock(orig);
data = tmpchan;
More information about the asterisk-commits
mailing list