[asterisk-dev] Channel parameters regarding the codec

Ceschia, Marcello marcello.ceschia at gmx.net
Tue Aug 16 11:49:18 CDT 2011


Thanks for this explanation.
Does it mean I can not have a single read and a different write format?

On 01. August 2011 09:20:22 David Vossel wrote:
> ----- Original Message -----
> > From: "Nikhil" nikhil at cem-solutions.net>
> > To: asterisk-dev at lists.digium.com
> > Sent: Monday, August 1, 2011 8:38:48 AM
> > Subject: [asterisk-dev] Channel parameters regarding the codec
> > Hi
> > In asterisk channel ,I so number of variable regarding the Codec ,Can
> > anyone explain what are those variable variable means.Below are the
> > variables
> > 
> > 1. chan->readformat
> > 
> 
> The current audio format that all audio being read from the channel will result in.
> 
> > 2. chan->writeformat
> 
> The current audio format all audio being written to a channel must be encoded as.
> 
> > 
> > 3. chan ->rawreadformat
> 
> The actual read audio format the underlying channel tech is supplying the channel with.  This may or may not be the same as the readformat.  When the readformat and rawreadformat are different, a translation path is 
constructed.
> 
> > 
> > 4. chan ->rawwriteformat
> 
> The actual write audio format the underlying channel tech is writing out to the network.  When the writeformat and rawwriteformat is different, a translation path is created.
> 
> > 
> > 5. chan->nativeformats
> 
> A set of audio, video, and text media formats a channel's underlying technology is capable of handling without any translation paths.  raw read and raw write audio formats are picked from this field.
> 
> > 
> > Thanks
> > Nikhil
> > 
> 
> The whole point of these structures is to allow channels to with differing audio formats to become compatible with one another. We can't change the audio formats a channel's technology private is capable of understanding, but 
we can build translation paths to get there.
> 
> Hope this helps.
> 
> ~David
> 
> 



More information about the asterisk-dev mailing list