allow commented categories
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@644 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
7241056f70
commit
c334ae7745
|
@ -654,9 +654,9 @@ static void *zap_analog_channel_run(zap_thread_t *me, void *obj)
|
|||
}
|
||||
|
||||
if ((zchan->dtmf_buffer && zap_buffer_inuse(zchan->dtmf_buffer)) || (zchan->fsk_buffer && zap_buffer_inuse(zchan->fsk_buffer))) {
|
||||
rlen = len;
|
||||
memset(frame, 0, len);
|
||||
zap_channel_write(zchan, frame, sizeof(frame), &rlen);
|
||||
//rlen = len;
|
||||
//memset(frame, 0, len);
|
||||
//zap_channel_write(zchan, frame, sizeof(frame), &rlen);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -2098,7 +2098,12 @@ static zap_status_t load_config(void)
|
|||
}
|
||||
|
||||
while (zap_config_next_pair(&cfg, &var, &val)) {
|
||||
if (!strncasecmp(cfg.category, "span", 4)) {
|
||||
if (*cfg.category == '#') {
|
||||
if (cfg.catno != catno) {
|
||||
zap_log(ZAP_LOG_DEBUG, "Skipping %s\n", cfg.category);
|
||||
catno = cfg.catno;
|
||||
}
|
||||
} else if (!strncasecmp(cfg.category, "span", 4)) {
|
||||
if (cfg.catno != catno) {
|
||||
char *type = cfg.category + 4;
|
||||
char *name;
|
||||
|
|
Loading…
Reference in New Issue