diff options
author | Steve Murphy <murf@digium.com> | 2007-08-14 14:32:21 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2007-08-14 14:32:21 +0000 |
commit | d9b52497f0952d264f11429ae760625538655581 (patch) | |
tree | 389cf67d1f86e381913af92364a85fc755bd5d54 /utils/ael_main.c | |
parent | 9264d5007a78ee038986a3eefead816d1506a188 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@79392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'utils/ael_main.c')
-rw-r--r-- | utils/ael_main.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 *), |