summaryrefslogtreecommitdiff
path: root/channels/h323/cisco-h225.cxx
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-07-04 13:26:37 +0000
committerMatthew Jordan <mjordan@digium.com>2014-07-04 13:26:37 +0000
commit97834718c283d74e3571c1bf52d2840b93157cda (patch)
treea5887ff82e9f3d33c4cc1e64c0f9804dae47c295 /channels/h323/cisco-h225.cxx
parent3bd495a688199c2db5ebc397210f06191aa59581 (diff)
Remove many deprecated modules
Billing records are fair, To get paid is quite bright, You should really use ODBC; Good-bye cdr_sqlite. Microsoft did once push H.323, Hell, we all remember NetMeeting. But try to compile chan_h323 now And you will take quite a beating. The XMPP and SIP war was fierce, And in the distant fray Was birthed res_jabber/chan_jingle; But neither to stay. For everyone did care and chase what Google professed. "Free Internet Calling" was what devotees cried, But Google did change the specs so often That the developers were happy the day chan_gtalk died. And then there was that odd application Dedicated to the Polish tongue. app_saycountpl was subsumed by Say; One could say its bell was rung. To read and parse a file from the dialplan You could (I guess) use an application. app_readfile did fill that purpose, but I think A function is perhaps better in its creation. Barging is rude, I'm not sure why we do it. Inwardly, the caller will probably sigh. But if you really must do it, Don't use app_dahdibarge, use ChanSpy. We all despise the sound of tinny robots It makes our queues so cold. To control such an abomination It's better to not use Wait/SetMusicOnHold. It's often nice to know properties of a channel It makes our calls right We have a nice function called CHANNEL And so SIPCHANINFO is sent off into the night. And now things get odd; Apparently one could delimit with a colon Properties from the SIPPEER function! Commas are in; all others are done. Finally, a word on pipes and commas. We're sorry. We can't say it enough. But those compatibility options in asterisk.conf; To maintain them forever was just too tough. This patch removes: * cdr_sqlite * chan_gtalk * chan_jingle * chan_h323 * res_jabber * app_saycountpl * app_readfile * app_dahdibarge It removes the following applications/functions: * WaitMusicOnHold * SetMusicOnHold * SIPCHANINFO It removes the colon delimiter from the SIPPEER function. Finally, it also removes all compatibility options that were configurable from asterisk.conf, as these all applied to compatibility with Asterisk 1.4 systems. Review: https://reviewboard.asterisk.org/r/3698/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323/cisco-h225.cxx')
-rw-r--r--channels/h323/cisco-h225.cxx853
1 files changed, 0 insertions, 853 deletions
diff --git a/channels/h323/cisco-h225.cxx b/channels/h323/cisco-h225.cxx
deleted file mode 100644
index dac96a4e8..000000000
--- a/channels/h323/cisco-h225.cxx
+++ /dev/null
@@ -1,853 +0,0 @@
-//
-// cisco-h225.cxx
-//
-// Code automatically generated by asnparse.
-//
-
-#ifdef P_USE_PRAGMA
-#pragma implementation "cisco-h225.h"
-#endif
-
-#include <ptlib.h>
-#include "cisco-h225.h"
-
-#define new PNEW
-
-
-#if ! H323_DISABLE_CISCO_H225
-
-//
-// RedirectIEinfo
-//
-
-CISCO_H225_RedirectIEinfo::CISCO_H225_RedirectIEinfo(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_RedirectIEinfo::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+13) << "redirectIE = " << setprecision(indent) << m_redirectIE << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_RedirectIEinfo::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_RedirectIEinfo), PInvalidCast);
-#endif
- const CISCO_H225_RedirectIEinfo & other = (const CISCO_H225_RedirectIEinfo &)obj;
-
- Comparison result;
-
- if ((result = m_redirectIE.Compare(other.m_redirectIE)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_RedirectIEinfo::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_redirectIE.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_RedirectIEinfo::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_redirectIE.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_RedirectIEinfo::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_redirectIE.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_RedirectIEinfo::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_RedirectIEinfo::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_RedirectIEinfo(*this);
-}
-
-
-//
-// ProgIndIEinfo
-//
-
-CISCO_H225_ProgIndIEinfo::CISCO_H225_ProgIndIEinfo(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_ProgIndIEinfo::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+12) << "progIndIE = " << setprecision(indent) << m_progIndIE << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_ProgIndIEinfo::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_ProgIndIEinfo), PInvalidCast);
-#endif
- const CISCO_H225_ProgIndIEinfo & other = (const CISCO_H225_ProgIndIEinfo &)obj;
-
- Comparison result;
-
- if ((result = m_progIndIE.Compare(other.m_progIndIE)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_ProgIndIEinfo::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_progIndIE.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_ProgIndIEinfo::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_progIndIE.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_ProgIndIEinfo::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_progIndIE.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_ProgIndIEinfo::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_ProgIndIEinfo::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_ProgIndIEinfo(*this);
-}
-
-
-//
-// QsigNonStdInfo
-//
-
-CISCO_H225_QsigNonStdInfo::CISCO_H225_QsigNonStdInfo(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_QsigNonStdInfo::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+6) << "iei = " << setprecision(indent) << m_iei << '\n';
- strm << setw(indent+10) << "rawMesg = " << setprecision(indent) << m_rawMesg << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_QsigNonStdInfo::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_QsigNonStdInfo), PInvalidCast);
-#endif
- const CISCO_H225_QsigNonStdInfo & other = (const CISCO_H225_QsigNonStdInfo &)obj;
-
- Comparison result;
-
- if ((result = m_iei.Compare(other.m_iei)) != EqualTo)
- return result;
- if ((result = m_rawMesg.Compare(other.m_rawMesg)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_QsigNonStdInfo::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_iei.GetObjectLength();
- length += m_rawMesg.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_QsigNonStdInfo::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_iei.Decode(strm))
- return FALSE;
- if (!m_rawMesg.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_QsigNonStdInfo::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_iei.Encode(strm);
- m_rawMesg.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_QsigNonStdInfo::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_QsigNonStdInfo::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_QsigNonStdInfo(*this);
-}
-
-
-//
-// CallMgrParam
-//
-
-CISCO_H225_CallMgrParam::CISCO_H225_CallMgrParam(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_CallMgrParam::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+22) << "interclusterVersion = " << setprecision(indent) << m_interclusterVersion << '\n';
- strm << setw(indent+15) << "enterpriseID = " << setprecision(indent) << m_enterpriseID << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_CallMgrParam::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_CallMgrParam), PInvalidCast);
-#endif
- const CISCO_H225_CallMgrParam & other = (const CISCO_H225_CallMgrParam &)obj;
-
- Comparison result;
-
- if ((result = m_interclusterVersion.Compare(other.m_interclusterVersion)) != EqualTo)
- return result;
- if ((result = m_enterpriseID.Compare(other.m_enterpriseID)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_CallMgrParam::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_interclusterVersion.GetObjectLength();
- length += m_enterpriseID.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_CallMgrParam::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_interclusterVersion.Decode(strm))
- return FALSE;
- if (!m_enterpriseID.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_CallMgrParam::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_interclusterVersion.Encode(strm);
- m_enterpriseID.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_CallMgrParam::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_CallMgrParam::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_CallMgrParam(*this);
-}
-
-
-//
-// CallPreserveParam
-//
-
-CISCO_H225_CallPreserveParam::CISCO_H225_CallPreserveParam(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_CallPreserveParam::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+17) << "callPreserveIE = " << setprecision(indent) << m_callPreserveIE << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_CallPreserveParam::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_CallPreserveParam), PInvalidCast);
-#endif
- const CISCO_H225_CallPreserveParam & other = (const CISCO_H225_CallPreserveParam &)obj;
-
- Comparison result;
-
- if ((result = m_callPreserveIE.Compare(other.m_callPreserveIE)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_CallPreserveParam::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_callPreserveIE.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_CallPreserveParam::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_callPreserveIE.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_CallPreserveParam::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_callPreserveIE.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_CallPreserveParam::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_CallPreserveParam::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_CallPreserveParam(*this);
-}
-
-
-//
-// CallSignallingParam
-//
-
-CISCO_H225_CallSignallingParam::CISCO_H225_CallSignallingParam(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 1, TRUE, 0)
-{
- m_connectedNumber.SetConstraints(PASN_Object::FixedConstraint, 1, 127);
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_CallSignallingParam::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- if (HasOptionalField(e_connectedNumber))
- strm << setw(indent+18) << "connectedNumber = " << setprecision(indent) << m_connectedNumber << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_CallSignallingParam::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_CallSignallingParam), PInvalidCast);
-#endif
- const CISCO_H225_CallSignallingParam & other = (const CISCO_H225_CallSignallingParam &)obj;
-
- Comparison result;
-
- if ((result = m_connectedNumber.Compare(other.m_connectedNumber)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_CallSignallingParam::GetDataLength() const
-{
- PINDEX length = 0;
- if (HasOptionalField(e_connectedNumber))
- length += m_connectedNumber.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_CallSignallingParam::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (HasOptionalField(e_connectedNumber) && !m_connectedNumber.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_CallSignallingParam::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- if (HasOptionalField(e_connectedNumber))
- m_connectedNumber.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_CallSignallingParam::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_CallSignallingParam::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_CallSignallingParam(*this);
-}
-
-
-//
-// CommonParam
-//
-
-CISCO_H225_CommonParam::CISCO_H225_CommonParam(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_CommonParam::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+17) << "redirectIEinfo = " << setprecision(indent) << m_redirectIEinfo << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_CommonParam::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_CommonParam), PInvalidCast);
-#endif
- const CISCO_H225_CommonParam & other = (const CISCO_H225_CommonParam &)obj;
-
- Comparison result;
-
- if ((result = m_redirectIEinfo.Compare(other.m_redirectIEinfo)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_CommonParam::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_redirectIEinfo.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_CommonParam::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_redirectIEinfo.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_CommonParam::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_redirectIEinfo.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_CommonParam::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_CommonParam::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_CommonParam(*this);
-}
-
-
-//
-// ProgIndParam
-//
-
-CISCO_H225_ProgIndParam::CISCO_H225_ProgIndParam(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_ProgIndParam::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+16) << "progIndIEinfo = " << setprecision(indent) << m_progIndIEinfo << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_ProgIndParam::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_ProgIndParam), PInvalidCast);
-#endif
- const CISCO_H225_ProgIndParam & other = (const CISCO_H225_ProgIndParam &)obj;
-
- Comparison result;
-
- if ((result = m_progIndIEinfo.Compare(other.m_progIndIEinfo)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_ProgIndParam::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_progIndIEinfo.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_ProgIndParam::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_progIndIEinfo.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_ProgIndParam::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_progIndIEinfo.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_ProgIndParam::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_ProgIndParam::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_ProgIndParam(*this);
-}
-
-
-//
-// ProtoParam
-//
-
-CISCO_H225_ProtoParam::CISCO_H225_ProtoParam(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 0, TRUE, 0)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_ProtoParam::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- strm << setw(indent+17) << "qsigNonStdInfo = " << setprecision(indent) << m_qsigNonStdInfo << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_ProtoParam::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_ProtoParam), PInvalidCast);
-#endif
- const CISCO_H225_ProtoParam & other = (const CISCO_H225_ProtoParam &)obj;
-
- Comparison result;
-
- if ((result = m_qsigNonStdInfo.Compare(other.m_qsigNonStdInfo)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_ProtoParam::GetDataLength() const
-{
- PINDEX length = 0;
- length += m_qsigNonStdInfo.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_ProtoParam::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (!m_qsigNonStdInfo.Decode(strm))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_ProtoParam::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- m_qsigNonStdInfo.Encode(strm);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_ProtoParam::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_ProtoParam::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_ProtoParam(*this);
-}
-
-
-//
-// H323_UU_NonStdInfo
-//
-
-CISCO_H225_H323_UU_NonStdInfo::CISCO_H225_H323_UU_NonStdInfo(unsigned tag, PASN_Object::TagClass tagClass)
- : PASN_Sequence(tag, tagClass, 3, TRUE, 6)
-{
-}
-
-
-#ifndef PASN_NOPRINTON
-void CISCO_H225_H323_UU_NonStdInfo::PrintOn(ostream & strm) const
-{
- int indent = strm.precision() + 2;
- strm << "{\n";
- if (HasOptionalField(e_version))
- strm << setw(indent+10) << "version = " << setprecision(indent) << m_version << '\n';
- if (HasOptionalField(e_protoParam))
- strm << setw(indent+13) << "protoParam = " << setprecision(indent) << m_protoParam << '\n';
- if (HasOptionalField(e_commonParam))
- strm << setw(indent+14) << "commonParam = " << setprecision(indent) << m_commonParam << '\n';
- if (HasOptionalField(e_dummy1))
- strm << setw(indent+9) << "dummy1 = " << setprecision(indent) << m_dummy1 << '\n';
- if (HasOptionalField(e_progIndParam))
- strm << setw(indent+15) << "progIndParam = " << setprecision(indent) << m_progIndParam << '\n';
- if (HasOptionalField(e_callMgrParam))
- strm << setw(indent+15) << "callMgrParam = " << setprecision(indent) << m_callMgrParam << '\n';
- if (HasOptionalField(e_callSignallingParam))
- strm << setw(indent+22) << "callSignallingParam = " << setprecision(indent) << m_callSignallingParam << '\n';
- if (HasOptionalField(e_dummy2))
- strm << setw(indent+9) << "dummy2 = " << setprecision(indent) << m_dummy2 << '\n';
- if (HasOptionalField(e_callPreserveParam))
- strm << setw(indent+20) << "callPreserveParam = " << setprecision(indent) << m_callPreserveParam << '\n';
- strm << setw(indent-1) << setprecision(indent-2) << "}";
-}
-#endif
-
-
-PObject::Comparison CISCO_H225_H323_UU_NonStdInfo::Compare(const PObject & obj) const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(PIsDescendant(&obj, CISCO_H225_H323_UU_NonStdInfo), PInvalidCast);
-#endif
- const CISCO_H225_H323_UU_NonStdInfo & other = (const CISCO_H225_H323_UU_NonStdInfo &)obj;
-
- Comparison result;
-
- if ((result = m_version.Compare(other.m_version)) != EqualTo)
- return result;
- if ((result = m_protoParam.Compare(other.m_protoParam)) != EqualTo)
- return result;
- if ((result = m_commonParam.Compare(other.m_commonParam)) != EqualTo)
- return result;
-
- return PASN_Sequence::Compare(other);
-}
-
-
-PINDEX CISCO_H225_H323_UU_NonStdInfo::GetDataLength() const
-{
- PINDEX length = 0;
- if (HasOptionalField(e_version))
- length += m_version.GetObjectLength();
- if (HasOptionalField(e_protoParam))
- length += m_protoParam.GetObjectLength();
- if (HasOptionalField(e_commonParam))
- length += m_commonParam.GetObjectLength();
- return length;
-}
-
-
-PBoolean CISCO_H225_H323_UU_NonStdInfo::Decode(PASN_Stream & strm)
-{
- if (!PreambleDecode(strm))
- return FALSE;
-
- if (HasOptionalField(e_version) && !m_version.Decode(strm))
- return FALSE;
- if (HasOptionalField(e_protoParam) && !m_protoParam.Decode(strm))
- return FALSE;
- if (HasOptionalField(e_commonParam) && !m_commonParam.Decode(strm))
- return FALSE;
- if (!KnownExtensionDecode(strm, e_dummy1, m_dummy1))
- return FALSE;
- if (!KnownExtensionDecode(strm, e_progIndParam, m_progIndParam))
- return FALSE;
- if (!KnownExtensionDecode(strm, e_callMgrParam, m_callMgrParam))
- return FALSE;
- if (!KnownExtensionDecode(strm, e_callSignallingParam, m_callSignallingParam))
- return FALSE;
- if (!KnownExtensionDecode(strm, e_dummy2, m_dummy2))
- return FALSE;
- if (!KnownExtensionDecode(strm, e_callPreserveParam, m_callPreserveParam))
- return FALSE;
-
- return UnknownExtensionsDecode(strm);
-}
-
-
-void CISCO_H225_H323_UU_NonStdInfo::Encode(PASN_Stream & strm) const
-{
- PreambleEncode(strm);
-
- if (HasOptionalField(e_version))
- m_version.Encode(strm);
- if (HasOptionalField(e_protoParam))
- m_protoParam.Encode(strm);
- if (HasOptionalField(e_commonParam))
- m_commonParam.Encode(strm);
- KnownExtensionEncode(strm, e_dummy1, m_dummy1);
- KnownExtensionEncode(strm, e_progIndParam, m_progIndParam);
- KnownExtensionEncode(strm, e_callMgrParam, m_callMgrParam);
- KnownExtensionEncode(strm, e_callSignallingParam, m_callSignallingParam);
- KnownExtensionEncode(strm, e_dummy2, m_dummy2);
- KnownExtensionEncode(strm, e_callPreserveParam, m_callPreserveParam);
-
- UnknownExtensionsEncode(strm);
-}
-
-
-PObject * CISCO_H225_H323_UU_NonStdInfo::Clone() const
-{
-#ifndef PASN_LEANANDMEAN
- PAssert(IsClass(CISCO_H225_H323_UU_NonStdInfo::Class()), PInvalidCast);
-#endif
- return new CISCO_H225_H323_UU_NonStdInfo(*this);
-}
-
-
-#endif // if ! H323_DISABLE_CISCO_H225
-
-
-// End of cisco-h225.cxx