From: Anthony Minessale Date: Thu, 20 Apr 2006 18:05:15 +0000 (+0000) Subject: fix sangoma X-Git-Tag: v1.0-beta1~2814 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da448c26a3fd9527a0dd44a16e5a106d42e02bfb;p=thirdparty%2Ffreeswitch.git fix sangoma git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1214 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c index 62e4db84ed..d7ae63ff9a 100644 --- a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c +++ b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c @@ -790,7 +790,7 @@ static switch_status wanpipe_outgoing_channel(switch_core_session *session, swit if (bchan) { int chan, span; - sangoma_span_chan_fromif(bchan, &span, &chan); + if (sangoma_span_chan_fromif(bchan, &span, &chan)) { if ((tech_pvt->socket = sangoma_open_tdmapi_span_chan(span, chan)) < 0) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Can't open fd!\n");