]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
enable rbs events just for cas and em channels
authorMoises Silva <moy@sangoma.com>
Tue, 22 Sep 2009 15:50:50 +0000 (15:50 +0000)
committerMoises Silva <moy@sangoma.com>
Tue, 22 Sep 2009 15:50:50 +0000 (15:50 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@839 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c

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