Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Aug 17, 2018
1 parent faaeabf commit 0b9d723
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 42 deletions.
34 changes: 5 additions & 29 deletions RasTbl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1571,24 +1571,6 @@ int GatewayRec::PrefixMatch(
return -1;
}

/*
void GatewayRec::BuildLCF(H225_LocationConfirm & obj_lcf) const
{
EndpointRec::BuildLCF(obj_lcf);
if (PINDEX as = Prefixes.size()) {
obj_lcf.IncludeOptionalField(H225_LocationConfirm::e_supportedProtocols);
obj_lcf.m_supportedProtocols.SetSize(1);
H225_SupportedProtocols &protocol = obj_lcf.m_supportedProtocols[0];
protocol.SetTag(H225_SupportedProtocols::e_voice);
H225_ArrayOf_SupportedPrefix & supportedPrefixes = ((H225_VoiceCaps &)protocol).m_supportedPrefixes;
supportedPrefixes.SetSize(as);
const_prefix_iterator Iter = Prefixes.begin();
for (PINDEX p = 0; p < as; ++p, ++Iter)
H323SetAliasAddress(PString(Iter->c_str()), supportedPrefixes[p].m_prefix);
}
}
*/

PString GatewayRec::PrintOn(bool verbose) const
{
PString msg = EndpointRec::PrintOn(verbose);
Expand Down Expand Up @@ -5447,15 +5429,11 @@ void CallTable::CheckRTPInactive()

#ifdef HAS_H460

static PTextFile* OpenQoSFile(const PFilePath & fn)
static PTextFile * OpenQoSFile(const PFilePath & fn)
{
PTextFile* qosFile = new PTextFile(fn, PFile::ReadWrite,
PFile::Create | PFile::DenySharedWrite
);
PTextFile* qosFile = new PTextFile(fn, PFile::ReadWrite, PFile::Create | PFile::DenySharedWrite);
if (!qosFile->IsOpen()) {
PTRACE(1, "QoS\tCould not open log file "
<< fn << "\" :" << qosFile->GetErrorText()
);
PTRACE(1, "QoS\tCould not open log file " << fn << "\" :" << qosFile->GetErrorText());
delete qosFile;
return NULL;
}
Expand All @@ -5471,7 +5449,7 @@ void CallTable::OnQosMonitoringReport(const PString & conference, const endptr &

H4609_ArrayOf_RTCPMeasures report;

if (qosdata.GetTag() == H4609_QosMonitoringReportData::e_periodic) {
if (qosdata.GetTag() == H4609_QosMonitoringReportData::e_periodic) {
H4609_PeriodicQoSMonReport & rep = qosdata;
H4609_ArrayOf_PerCallQoSReport & percall = rep.m_perCallInfo;
report = percall[0].m_mediaChannelsQoS;
Expand Down Expand Up @@ -5602,7 +5580,6 @@ void CallTable::OnQosMonitoringReport(const PString & conference, const endptr &
params["t"] = nowtime.AsString();

toolkit->QoS().PostRecord(params);
//return; // disabled: allow DB plus file to be active at same time
}
#endif // HAS_DATABASE

Expand Down Expand Up @@ -5676,12 +5653,11 @@ void CallTable::QoSReport(const H225_DisengageRequest & obj_drq, const endptr &
&& ((report.GetTag() == H4609_QosMonitoringReportData::e_final) || (report.GetTag() == H4609_QosMonitoringReportData::e_periodic))) {
PTRACE(5, "QoS\tReport " << report);
OnQosMonitoringReport(AsString(obj_drq.m_conferenceID), ep, report);

} else {
PTRACE(4, "QoS\tDRQ Call Statistics decode failure");
}
}
#endif
#endif // HAS_H460

void CallTable::RemoveCall(const H225_DisengageRequest & obj_drq, const endptr & ep)
{
Expand Down
16 changes: 3 additions & 13 deletions RasTbl.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class EndpointRec
*/
EndpointRec(
/// RRQ, ARQ, ACF or LCF that contains a description of the endpoint
const H225_RasMessage& ras,
const H225_RasMessage & ras,
/// permanent endpoint flag
bool permanent = false
);
Expand Down Expand Up @@ -180,9 +180,6 @@ class EndpointRec
virtual EndpointRec *Unregister();
virtual EndpointRec *Expired();

//virtual void BuildACF(H225_AdmissionConfirm &) const;
//virtual void BuildLCF(H225_LocationConfirm &) const;

virtual PString PrintOn(bool verbose) const;
PString PrintPrefixCapacities() const;
PString PrintNatInfo(bool verbose) const;
Expand Down Expand Up @@ -491,8 +488,6 @@ class GatewayRec : public EndpointRec {
int & priority
) const;

//virtual void BuildLCF(H225_LocationConfirm &) const;

virtual PString PrintOn(bool verbose) const;

void AddPrefixes(const H225_ArrayOf_SupportedProtocols &);
Expand Down Expand Up @@ -690,9 +685,6 @@ class H46019KeepAlive
// record of one active call
#ifdef HAS_H460
class H4609_QosMonitoringReportData;
#ifdef HAS_H46024B
class H323TransportAddress;
#endif // HAS_H46024B
#endif // HAS_H460

#ifdef HAS_H46018
Expand Down Expand Up @@ -1730,8 +1722,6 @@ typedef CallRec::Ptr callptr;

// all active calls

class H4609_QosMonitoringReportData;

class CallTable : public Singleton<CallTable>
{
public:
Expand Down Expand Up @@ -1779,7 +1769,7 @@ class CallTable : public Singleton<CallTable>
void PrintCallInfo(USocket *client, const PString & callid) const;

#ifdef HAS_H460
void OnQosMonitoringReport(const PString &,const endptr &, H4609_QosMonitoringReportData &);
void OnQosMonitoringReport(const PString &, const endptr &, H4609_QosMonitoringReportData &);
void QoSReport(const H225_DisengageRequest &, const endptr &, const PASN_OctetString &);
void QoSReport(const H225_InfoRequestResponse &, const callptr &, const endptr &, const PASN_OctetString &);
#endif
Expand All @@ -1790,7 +1780,7 @@ class CallTable : public Singleton<CallTable>

PINDEX Size() const { return m_activeCall; } // number of currently active calls
unsigned TotalCallCount() const { return m_CallCount; } // number of calls since startup
unsigned SuccessfulCallCount() const { return m_successCall; } // number of succesfull calls since startup
unsigned SuccessfulCallCount() const { return m_successCall; } // number of successful calls since startup

/** @return
Timeout value for a signaling channel to be opened after ACF
Expand Down

0 comments on commit 0b9d723

Please sign in to comment.