aboutsummaryrefslogtreecommitdiffstats
path: root/channels/h323/caps_h323.cxx
diff options
context:
space:
mode:
authorpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-21 19:07:13 +0000
committerpcadach <pcadach@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-21 19:07:13 +0000
commit1c7bc12e4d04a9a02dea127abf9e47ecb5db5a6e (patch)
tree5d87b29deca21c6ddfcc0547d14553efeb10470f /channels/h323/caps_h323.cxx
parent3d1a3d4296f43623be6b937592016119822b6b67 (diff)
Declare our own media formats to not rely on OpenH323 configuration
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43432 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/caps_h323.cxx')
-rw-r--r--channels/h323/caps_h323.cxx81
1 files changed, 81 insertions, 0 deletions
diff --git a/channels/h323/caps_h323.cxx b/channels/h323/caps_h323.cxx
index f200a6471..573d24b90 100644
--- a/channels/h323/caps_h323.cxx
+++ b/channels/h323/caps_h323.cxx
@@ -17,6 +17,87 @@ H323_REGISTER_CAPABILITY(AST_G729ACapability, OPAL_G729A);
H323_REGISTER_CAPABILITY(AST_GSM0610Capability, OPAL_GSM0610);
H323_REGISTER_CAPABILITY(AST_CiscoG726Capability, CISCO_G726r32);
+OPAL_MEDIA_FORMAT_DECLARE(OpalG711ALaw64kFormat,
+ OPAL_G711_ALAW_64K,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::PCMA,
+ TRUE, // Needs jitter
+ 64000, // bits/sec
+ 8, // bytes/frame
+ 8, // 1 millisecond/frame
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalG711uLaw64kFormat,
+ OPAL_G711_ULAW_64K,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::PCMU,
+ TRUE, // Needs jitter
+ 64000, // bits/sec
+ 8, // bytes/frame
+ 8, // 1 millisecond/frame
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalG729Format,
+ OPAL_G729,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::G729,
+ TRUE, // Needs jitter
+ 8000, // bits/sec
+ 10, // bytes
+ 80, // 10 milliseconds
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalG729AFormat,
+ OPAL_G729 "A",
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::G729,
+ TRUE, // Needs jitter
+ 8000, // bits/sec
+ 10, // bytes
+ 80, // 10 milliseconds
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalG7231_6k3Format,
+ OPAL_G7231_6k3,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::G7231,
+ TRUE, // Needs jitter
+ 6400, // bits/sec
+ 24, // bytes
+ 240, // 30 milliseconds
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalG7231A_6k3Format,
+ OPAL_G7231A_6k3,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::G7231,
+ TRUE, // Needs jitter
+ 6400, // bits/sec
+ 24, // bytes
+ 240, // 30 milliseconds
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalGSM0610Format,
+ OPAL_GSM0610,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::GSM,
+ TRUE, // Needs jitter
+ 13200, // bits/sec
+ 33, // bytes
+ 160, // 20 milliseconds
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+OPAL_MEDIA_FORMAT_DECLARE(OpalCiscoG726Format,
+ CISCO_G726r32,
+ OpalMediaFormat::DefaultAudioSessionID,
+ RTP_DataFrame::G726,
+ TRUE, // Needs jitter
+ 32000, // bits/sec
+ 4, // bytes
+ 8, // 1 millisecond
+ OpalMediaFormat::AudioTimeUnits,
+ 0);
+
/*
* Capability: G.711
*/