Hi,
We used to record files in one of the supported formats and then when call ended we used sox / other programs to convert audio/merge multiple files. When call ended we triggered an external script that triggered processing.
The format should be signed linear, rate 8000, but i'm not 100% sure. You should try to verify this.