From 66add1d2bac387d3d411649dcb418c74e521fe1e Mon Sep 17 00:00:00 2001 From: murf Date: Tue, 14 Aug 2007 14:32:21 +0000 Subject: Merged revisions 79255 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79255 | murf | 2007-08-13 11:49:54 -0600 (Mon, 13 Aug 2007) | 1 line This patch fixes bug 10411. I added a new regression test, some regression test cleanups ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79392 f38db490-d61c-443f-a65b-d21fe96a405b --- utils/ael_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'utils/ael_main.c') diff --git a/utils/ael_main.c b/utils/ael_main.c index df8a01c37..76562c381 100644 --- a/utils/ael_main.c +++ b/utils/ael_main.c @@ -164,6 +164,17 @@ void ast_unregister_file_version(void) /* I'm erasing this, because I don't think anyone really ever needs to see it anyway */ } +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) +{ + if (cp1 && *cp1) + strncpy(cp2,cp1,AST_MAX_EXTENSION); /* Right now, this routine is ONLY being called for + a possible var substitution on extension names, + so....! */ + else + *cp2 = 0; +} + int ast_add_extension2(struct ast_context *con, int replace, const char *extension, int priority, const char *label, const char *callerid, const char *application, void *data, void (*datad)(void *), -- cgit v1.2.3