mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Add missing checks for the PTRACING define.
(closes issue #10559, paravoid) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -287,7 +287,9 @@ int MyH323EndPoint::MyMakeCall(const PString & dest, PString & token, void *_cal
|
|||||||
cout << "\t-- " << GetLocalUserName() << " is calling host " << fullAddress << endl;
|
cout << "\t-- " << GetLocalUserName() << " is calling host " << fullAddress << endl;
|
||||||
cout << "\t-- Call token is " << (const char *)token << endl;
|
cout << "\t-- Call token is " << (const char *)token << endl;
|
||||||
cout << "\t-- Call reference is " << *callReference << endl;
|
cout << "\t-- Call reference is " << *callReference << endl;
|
||||||
|
#ifdef PTRACING
|
||||||
cout << "\t-- DTMF Payload is " << connection->dtmfCodec << endl;
|
cout << "\t-- DTMF Payload is " << connection->dtmfCodec << endl;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
connection->Unlock();
|
connection->Unlock();
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1649,10 +1651,12 @@ void MyH323Connection::OnSendCapabilitySet(H245_TerminalCapabilitySet & pdu)
|
|||||||
H245_AudioTelephonyEventCapability & atec = cap;
|
H245_AudioTelephonyEventCapability & atec = cap;
|
||||||
atec.m_dynamicRTPPayloadType = dtmfCodec;
|
atec.m_dynamicRTPPayloadType = dtmfCodec;
|
||||||
// on_set_rfc2833_payload(GetCallReference(), (const char *)GetCallToken(), (int)dtmfCodec);
|
// on_set_rfc2833_payload(GetCallReference(), (const char *)GetCallToken(), (int)dtmfCodec);
|
||||||
|
#ifdef PTRACING
|
||||||
if (h323debug) {
|
if (h323debug) {
|
||||||
cout << "\t-- Transmitting RFC2833 on payload " <<
|
cout << "\t-- Transmitting RFC2833 on payload " <<
|
||||||
atec.m_dynamicRTPPayloadType << endl;
|
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);
|
on_set_rfc2833_payload(GetCallReference(), (const char *)GetCallToken(), (int)pt);
|
||||||
if ((dtmfMode == H323_DTMF_RFC2833) && (sendUserInputMode == SendUserInputAsTone))
|
if ((dtmfMode == H323_DTMF_RFC2833) && (sendUserInputMode == SendUserInputAsTone))
|
||||||
sendUserInputMode = SendUserInputAsInlineRFC2833;
|
sendUserInputMode = SendUserInputAsInlineRFC2833;
|
||||||
|
#ifdef PTRACING
|
||||||
if (h323debug) {
|
if (h323debug) {
|
||||||
cout << "\t-- Inbound RFC2833 on payload " << pt << endl;
|
cout << "\t-- Inbound RFC2833 on payload " << pt << endl;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
memset(&prefs, 0, sizeof(prefs));
|
memset(&prefs, 0, sizeof(prefs));
|
||||||
int peer_capabilities = 0;
|
int peer_capabilities = 0;
|
||||||
|
Reference in New Issue
Block a user