diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-27 19:03:32 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-27 19:03:32 +0000 |
commit | 29ef9959206bc929095f26ef3f0ccd9140af3b75 (patch) | |
tree | 801e6df94b19acbd5bcc9acf56d7355b983d6fc3 /channels/chan_zap.c | |
parent | df8d7d2f1c3edf93da8dfed3bf47c0f34cd0fa40 (diff) |
move the copy of the default settings to the global settings back out of
process_zap, so that they aren't overwritten when process_zap is called
multiple times
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46370 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index f5508d34f..e23b5ddde 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -10419,9 +10419,6 @@ static int process_zap(struct ast_variable *v, int reload, int skipchannels) int y; int found_pseudo = 0; - /* Copy the default jb config over global_jbconf */ - memcpy(&global_jbconf, &default_jbconf, sizeof(struct ast_jb_conf)); - while(v) { if (!ast_jb_read_conf(&global_jbconf, v->name, v->value)) continue; @@ -11151,6 +11148,10 @@ static int setup_zap(int reload) } } #endif + + /* Copy the default jb config over global_jbconf */ + memcpy(&global_jbconf, &default_jbconf, sizeof(struct ast_jb_conf)); + v = ast_variable_browse(cfg, "channels"); res = process_zap(v, reload, 0); ast_mutex_unlock(&iflock); |