Index: ast_h323.cpp =================================================================== RCS file: /usr/cvsroot/asterisk/channels/h323/ast_h323.cpp,v retrieving revision 1.25 diff -u -r1.25 ast_h323.cpp --- ast_h323.cpp 22 Sep 2003 06:21:03 -0000 1.25 +++ ast_h323.cpp 23 Oct 2003 01:07:02 -0000 @@ -100,8 +100,12 @@ #define H323_NAME OPAL_G7231_6k3"{sw}" +#define H323_G729 OPAL_G729 "{sw}" +#define H323_G729A OPAL_G729A"{sw}" H323_REGISTER_CAPABILITY(H323_G7231Capability, H323_NAME); +H323_REGISTER_CAPABILITY(H323_G729Capability, H323_G729); +H323_REGISTER_CAPABILITY(H323_G729ACapability, H323_G729A); H323_G7231Capability::H323_G7231Capability(BOOL annexA_) : H323AudioCapability(7, 4) @@ -173,6 +177,68 @@ return NULL; } + +///////////////////////////////////////////////////////////////////////////// + +H323_G729Capability::H323_G729Capability() + : H323AudioCapability(24, 6) +{ +} + + +PObject * H323_G729Capability::Clone() const +{ + return new H323_G729Capability(*this); +} + + +unsigned H323_G729Capability::GetSubType() const +{ + return H245_AudioCapability::e_g729; +} + + +PString H323_G729Capability::GetFormatName() const +{ + return H323_G729; +} + + +H323Codec * H323_G729Capability::CreateCodec(H323Codec::Direction direction) const +{ + return NULL; +} +///////////////////////////////////////////////////////////////////////////// + +H323_G729ACapability::H323_G729ACapability() + : H323AudioCapability(24, 6) +{ +} + + +PObject * H323_G729ACapability::Clone() const +{ + return new H323_G729ACapability(*this); +} + + +unsigned H323_G729ACapability::GetSubType() const +{ + return H245_AudioCapability::e_g729AnnexA; +} + + +PString H323_G729ACapability::GetFormatName() const +{ + return H323_G729A; +} + + +H323Codec * H323_G729ACapability::CreateCodec(H323Codec::Direction direction) const +{ + return NULL; +} + /** MyH323EndPoint * The fullAddress parameter is used directly in the MakeCall method so * the General form for the fullAddress argument is : @@ -810,6 +876,8 @@ if (cap & AST_FORMAT_G729A) { H323_G729ACapability *g729aCap; endPoint->SetCapability(0, 0, g729aCap = new H323_G729ACapability); + H323_G729Capability *g729Cap; + endPoint->SetCapability(0, 0, g729Cap = new H323_G729Capability); } #endif