From: Robert J. <rjo...@us...> - 2004-09-24 10:06:34
|
Update of /cvsroot/openh323/opal/src/h323 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25051/src/h323 Modified Files: h323ep.cxx Log Message: Changed default endpoint capabilities to be all possible capabilities if not set explicitly by application before first call. Index: h323ep.cxx =================================================================== RCS file: /cvsroot/openh323/opal/src/h323/h323ep.cxx,v retrieving revision 2.33 retrieving revision 2.34 diff -C2 -d -r2.33 -r2.34 *** h323ep.cxx 14 Aug 2004 07:56:31 -0000 2.33 --- h323ep.cxx 24 Sep 2004 10:06:22 -0000 2.34 *************** *** 28,31 **** --- 28,35 ---- * * $Log$ + * Revision 2.34 2004/09/24 10:06:22 rjongbloed + * Changed default endpoint capabilities to be all possible capabilities if not + * set explicitly by application before first call. + * * Revision 2.33 2004/08/14 07:56:31 rjongbloed * Major revision to utilise the PSafeCollection classes for the connections and calls. *************** *** 861,865 **** H323Capability * H323EndPoint::FindCapability(const H245_Capability & cap) const { ! return capabilities.FindCapability(cap); } --- 865,869 ---- H323Capability * H323EndPoint::FindCapability(const H245_Capability & cap) const { ! return GetCapabilities().FindCapability(cap); } *************** *** 867,871 **** H323Capability * H323EndPoint::FindCapability(const H245_DataType & dataType) const { ! return capabilities.FindCapability(dataType); } --- 871,875 ---- H323Capability * H323EndPoint::FindCapability(const H245_DataType & dataType) const { ! return GetCapabilities().FindCapability(dataType); } *************** *** 874,878 **** unsigned subType) const { ! return capabilities.FindCapability(mainType, subType); } --- 878,882 ---- unsigned subType) const { ! return GetCapabilities().FindCapability(mainType, subType); } *************** *** 919,922 **** --- 923,937 ---- + const H323Capabilities & H323EndPoint::GetCapabilities() const + { + if (capabilities.GetSize() == 0) { + capabilities.AddAllCapabilities(*this, P_MAX_INDEX, P_MAX_INDEX, "*"); + H323_UserInputCapability::AddAllCapabilities(capabilities, P_MAX_INDEX, P_MAX_INDEX); + } + + return capabilities; + } + + BOOL H323EndPoint::UseGatekeeper(const PString & address, const PString & identifier, |