]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: open wanpipe devices as non-exclusive if possible
authorMoises Silva <moy@sangoma.com>
Wed, 19 Jan 2011 20:53:01 +0000 (15:53 -0500)
committerMoises Silva <moy@sangoma.com>
Wed, 19 Jan 2011 20:53:01 +0000 (15:53 -0500)
libs/freetdm/src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c

index e2b08255acb96a85605df4ea43d74a4d6b51e615..3b384cdf3228942fdbb98e47d4d396f091ecc248 100644 (file)
@@ -239,7 +239,11 @@ static unsigned wp_open_range(ftdm_span_t *span, unsigned spanno, unsigned start
                        ftdm_log(FTDM_LOG_ERROR, "span %d channel %d cannot be configured as smg_prid_nfas, you need to compile freetdm with newer libsangoma\n", spanno, x);
 #endif
                } else {
+#ifdef LIBSANGOMA_VERSION
+                       sockfd = __tdmv_api_open_span_chan(spanno, x);
+#else
                        sockfd = tdmv_api_open_span_chan(spanno, x);
+#endif
                }
 
                if (sockfd == FTDM_INVALID_SOCKET) {