enable rbs events just for cas and em channels

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@839 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva 2009-09-22 15:50:50 +00:00
parent fa924f76a0
commit 37743744a9
1 changed files with 1 additions and 2 deletions

View File

@ -285,8 +285,7 @@ static unsigned wp_open_range(zap_span_t *span, unsigned spanno, unsigned start,
} }
#endif #endif
if (type == ZAP_CHAN_TYPE_CAS || if (type == ZAP_CHAN_TYPE_CAS || type == ZAP_CHAN_TYPE_EM) {
((span->trunk_type == ZAP_TRUNK_T1 || span->trunk_type == ZAP_TRUNK_E1) && type != ZAP_CHAN_TYPE_B)) {
#ifdef LIBSANGOMA_VERSION #ifdef LIBSANGOMA_VERSION
sangoma_tdm_write_rbs(chan->sockfd,&tdm_api,chan->physical_chan_id, wanpipe_swap_bits(cas_bits)); sangoma_tdm_write_rbs(chan->sockfd,&tdm_api,chan->physical_chan_id, wanpipe_swap_bits(cas_bits));