diff options
author | Paul Cadach <paul@odt.east.telecom.kz> | 2006-09-21 18:48:53 +0000 |
---|---|---|
committer | Paul Cadach <paul@odt.east.telecom.kz> | 2006-09-21 18:48:53 +0000 |
commit | 5acd11f18022b394f4dd999a26f9c66602e91752 (patch) | |
tree | 294862161e1fa9ad9388433e795a8297fc38a729 /channels/h323/caps_h323.h | |
parent | 67142b9d5fd9aa4219dbbefa162d638b57c17b96 (diff) |
Introduce Cisco G.726-32 capability (g726aal2 form)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/h323/caps_h323.h')
-rw-r--r-- | channels/h323/caps_h323.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/channels/h323/caps_h323.h b/channels/h323/caps_h323.h index be63e0230..3238dd5c6 100644 --- a/channels/h323/caps_h323.h +++ b/channels/h323/caps_h323.h @@ -121,4 +121,23 @@ protected: int comfortNoise; int scrambled; }; + +#define CISCO_G726r32 "G726r32" + +class AST_CiscoG726Capability : public H323NonStandardAudioCapability { + PCLASSINFO(AST_CiscoG726Capability, H323NonStandardAudioCapability); + +public: + /* Create a new Cisco G.726 capability */ + AST_CiscoG726Capability(int rx_frames = 80); + + /* Create a copy of the object. */ + virtual PObject * Clone() const; + + /* Create the codec instance, allocating resources as required. */ + virtual H323Codec * CreateCodec(H323Codec::Direction direction) const; + + /* Get the name of the media data format this class represents. */ + virtual PString GetFormatName() const; +}; #endif /* __AST_H323CAPS_H */ |