diff options
author | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-02-13 06:00:14 +0000 |
---|---|---|
committer | matteo <matteo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-02-13 06:00:14 +0000 |
commit | 54b168a25414b0994fa47dc2d79408ce9586000a (patch) | |
tree | 6de335942589dc50bacb98f3c1119222c6cb97d5 /pbx | |
parent | 6f8508e0dc91d74f9c126759b28d711eeffca2ac (diff) |
Thu Feb 13 07:00:00 CET 2003
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@613 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index 56de6ed26..ab2543895 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1510,10 +1510,10 @@ static int pbx_load_module(void) if (!pri) pri=""; appl = stringp; - if (!(start = strchr(appl, '('))) - appl = strsep(&stringp, ","); if (!appl) appl=""; + if (!(start = strchr(appl, '('))) + appl = strsep(&stringp, ","); if (start && (end = strrchr(appl, ')'))) { *start = *end = '\0'; data = start + 1; @@ -1588,7 +1588,10 @@ int load_module(void) int reload(void) { ast_context_destroy(NULL, registrar); + /* For martin's global variables, don't clear them on reload */ +#if 0 pbx_builtin_clear_globals(); +#endif pbx_load_module(); return 0; } |