From: Anthony Minessale Date: Fri, 23 Feb 2007 18:04:52 +0000 (+0000) Subject: fix seg X-Git-Tag: v1.0-beta1~1021 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ec6bad02cf1a53b56a32072c6b2b4712a91f43e;p=thirdparty%2Ffreeswitch.git fix seg git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4371 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 60cd3722db..867eb6a25e 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -1169,7 +1169,9 @@ static switch_status_t channel_kill_channel(switch_core_session_t *session, int } break; case SWITCH_SIG_BREAK: - switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_BREAK); + if (switch_rtp_ready(tech_pvt->rtp_session)) { + switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_BREAK); + } break; }