[Asterisk-Dev] Adding new codec - should I write a new module?

Kevin P. Fleming kpfleming at digium.com
Fri Dec 2 09:07:00 MST 2005


Raúl wrote:

> After some research I've come to think that the way to do this would
> be to write a new module (based on the source code I've got for the
> codec) that would communicate with Asterisk's core using the Codec
> Translator API. I don't know if I would also need to play about with
> any of Asterisk's source files or just load the module in modules.conf

You will need to make modifications to the Asterisk source to make it 
aware of the new media format, if you are not implementing a new codec 
for an existing format.

> One problem I've encountered is that I haven't found any document with
> the Codec Translator API's specification. Could someone point me to
> this specification? Or doesn't it exist?

There is no such specification, other than the existing codec modules 
themselves.

> Could anyone tell me if this is the best direction to take to achieve
> the task at hand and briefly describe what steps would it involve?

You are headed down the correct path, for sure :-)




More information about the asterisk-dev mailing list