Index: ast_h323.h =================================================================== RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.h,v retrieving revision 1.11 diff -u -r1.11 ast_h323.h --- ast_h323.h 22 Sep 2003 23:19:27 -0000 1.11 +++ ast_h323.h 23 Oct 2003 01:08:53 -0000 @@ -98,6 +98,100 @@ BOOL annexA; }; +/**This class describes the (fake) G729 codec capability. + */ +class H323_G729Capability : public H323AudioCapability +{ + PCLASSINFO(H323_G729Capability, H323AudioCapability); + + public: + /**@name Construction */ + //@{ + /**Create a new G.729 capability. + */ + H323_G729Capability(); + //@} + + /**@name Overrides from class PObject */ + //@{ + /**Create a copy of the object. + */ + virtual PObject * Clone() const; + //@} + + /**@name Operations */ + //@{ + /**Create the codec instance, allocating resources as required. + */ + virtual H323Codec * CreateCodec( + H323Codec::Direction direction /// Direction in which this instance runs + ) const; + //@} + + /**@name Identification functions */ + //@{ + /**Get the sub-type of the capability. This is a code dependent on the + main type of the capability. + + This returns one of the four possible combinations of mode and speed + using the enum values of the protocol ASN H245_AudioCapability class. + */ + virtual unsigned GetSubType() const; + + /**Get the name of the media data format this class represents. + */ + virtual PString GetFormatName() const; + //@} +}; + + +/**This class describes the VoiceAge G729A codec capability. + */ +class H323_G729ACapability : public H323AudioCapability +{ + PCLASSINFO(H323_G729ACapability, H323AudioCapability); + + public: + /**@name Construction */ + //@{ + /**Create a new G.729A capability. + */ + H323_G729ACapability(); + //@} + + /**@name Overrides from class PObject */ + //@{ + /**Create a copy of the object. + */ + virtual PObject * Clone() const; + //@} + + /**@name Operations */ + //@{ + /**Create the codec instance, allocating resources as required. + */ + virtual H323Codec * CreateCodec( + H323Codec::Direction direction /// Direction in which this instance runs + ) const; + //@} + + /**@name Identification functions */ + //@{ + /**Get the sub-type of the capability. This is a code dependent on the + main type of the capability. + + This returns one of the four possible combinations of mode and speed + using the enum values of the protocol ASN H245_AudioCapability class. + */ + virtual unsigned GetSubType() const; + + /**Get the name of the media data format this class represents. + */ + virtual PString GetFormatName() const; + //@} +}; + + class MyH323EndPoint : public H323EndPoint { PCLASSINFO(MyH323EndPoint, H323EndPoint);