8
« on: August 05, 2016, 03:24:52 AM »
Yes, I used sox . First I convert file .mulaw to wav, then merge two wav files into one.
Convert .mulaw to wav
1) sox --channels 1 --type raw --rate 8000 -e mu-law 20160804_1030_A.mulaw 20160804_1030_A.wav
Merge two files
2) sox -M 20160804_1030_A.wav 20160804_1030_B.wav 20160804_1030_C.wav
This is my chan.record command
$m = new Yate("chan.masquerade");
$m->id = ""; // don't notify about message result
$m->params["message"] = "chan.record";
$m->params["id"] = $id;
$m->params["peer"] = "wave/record/$path/$rec$ext1";
$m->params["call"] = "wave/record/$path/$rec$ext2";
$m->Dispatch();
Thanks
Samir