mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
tweaks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2417 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
0c1e874de2
commit
353f936095
6 files changed
+63
-30
No files matched your search
@@ -286,7 +286,7 @@ static int activate_rtp(struct private_object *tech_pvt)
|
||||
int ms = 20;
|
||||
switch_rtp_flag_t flags;
|
||||
|
||||
if (tech_pvt->rtp_session) {
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -695,7 +695,7 @@ static switch_status_t channel_on_hangup(switch_core_session_t *session)
|
||||
ldl_session_destroy(&tech_pvt->dlsession);
|
||||
}
|
||||
|
||||
if (tech_pvt->rtp_session) {
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||
switch_rtp_destroy(&tech_pvt->rtp_session);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "NUKE RTP\n");
|
||||
tech_pvt->rtp_session = NULL;
|
||||
@@ -734,7 +734,7 @@ static switch_status_t channel_kill_channel(switch_core_session_t *session, int
|
||||
|
||||
}
|
||||
|
||||
if (tech_pvt->rtp_session) {
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||
switch_rtp_kill_socket(tech_pvt->rtp_session);
|
||||
}
|
||||
|
||||
@@ -1629,7 +1629,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
|
||||
if (*msg == '+') {
|
||||
switch_channel_queue_dtmf(channel, msg + 1);
|
||||
switch_set_flag_locked(tech_pvt, TFLAG_DTMF);
|
||||
if (tech_pvt->rtp_session) {
|
||||
if (switch_rtp_ready(tech_pvt->rtp_session)) {
|
||||
switch_rtp_set_flag(tech_pvt->rtp_session, SWITCH_RTP_FLAG_BREAK);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user