]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: fix codec for CAS signaling
authorMoises Silva <moy@sangoma.com>
Tue, 7 Sep 2010 20:04:38 +0000 (16:04 -0400)
committerMoises Silva <moy@sangoma.com>
Tue, 7 Sep 2010 20:04:38 +0000 (16:04 -0400)
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c

index d8b3c7d40d7e734e6d53c6e1725de64cfabd9563..be99f94aff5545e5db02c9f4c9ea72993de0e335 100644 (file)
@@ -259,7 +259,10 @@ static unsigned wp_open_range(ftdm_span_t *span, unsigned spanno, unsigned start
                        chan->physical_chan_id = x;
                        chan->rate = 8000;
                        
-                       if (type == FTDM_CHAN_TYPE_FXS || type == FTDM_CHAN_TYPE_FXO || type == FTDM_CHAN_TYPE_B) {
+                       if (type == FTDM_CHAN_TYPE_FXS 
+                       || type == FTDM_CHAN_TYPE_FXO 
+                       || type == FTDM_CHAN_TYPE_CAS
+                       || type == FTDM_CHAN_TYPE_B) {
                                int err;
                                
                                dtmf = "software";