[asterisk-dev] get a list with codecs capable of transcoding and export it via AMI

Caio Begotti caio at ueberalles.net
Wed Dec 19 18:16:13 CST 2007


Hi list,

My thoughts: core show codecs lists all supported codecs built in  
Asterisk, core show translation shows from which one to another codec  
we can transcode to. So far so good, but I am trying to get a list  
(via AMI) of the codecs capable of real transcoding, much like show  
translation but without the time cost numbers nor the guys reported  
with a minus sign.

I thought it could be done by using reading through &translators to  
get names of the 13 audio codecs currently supported and them feed  
them into a loop using ast_translate_available_formats to check if  
they're usable. This idea came from 'jointcapability' I've found in  
chan_sip.c, which makes a lot of sense... I guess.

Honestly, this sounds challenging and I didn't understand how show  
translation do that... Am I realizing it wrong and my idea sounds  
harder and more stupid than 'show translation'?

Any guidance? Hints to develop it on my own? :)

Cheers,

--
Caio Begotti <http://caio.ueberalles.net>



More information about the asterisk-dev mailing list