mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-05 15:47:51 +00:00
freetdm: open wanpipe devices as non-exclusive if possible
This commit is contained in:
parent
54c0d6f7c4
commit
0fdc272b25
@ -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);
|
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
|
#endif
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef LIBSANGOMA_VERSION
|
||||||
|
sockfd = __tdmv_api_open_span_chan(spanno, x);
|
||||||
|
#else
|
||||||
sockfd = tdmv_api_open_span_chan(spanno, x);
|
sockfd = tdmv_api_open_span_chan(spanno, x);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sockfd == FTDM_INVALID_SOCKET) {
|
if (sockfd == FTDM_INVALID_SOCKET) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user