diff --git a/pbx.c b/pbx.c index f3a362254d7df3eb86ac251df3a2f2354e8c8865..e4041ccbf1e032668a078c1e74a6de637473da55 100755 --- a/pbx.c +++ b/pbx.c @@ -896,7 +896,7 @@ static void pbx_substitute_variables_temp(struct ast_channel *c,const char *var, } } -static void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count) +void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp1,char *cp2,int count) { char *cp4; const char *tmp, *whereweare; @@ -909,7 +909,6 @@ static void pbx_substitute_variables_helper(struct ast_channel *c,const char *cp /* Substitutes variables into cp2, based on string cp1, and assuming cp2 to be zero-filled */ - whereweare=tmp=cp1; while(strlen(whereweare) && count) { /* Assume we're copying the whole remaining string */