[asterisk-dev] AMR support

Kevin P. Fleming kpfleming at digium.com
Mon Mar 27 10:28:25 MST 2006


chris.2.dobbs at bt.com wrote:

> I have had a quick glance at the code and it seems very well structured
> and appears that the codec side of things has been designed almost
> template like - I may be wrong but it seems like all the codecs_xxx.c
> files all expose the same functions like ast_frame() etc...

Exactly. Just follow an existing codec_<foo>.c file as a starting point;
the only other changes you will need to make will be in header files to
make the rest of Asterisk aware of the new audio format, and in rtp.c to
assign an RTP codec number to it (if there is not one officially assigned).



More information about the asterisk-dev mailing list