mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
Adds an extra switch_rtp_destroy or switch_rtp_release_port when a session ends - to make sure the port is returned to FS.
This commit is contained in:
parent
230cef0fd1
commit
a024f006de
@ -1,3 +1,5 @@
|
|||||||
|
Adds an extra switch_rtp_destroy or switch_rtp_release_port when a session ends
|
||||||
|
- to make sure the port is returned to FS. thx to Peter Olsson.
|
||||||
fix issues with Progress message type if pre_answer enabled
|
fix issues with Progress message type if pre_answer enabled
|
||||||
fix crashes on FSH323Connection calls in on_hangup routine in different threads.
|
fix crashes on FSH323Connection calls in on_hangup routine in different threads.
|
||||||
move PTrace level set to FSH323EndPoint::Initialise
|
move PTrace level set to FSH323EndPoint::Initialise
|
||||||
|
@ -343,7 +343,7 @@ PString GetH245CodecName(const H323Capability* cap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
FSProcess::FSProcess()
|
FSProcess::FSProcess()
|
||||||
: PLibraryProcess("Test", "mod_h323", 1, 0, AlphaCode, 1)
|
: PLibraryProcess("FreeSWITCH", "mod_h323", 1, 0, AlphaCode, 1)
|
||||||
, m_h323endpoint(NULL){
|
, m_h323endpoint(NULL){
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -742,6 +742,14 @@ FSH323Connection::~FSH323Connection()
|
|||||||
switch_core_session_unlock_codec_write(m_fsSession);
|
switch_core_session_unlock_codec_write(m_fsSession);
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------->switch_core_session_unlock_codec_write [%p]\n",m_fsSession);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------->switch_core_session_unlock_codec_write [%p]\n",m_fsSession);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tech_pvt->rtp_session) {
|
||||||
|
switch_rtp_destroy(&tech_pvt->rtp_session);
|
||||||
|
tech_pvt->rtp_session = NULL;
|
||||||
|
} else if (m_RTPlocalPort) {
|
||||||
|
switch_rtp_release_port((const char *)m_RTPlocalIP.AsString(), m_RTPlocalPort);
|
||||||
|
}
|
||||||
|
|
||||||
tech_pvt->me = NULL;
|
tech_pvt->me = NULL;
|
||||||
// switch_mutex_unlock(tech_pvt->h323_mutex);
|
// switch_mutex_unlock(tech_pvt->h323_mutex);
|
||||||
// switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------->h323_mutex_unlock\n");
|
// switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------->h323_mutex_unlock\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user