[asterisk-users] Codec negotiation
Steve Davies
davies147 at gmail.com
Tue Jun 29 11:51:30 CDT 2010
On 26 June 2010 22:08, Ryan Wagoner <rswagoner at gmail.com> wrote:
> I have Polycom phones that support the g722 codec. Adding allow=g722
> to the [general] section of sip.conf works great and I can make calls
> between the phones using g722. However Asterisk is negotiating g722
> for calls going out my voip provider and transcoding these to ulaw. In
> sip.conf for the provider I have deny=all and allow=ulaw. This can
> cause potential audio degrading and wastes cpu cycles. If Asterisk
> knows the trunk only supports ulaw why would it offer g722 to the
> phone.
>
> Ryan
Because the codec is already chosen before the call is made, and you
told it that g722 is permitted.
There are all sorts of discussions in play about codec negotiation,
but at this point in time, if you want different behaviour you'll need
to go and code it yourself, and cross-channeltype this is not going to
be trivial :)
Cheers,
Steve
More information about the asterisk-users
mailing list