drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
172 stars 119 forks source link

8k sample rate #22

Closed mpeguerus closed 4 years ago

mpeguerus commented 4 years ago

The doc says that 8k is supported, but in reality only 16k and any valid number (N%8000==0) can be passed.

https://github.com/davehorton/drachtio-freeswitch-modules/blob/21e543ddde7c6f69712a4e278a57cea7812fd3ec/modules/mod_audio_fork/mod_audio_fork.c#L187

another else if there will make 8k supported:

if (0 == strcmp(argv[4], "16k")) {
        sampling = 16000;
 } else if (0 == strcmp(argv[4], "8k")) {
        sampling = 8000;
 } else {
    sampling = atoi(argv[4]);
}
davehorton commented 4 years ago

Thanks, could you give me a PR for that change?

davehorton commented 4 years ago

I fixed this