|
|
@ -8207,13 +8207,13 @@ static struct zt_pvt *mkintf(int channel, const struct zt_chan_conf *conf, struc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_PRI
|
|
|
|
#ifdef HAVE_PRI
|
|
|
|
if ((conf->chan.sig == SIG_PRI) || (conf->chan.sig == SIG_BRI) || (conf->chan.sig == SIG_BRI_PTMP) || (conf->chan.sig == SIG_GR303FXOKS) || (conf->chan.sig == SIG_GR303FXSKS)) {
|
|
|
|
if ((chan_sig == SIG_PRI) || (chan_sig == SIG_BRI) || (chan_sig == SIG_BRI_PTMP) || (chan_sig == SIG_GR303FXOKS) || (chan_sig == SIG_GR303FXSKS)) {
|
|
|
|
int offset;
|
|
|
|
int offset;
|
|
|
|
int myswitchtype;
|
|
|
|
int myswitchtype;
|
|
|
|
int matchesdchan;
|
|
|
|
int matchesdchan;
|
|
|
|
int x,y;
|
|
|
|
int x,y;
|
|
|
|
offset = 0;
|
|
|
|
offset = 0;
|
|
|
|
if (((conf->chan.sig == SIG_PRI) || (conf->chan.sig == SIG_BRI) || (conf->chan.sig == SIG_BRI_PTMP))
|
|
|
|
if (((chan_sig == SIG_PRI) || (chan_sig == SIG_BRI) || (chan_sig == SIG_BRI_PTMP))
|
|
|
|
&& ioctl(tmp->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &offset)) {
|
|
|
|
&& ioctl(tmp->subs[SUB_REAL].zfd, ZT_AUDIOMODE, &offset)) {
|
|
|
|
ast_log(LOG_ERROR, "Unable to set clear mode on clear channel %d of span %d: %s\n", channel, p.spanno, strerror(errno));
|
|
|
|
ast_log(LOG_ERROR, "Unable to set clear mode on clear channel %d of span %d: %s\n", channel, p.spanno, strerror(errno));
|
|
|
|
destroy_zt_pvt(&tmp);
|
|
|
|
destroy_zt_pvt(&tmp);
|
|
|
@ -8238,9 +8238,9 @@ static struct zt_pvt *mkintf(int channel, const struct zt_chan_conf *conf, struc
|
|
|
|
destroy_zt_pvt(&tmp);
|
|
|
|
destroy_zt_pvt(&tmp);
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ((conf->chan.sig == SIG_PRI) ||
|
|
|
|
if ((chan_sig == SIG_PRI) ||
|
|
|
|
(conf->chan.sig == SIG_BRI) ||
|
|
|
|
(chan_sig == SIG_BRI) ||
|
|
|
|
(conf->chan.sig == SIG_BRI_PTMP))
|
|
|
|
(chan_sig == SIG_BRI_PTMP))
|
|
|
|
myswitchtype = conf->pri.switchtype;
|
|
|
|
myswitchtype = conf->pri.switchtype;
|
|
|
|
else
|
|
|
|
else
|
|
|
|
myswitchtype = PRI_SWITCH_GR303_TMC;
|
|
|
|
myswitchtype = PRI_SWITCH_GR303_TMC;
|
|
|
|