[asterisk-dev] Re: Channel driver API question
Kevin P. Fleming
kpfleming at digium.com
Thu May 17 06:31:00 MST 2007
Lorenzo Miniero wrote:
> However, since we're covering the subject, there's a feature that I
> think could be safely and harmlessly added anyway, i.e. getting
> information upon the negotiated codecs in a channel. Currently the only
> way to understand which audio and/or video codec has been negotiated is
> waiting for a frame and look at its subclass: which means that, as long
> as no frame is received, there's no way to know this. The same
> information polling approach could also apply at several other aspects
> of the underlying media, since, while signaling protocols are a lot,
> always RTP is used.
This is not true; there are variables in the ast_channel structure that
reflect the codecs that the channel is capable of supporting, which one
is currently in use, and what codec the channel's media is currently
being transcoded to/from.
--
Kevin P. Fleming
Director of Software Technologies
Digium, Inc. - "The Genuine Asterisk Experience" (TM)
More information about the asterisk-dev
mailing list