enable rbs mode on analog over t1/e1

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@779 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2009-07-23 16:26:47 +00:00
parent cc3f3cb16e
commit f7e05b0b4e
1 changed files with 2 additions and 1 deletions

View File

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