[asterisk-scf-commits] asterisk-scf/integration/mediaformatgeneric.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Jun 20 17:18:06 CDT 2011
branch "master" has been updated
via 64715c6cf02d0aeb7ce63ca31712394eba965c0d (commit)
from bdb885e24930692ceb8568356ab9d5c09378e1e7 (commit)
Summary of changes:
config/MediaFormatGeneric.config | 5 ++++-
config/MediaFormatGenericConfigurator.py | 6 ++++++
2 files changed, 10 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 64715c6cf02d0aeb7ce63ca31712394eba965c0d
Author: Joshua Colp <jcolp at digium.com>
Date: Mon Jun 20 19:17:49 2011 -0300
Add support for specifying additional parameters and also switch bob to be a video codec.
diff --git a/config/MediaFormatGeneric.config b/config/MediaFormatGeneric.config
index 7e550d9..03d77c0 100644
--- a/config/MediaFormatGeneric.config
+++ b/config/MediaFormatGeneric.config
@@ -2,7 +2,7 @@
[bob8]
# Type of media this format is for, valid options are audio and video
-type=audio
+type=video
# RTP payload for this format
payload=101
@@ -12,3 +12,6 @@ subtype=BOB
# Sample rate, obviously
samplerate=8000
+
+# Additional parameters for the SDP
+parameters=fmtp:101 awesome
diff --git a/config/MediaFormatGenericConfigurator.py b/config/MediaFormatGenericConfigurator.py
index f135e28..efbf0ed 100755
--- a/config/MediaFormatGenericConfigurator.py
+++ b/config/MediaFormatGenericConfigurator.py
@@ -43,6 +43,12 @@ class MediaFormatGenericSectionVisitors(Configurator.SectionVisitors):
format.descriptor.type = config.get(section, 'type')
format.descriptor.subtype = config.get(section, 'subtype')
format.descriptor.samplerate = config.getint(section, 'samplerate')
+ format.descriptor.parameters = []
+
+ # Add parameters if specified
+ parameters = config.get(section, 'parameters')
+ if parameters:
+ format.descriptor.parameters.append(parameters)
# Populate the Media format concrete class
if format.descriptor.type == 'audio':
-----------------------------------------------------------------------
--
asterisk-scf/integration/mediaformatgeneric.git
More information about the asterisk-scf-commits
mailing list