From: Anthony Minessale Date: Tue, 2 Sep 2008 16:38:16 +0000 (+0000) Subject: make dingaling end call on ice timeout X-Git-Tag: v1.0.2~1342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b017a5d2ab7c2d82ef68b1b12048675cc41daf5;p=thirdparty%2Ffreeswitch.git make dingaling end call on ice timeout git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9406 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 10f7dfc616..97b48d2192 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1456,7 +1456,9 @@ static switch_status_t channel_write_frame(switch_core_session_t *session, switc tech_pvt->timestamp_send += samples; //switch_rtp_write_frame(tech_pvt->rtp_session, frame, tech_pvt->timestamp_send); - switch_rtp_write_frame(tech_pvt->rtp_session, frame); + if (switch_rtp_write_frame(tech_pvt->rtp_session, frame) < 0) { + status = SWITCH_STATUS_GENERR; + } switch_clear_flag_locked(tech_pvt, TFLAG_WRITING); return status;