freetdm: open wanpipe devices as non-exclusive if possible

This commit is contained in:
Moises Silva 2011-01-19 15:53:01 -05:00
parent 54c0d6f7c4
commit 0fdc272b25

View 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) {