From 91aad204e987f6737040414520698aaec2823598 Mon Sep 17 00:00:00 2001 From: Roger Hardiman Date: Mon, 9 Jul 2001 15:40:52 +0000 Subject: Add two patches which make open gatekeeper compile with the latest pwlib and openh323 libraries --- net/opengatekeeper/files/patch-aa | 45 ++++++++++++++++++++++++++ net/opengatekeeper/files/patch-ab | 68 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 net/opengatekeeper/files/patch-aa create mode 100644 net/opengatekeeper/files/patch-ab (limited to 'net') diff --git a/net/opengatekeeper/files/patch-aa b/net/opengatekeeper/files/patch-aa new file mode 100644 index 000000000000..a8460e99f233 --- /dev/null +++ b/net/opengatekeeper/files/patch-aa @@ -0,0 +1,45 @@ +*** Environ.cxx.orig Mon Jul 9 16:25:04 2001 +--- Environ.cxx Mon Jul 9 16:19:03 2001 +*************** +*** 17,23 **** +--- 17,28 ---- + * + * The Initial Developer of the Original Code is Egoboo Ltd. + * ++ * Contributor(s): Equivalence Pty Ltd ++ * + * $Log: Environ.cxx,v $ ++ * Revision 2.0 2001/04/10 06:23:46 craigs ++ * Initial version from OpenGatekeeper project as of 10 April 2001 ++ * + * Revision 1.4 2000/05/23 10:15:06 aunitt + * Added support for statically defined gateway prefixes. + * +*************** static H225_SupportedPrefix GetPrefix( c +*** 75,81 **** + { + H225_SupportedPrefix Result; + +! Result.m_prefix.SetTag( H225_AliasAddress::e_e164 ); + PASN_IA5String & IA5 = (PASN_IA5String &)Result.m_prefix; + IA5 = PrefixStr; + +--- 80,86 ---- + { + H225_SupportedPrefix Result; + +! Result.m_prefix.SetTag( H225_AliasAddress::e_dialedDigits ); + PASN_IA5String & IA5 = (PASN_IA5String &)Result.m_prefix; + IA5 = PrefixStr; + +*************** void Environ::AddStaticPrefixes( H225_Ga +*** 140,143 **** + VoiceCaps.IncludeOptionalField( H225_VoiceCaps::e_supportedPrefixes ); + VoiceCaps.m_supportedPrefixes = AdditionalPrefixes; + } +! } +--- 145,148 ---- + VoiceCaps.IncludeOptionalField( H225_VoiceCaps::e_supportedPrefixes ); + VoiceCaps.m_supportedPrefixes = AdditionalPrefixes; + } +! } diff --git a/net/opengatekeeper/files/patch-ab b/net/opengatekeeper/files/patch-ab new file mode 100644 index 000000000000..b132487a9e24 --- /dev/null +++ b/net/opengatekeeper/files/patch-ab @@ -0,0 +1,68 @@ +*** EndpointTabl.cxx.orig Mon Jul 9 16:24:58 2001 +--- EndpointTabl.cxx Mon Jul 9 13:12:01 2001 +*************** +*** 17,23 **** +--- 17,28 ---- + * + * The Initial Developer of the Original Code is Egoboo Ltd. + * ++ * Contributor(s): Equivalence Pty Ltd ++ * + * $Log: EndpointTabl.cxx,v $ ++ * Revision 2.0 2001/04/10 06:23:46 craigs ++ * Initial version from OpenGatekeeper project as of 10 April 2001 ++ * + * Revision 1.21 2000/05/25 14:25:30 aunitt + * Fixed bug that stopped gateway prefixes working. + * +*************** static bool IsPrefix( const H225_AliasAd +*** 220,226 **** + // Now check by type + switch ( Prefix.GetTag() ) + { +! case H225_AliasAddress::e_e164 : + PrefixStr = static_cast(Prefix); + AliasStr = static_cast(Alias); + break; +--- 225,231 ---- + // Now check by type + switch ( Prefix.GetTag() ) + { +! case H225_AliasAddress::e_dialedDigits: + PrefixStr = static_cast(Prefix); + AliasStr = static_cast(Alias); + break; +*************** static bool IsPrefix( const H225_AliasAd +*** 235,241 **** + } + switch( PrefixPartyNumber.GetTag() ) + { +! case H225_PartyNumber::e_publicNumber : + { + const H225_PublicPartyNumber & PublicPrefix = PrefixPartyNumber; + const H225_PublicPartyNumber & PublicAlias = AliasPartyNumber; +--- 240,246 ---- + } + switch( PrefixPartyNumber.GetTag() ) + { +! case H225_PartyNumber::e_e164Number: + { + const H225_PublicPartyNumber & PublicPrefix = PrefixPartyNumber; + const H225_PublicPartyNumber & PublicAlias = AliasPartyNumber; +*************** Endpoint EndpointTable::FindByPrefix( co +*** 1080,1086 **** + PWaitAndSignal MutexWait(TableMutex); + for ( PINDEX i=0; i < Alias.GetSize(); ++i ) + { +! if ( ( Alias[i].GetTag() == H225_AliasAddress::e_e164 ) || + ( Alias[i].GetTag() == H225_AliasAddress::e_partyNumber ) + ) + { +--- 1085,1091 ---- + PWaitAndSignal MutexWait(TableMutex); + for ( PINDEX i=0; i < Alias.GetSize(); ++i ) + { +! if ( ( Alias[i].GetTag() == H225_AliasAddress::e_dialedDigits ) || + ( Alias[i].GetTag() == H225_AliasAddress::e_partyNumber ) + ) + { -- cgit v1.2.3