[asterisk-users] Different codecs for reading and writing

Kevin P. Fleming kpfleming at digium.com
Sun Aug 2 07:17:06 CDT 2009


Tim Panton wrote:

> The protocol expects the 2 ends to agree a single symmetrical codec
> as part of the connection setup, but it doesn't define what actually
> happens
> if the codec specified in the first (full frame) voice packet isn't what
> was agreed.

Asterisk only supports symmetric codec configuration on its internal
channels, so in Asterisk's IAX2 implementation, if a frame is received
from the other endpoint that is not in the 'expected' format a warning
is issued and the outbound direction is automatically switched to the
same format. The same is done for any protocol using RTP in Asterisk.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list