Multiple iLBC frames per IAX Audio Packet?


#1

Team
I’m an asterisk user. This is the first time I’m trying to do some thing with the asterisk code. I want to encode 2 iLBC frames per IAX audio packet. I do not want to change the decoding. Seems like there is no simple way to do this. The 50 bytes and 240 samples are harcoded (assumed) for every iLBC frame and not configurable. I need to encode 100 byte iLBC audio frame (or 2 50 byte packet) per IAX audio frame.

I do not know where to start. Please any one any direction and files i should look ? SHould I modify some code in ILBC or can i just modify chan_iax2.c ?

Ideally i would like to have this IAX framing size to be a configurable some where

There is no RTP in IAX, it would have been simpler to modify if I’m using any other protocol other than IAX.

Thanks in advance
Mani