[Asterisk-Dev] Per-call codec preference
John Todd
jtodd at loligo.com
Wed Jan 12 17:44:48 MST 2005
At 6:00 PM -0600 on 1/12/05, Michael Giagnocavo wrote:
>Hi there,
>
> I'm thinking of adding patches to allow per-call codec negotiation,
>so that the codec can be set via the dialplan ("at runtime"), instead of
>just when defining peers ("design time").
>
> My idea would be to add a channel variable that could be a codec
>("g729", "ulaw", etc.), "current", to mean whatever codec is currently in
>use, or null/"default", for whatever would normally work.
>
> Any comments or suggestions on this?
>
>-Michael
This does (used to?) exist already, at least for SIP, though I've
heard people complaining recently that it doesn't work as expected.
Check out the SIP_CODEC variable in the chan_sip code.
It would be nice, of course, to extend this type of functionality
across all VoIP channel types that support codecs, though.
JT
More information about the asterisk-dev
mailing list