[Asterisk-Dev] Re: You can't really prioritise choice of codec, can you?

Tony Mountifield tony at softins.clara.co.uk
Tue May 18 14:41:03 MST 2004


In article <1084913414.16290.94.camel at vulcan.fnords.org>,
Eric Wieling <eric at fnords.org> wrote:
> On Tue, 2004-05-18 at 14:54, Olle E. Johansson wrote:
> > For SIP, we're only setting a codec preference order in the GENERAL section.
> > This is used when Asterisk dials SIP calls outbound to set the preference in
> > the SDP for the INVITE.
> 
> Where in the Asterisk code is the codec order honored in [general] I
> can't find it.

When processing the global section, the allows are added in order to
a list using sip_pref_append().

sip_codec_choose() later searches that list in order for the first one
that matches the capability mask.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list