]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix to build with trunk changes.
authorGeorgiewskiy Yuriy <bottleman@icf.org.ru>
Sun, 22 Nov 2009 17:06:34 +0000 (17:06 +0000)
committerGeorgiewskiy Yuriy <bottleman@icf.org.ru>
Sun, 22 Nov 2009 17:06:34 +0000 (17:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15605 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_h323/changes.txt
src/mod/endpoints/mod_h323/mod_h323.cpp

index a34bc50c23634528e71a2628cff1aa66af14530c..26843475140ad0abf00037f8c7716c0efe2a9316 100644 (file)
@@ -1,4 +1,5 @@
 
+fix to build with trunk changes.
 remove SWITCH_RTP_FLAG_AUTOADJ because its not work correctly and not do anything reliable in our cases.
 fix faststart in progress handling
 fixxxxes
index 045c59b02ab1aaf82328585f25760ca00a612d85..7bec466125ebaaba20381828670630867577f5a0 100644 (file)
@@ -1,5 +1,5 @@
 /*
-       Version 0.0.12
+       Version 0.0.13
 */
 
 #include "mod_h323.h"
@@ -18,7 +18,7 @@ struct mod_h323_globals mod_h323_globals = { 0 };
 
 static switch_call_cause_t create_outgoing_channel(switch_core_session_t *session, switch_event_t *var_event,
                                                    switch_caller_profile_t *outbound_profile, switch_core_session_t **new_session,
-                                                   switch_memory_pool_t **pool, switch_originate_flag_t flags);
+                                                   switch_memory_pool_t **pool, switch_originate_flag_t flags, switch_call_cause_t *cancel_cause);
 
 static const char modulename[] = "h323";
 static const char* h323_formats[] = {
@@ -755,7 +755,7 @@ PBoolean FSH323Connection::OnCreateLogicalChannel(const H323Capability& capabili
 void FSH323Connection::OnReceivedReleaseComplete(const H323SignalPDU & pdu){
        PTRACE(4, "mod_h323\t======>FSH323Connection::OnReceivedReleaseComplete cause = "<<pdu.GetQ931().GetCause()<<" value = "<<(switch_call_cause_t)pdu.GetQ931().GetCause());
        h323_private_t *tech_pvt = (h323_private_t *) switch_core_session_get_private(m_fsSession);
-       
+       tech_pvt->me = NULL;
        switch_channel_hangup(switch_core_session_get_channel(m_fsSession),(switch_call_cause_t)pdu.GetQ931().GetCause()); 
        return H323Connection::OnReceivedReleaseComplete(pdu);
 }
@@ -903,7 +903,7 @@ void FSH323Connection::OnUserInputTone(char tone, unsigned duration, unsigned lo
 void FSH323Connection::OnUserInputString(const PString &value)
 {
        PTRACE(4, "mod_h323\t======>FSH323Connection::OnUserInputString [" << *this<<"]");
-       switch_dtmf_t dtmf = { value[0], 0 };
+       switch_dtmf_t dtmf = { value[0], 500 };
     switch_channel_queue_dtmf(m_fsChannel, &dtmf);
        H323Connection::OnUserInputString(value);
 }
@@ -1381,7 +1381,7 @@ FSH323Connection * FSH323EndPoint::FSMakeCall(const PString & dest, void *userDa
 static switch_call_cause_t create_outgoing_channel(switch_core_session_t *session,
                                                    switch_event_t *var_event,
                                                    switch_caller_profile_t *outbound_profile,
-                                                   switch_core_session_t **new_session, switch_memory_pool_t **pool, switch_originate_flag_t flags){
+                                                   switch_core_session_t **new_session, switch_memory_pool_t **pool, switch_originate_flag_t flags, switch_call_cause_t *cancel_cause){
        PTRACE(4, "mod_h323\t======>create_outgoing_channel DST NUMBER = "<<outbound_profile->destination_number);
        
        FSH323Connection * connection;