aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 15:40:18 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 15:40:18 +0000
commit58960ecb700734b6a55d0e7615323c4ec66d0330 (patch)
tree11ff29faebfc44697bcc0b1b4a4ce3828bc178e8
parent152c5b8c57b4514648dd100bf6dd2004c9cd3b8f (diff)
Merged revisions 81383 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r81383 | russell | 2007-08-30 10:38:29 -0500 (Thu, 30 Aug 2007) | 3 lines Add missing checks for the PTRACING define. (closes issue #10559, paravoid) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81384 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/h323/ast_h323.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/channels/h323/ast_h323.cxx b/channels/h323/ast_h323.cxx
index 011e97697..16a3b3a99 100644
--- a/channels/h323/ast_h323.cxx
+++ b/channels/h323/ast_h323.cxx
@@ -287,7 +287,9 @@ int MyH323EndPoint::MyMakeCall(const PString & dest, PString & token, void *_cal
cout << "\t-- " << GetLocalUserName() << " is calling host " << fullAddress << endl;
cout << "\t-- Call token is " << (const char *)token << endl;
cout << "\t-- Call reference is " << *callReference << endl;
+#ifdef PTRACING
cout << "\t-- DTMF Payload is " << connection->dtmfCodec << endl;
+#endif
}
connection->Unlock();
return 0;
@@ -1662,10 +1664,12 @@ void MyH323Connection::OnSendCapabilitySet(H245_TerminalCapabilitySet & pdu)
H245_AudioTelephonyEventCapability & atec = cap;
atec.m_dynamicRTPPayloadType = dtmfCodec[0];
// on_set_rfc2833_payload(GetCallReference(), (const char *)GetCallToken(), (int)dtmfCodec[0]);
+#ifdef PTRACING
if (h323debug) {
cout << "\t-- Receiving RFC2833 on payload " <<
atec.m_dynamicRTPPayloadType << endl;
}
+#endif
}
}
}
@@ -1762,9 +1766,11 @@ BOOL MyH323Connection::OnReceivedCapabilitySet(const H323Capabilities & remoteCa
// if (sendUserInputMode == SendUserInputAsTone)
// sendUserInputMode = SendUserInputAsInlineRFC2833;
}
+#ifdef PTRACING
if (h323debug) {
cout << "\t-- Outbound Cisco RTP DTMF on payload " << pt << endl;
}
+#endif
}
break;
case H323Capability::e_UserInput:
@@ -1775,9 +1781,11 @@ BOOL MyH323Connection::OnReceivedCapabilitySet(const H323Capabilities & remoteCa
// if (sendUserInputMode == SendUserInputAsTone)
// sendUserInputMode = SendUserInputAsInlineRFC2833;
}
+#ifdef PTRACING
if (h323debug) {
cout << "\t-- Outbound RFC2833 on payload " << pt << endl;
}
+#endif
}
break;
#if 0