[asterisk-commits] russell: branch 1.4 r81383 - /branches/1.4/channels/h323/ast_h323.cxx
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 30 10:38:29 CDT 2007
Author: russell
Date: Thu Aug 30 10:38:29 2007
New Revision: 81383
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81383
Log:
Add missing checks for the PTRACING define.
(closes issue #10559, paravoid)
Modified:
branches/1.4/channels/h323/ast_h323.cxx
Modified: branches/1.4/channels/h323/ast_h323.cxx
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/h323/ast_h323.cxx?view=diff&rev=81383&r1=81382&r2=81383
==============================================================================
--- branches/1.4/channels/h323/ast_h323.cxx (original)
+++ branches/1.4/channels/h323/ast_h323.cxx Thu Aug 30 10:38:29 2007
@@ -287,7 +287,9 @@
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 @@
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 @@
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;
More information about the asterisk-commits
mailing list