aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-27 15:32:40 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-27 15:32:40 +0000
commitb9fa3b9e790c9012a4f43c7d33e1023b7d2a49c6 (patch)
tree56c2ab64741f7686492116b74c82464bf1ef2115 /channels/chan_zap.c
parent98ef07f1f4305e8a4a5fe7f44367278e7a7ff746 (diff)
Instead of iterating all of the options once to look for jitterbuffer options,
and then again for everything else, move the processing of jitterbuffer options into the main loop so that there are no erroneous messages about ignoring unknown options. (issue #8226) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46358 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r--channels/chan_zap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 869a33313..f5508d34f 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -10419,7 +10419,13 @@ 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;
+
/* Create the interface list */
if (!strcasecmp(v->name, "channel")
#ifdef HAVE_PRI
@@ -11064,7 +11070,6 @@ static int setup_zap(int reload)
{
struct ast_config *cfg;
struct ast_variable *v;
- struct ast_variable *vjb;
int res;
#ifdef HAVE_PRI
@@ -11147,11 +11152,6 @@ static int setup_zap(int reload)
}
#endif
v = ast_variable_browse(cfg, "channels");
- /* Copy the default jb config over global_jbconf */
- memcpy(&global_jbconf, &default_jbconf, sizeof(struct ast_jb_conf));
- /* Traverse all variables to handle jb conf */
- for (vjb = v; vjb; vjb = vjb->next)
- ast_jb_read_conf(&global_jbconf, vjb->name, vjb->value);
res = process_zap(v, reload, 0);
ast_mutex_unlock(&iflock);
ast_config_destroy(cfg);