aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 15:38:29 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-08-30 15:38:29 +0000
commitc80a5a7c3113f995a2b7836f1e518f2a935e29a6 (patch)
tree92a6066ec4bfb8c5a83065ff2bfc7754c3834831 /channels/h323
parentc948ce161eb63c644307d2582e1e8e90dfa9628b (diff)
Add missing checks for the PTRACING define.
(closes issue #10559, paravoid) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81383 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323')
-rw-r--r--channels/h323/ast_h323.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/h323/ast_h323.cxx b/channels/h323/ast_h323.cxx
index d543bf122..f037a8887 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;
@@ -1649,10 +1651,12 @@ void MyH323Connection::OnSendCapabilitySet(H245_TerminalCapabilitySet & pdu)
H245_AudioTelephonyEventCapability & atec = cap;
atec.m_dynamicRTPPayloadType = dtmfCodec;
// on_set_rfc2833_payload(GetCallReference(), (const char *)GetCallToken(), (int)dtmfCodec);
+#ifdef PTRACING
if (h323debug) {
cout << "\t-- Transmitting RFC2833 on payload " <<
atec.m_dynamicRTPPayloadType << endl;
}
+#endif
}
}
}
@@ -1712,9 +1716,11 @@ BOOL MyH323Connection::OnReceivedCapabilitySet(const H323Capabilities & remoteCa
on_set_rfc2833_payload(GetCallReference(), (const char *)GetCallToken(), (int)pt);
if ((dtmfMode == H323_DTMF_RFC2833) && (sendUserInputMode == SendUserInputAsTone))
sendUserInputMode = SendUserInputAsInlineRFC2833;
+#ifdef PTRACING
if (h323debug) {
cout << "\t-- Inbound RFC2833 on payload " << pt << endl;
}
+#endif
}
memset(&prefs, 0, sizeof(prefs));
int peer_capabilities = 0;