提交 2e45fc06 authored 作者: Georgiewskiy Yuriy's avatar Georgiewskiy Yuriy

fix memory leaks, tanks to Sharath from packetizer forum.

上级 1aa2fc75
fix memory leaks, thanks Sharath from packetizer forum.
fix stale calls then fax send/recv in some circumstance fix stale calls then fax send/recv in some circumstance
remove SWITCH_RTP_FLAG_AUTO_CNG - works incorrectly. remove SWITCH_RTP_FLAG_AUTO_CNG - works incorrectly.
moves the switch_rtp_request_port() call from the contructor to FSH323Connection::CreateRealTimeLogicalChannel() - fix moves the switch_rtp_request_port() call from the contructor to FSH323Connection::CreateRealTimeLogicalChannel() - fix
......
...@@ -189,6 +189,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_h323_shutdown) ...@@ -189,6 +189,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_h323_shutdown)
switch_safe_free(mod_h323_globals.context); switch_safe_free(mod_h323_globals.context);
switch_safe_free(mod_h323_globals.dialplan); switch_safe_free(mod_h323_globals.dialplan);
switch_safe_free(mod_h323_globals.codec_string); switch_safe_free(mod_h323_globals.codec_string);
switch_safe_free(mod_h323_globals.rtp_timer_name);
delete h323_process; delete h323_process;
h323_process = NULL; h323_process = NULL;
...@@ -768,6 +769,7 @@ FSH323Connection::~FSH323Connection() ...@@ -768,6 +769,7 @@ FSH323Connection::~FSH323Connection()
tech_pvt->active_connection = false; tech_pvt->active_connection = false;
// 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");
switch_safe_free(tech_pvt->token);
} }
void FSH323Connection::AttachSignalChannel(const PString & token, void FSH323Connection::AttachSignalChannel(const PString & token,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论