[asterisk-dev] [channel] get the other peer codec

Joshua Colp jcolp at digium.com
Mon Nov 21 09:18:37 CST 2016


On Mon, Nov 21, 2016, at 11:16 AM, Aurele Traynard wrote:
> thanks for your answer
> "set your nativeformats to the negotiated codecs and let Asterisk do the
> rest." would be great for me but I could not find how to do this
> if transcode is not allowed and one of my codec is compatible with the
> other side codec I would like to know which codec it is and then set my
> nativeformats... i don't care about the phase my channel (and the
> middleware/hardware managed) is flexible.

This is not currently possible. Each side is independently negotiated
and like I said there is no way to receive this information or to safely
query the information.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list