提交 949d528a authored 作者: Georgiewskiy Yuriy's avatar Georgiewskiy Yuriy

apply patch from Jan Willamowius:

make sure dtmfinband gets initialized.
make gk-identifier and gk-interface settings optional (documentation sayed that about gk-identifier already)
上级 1d490df9
make sure dtmfinband gets initialized
make gk-identifier and gk-interface settings optional (documentation sayed that about gk-identifier already)
fix race condition on destroying signaling thread in h323 library fix race condition on destroying signaling thread in h323 library
Adds an extra switch_rtp_destroy or switch_rtp_release_port when a session ends 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. - to make sure the port is returned to FS. thx to Peter Olsson.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<!-- <param name="ptime-override-value" value="20"/> --> <!-- Override negotiated ptime value with this value --> <!-- <param name="ptime-override-value" value="20"/> --> <!-- Override negotiated ptime value with this value -->
<param name="gk-address" value=""/> <!-- empty to disable, "*" to search LAN --> <param name="gk-address" value=""/> <!-- empty to disable, "*" to search LAN -->
<param name="gk-identifer" value=""/> <!-- optional name of gk --> <param name="gk-identifer" value=""/> <!-- optional name of gk -->
<param name="gk-interface" value=""/> <!-- mandatory listener interface name --> <param name="gk-interface" value=""/> <!-- optional UDP listener interface (IP:port) -->
<param name="gk-retry" value="30"/> <!-- optional GK register retry timer --> <param name="gk-retry" value="30"/> <!-- optional GK register retry timer -->
<param name="faststart" value="true"/> <!-- optional --> <param name="faststart" value="true"/> <!-- optional -->
<param name="h245tunneling" value="true"/> <!-- optional --> <param name="h245tunneling" value="true"/> <!-- optional -->
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
* License. * License.
* *
* Contributor(s): * Contributor(s):
* Jan Willamowius.
* *
* *
* *
...@@ -223,6 +224,7 @@ class FSTrace : public ostream { ...@@ -223,6 +224,7 @@ class FSTrace : public ostream {
public: public:
Buffer() Buffer()
{ {
// leave 2 chars room at end: 1 for overflow char and1 for \0
setg(buffer, buffer, &buffer[sizeof(buffer)-2]); setg(buffer, buffer, &buffer[sizeof(buffer)-2]);
setp(buffer, &buffer[sizeof(buffer)-2]); setp(buffer, &buffer[sizeof(buffer)-2]);
} }
...@@ -440,8 +442,8 @@ bool FSH323EndPoint::Initialise(switch_loadable_module_interface_t *iface) ...@@ -440,8 +442,8 @@ bool FSH323EndPoint::Initialise(switch_loadable_module_interface_t *iface)
} }
} }
if (!m_gkAddress.IsEmpty() && !m_gkIdentifer.IsEmpty() && !m_gkInterface.IsEmpty()) { if (!m_gkAddress.IsEmpty()) {
m_thread = new FSGkRegThread(this,&m_gkAddress,&m_gkIdentifer,&m_gkInterface,m_gkretry); m_thread = new FSGkRegThread(this, &m_gkAddress, &m_gkIdentifer, &m_gkInterface, m_gkretry);
m_thread->SetAutoDelete(); m_thread->SetAutoDelete();
m_thread->Resume(); m_thread->Resume();
} }
...@@ -592,6 +594,7 @@ FSH323EndPoint::FSH323EndPoint() ...@@ -592,6 +594,7 @@ FSH323EndPoint::FSH323EndPoint()
:m_faststart(true) :m_faststart(true)
,m_h245tunneling(true) ,m_h245tunneling(true)
,m_h245insetup(true) ,m_h245insetup(true)
,m_dtmfinband(false)
,m_thread(NULL) ,m_thread(NULL)
,m_stop_gk(false) ,m_stop_gk(false)
,m_fax_old_asn(false) ,m_fax_old_asn(false)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论