diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-13 17:49:54 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-13 17:49:54 +0000 |
commit | c338e83712467731d7a9f46b53e5f2b164aac7a8 (patch) | |
tree | 703907296f31ff993339ccc4745a734737bfbe50 /utils | |
parent | 9092da6fa7106209d19598f25c47402a3760ec3e (diff) |
This patch fixes bug 10411. I added a new regression test, some regression test cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79255 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'utils')
-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 f32e0b5ec..73b9c7302 100644 --- a/utils/ael_main.c +++ b/utils/ael_main.c @@ -154,6 +154,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 *), |