I am using PHP-AGI for asterisk call recording. It provides a method Monitor in class AGIAsteriskManager. Now I don't want input and output recording separately, I just want one single file containing the complete call record. I used the code below.$agiAsteriskManager = new AGIAsteriskManager;$agiAsteriskManager-Monitor($mychannel,$myfile, 'wav', true).The last parameter as mentioned in is $mix which i guess is either for creating single file ($mix=false) or two separate files ($mix=true).I have tried both the $mix options but it creates two files in either case. Can anyone help me figure this out? Where am I going wrong, as I could not find detailed documentation regarding the same?
$agiAsteriskManager-Monitor($mychannel,$myfile, 'wav', true);This will save a the call recording into a single file 1.wav $agiAsteriskManager-Monitor($mychannel,$myfile, 'wav', false);The above mentioned statement will save the call recording into 2 files. It will save the input and output separately.' Arheops' has rightly mentioned in the previous comment that SOX is required if you want to save the recording into a single file. Installing SOX on the PBX server will solve the issue.Initially asterisk creates separate in and out files while the call monitoring is on and call is in progress. Once the call monitoring is stopped the two recordings are automatically merged with the help of SOX.
Once you have Asterisk working you can install Asternic Call Center Stats to get. Valid Asterisk Manager Interface (AMI) credentials to Asternic config.php file. Asterisk Manager 'HOLD CALL' function. Moderators: muppetmaster, Moderator, Support. Post a reply. 2 posts. Page 1 of 1. Asterisk Manager 'HOLD CALL' function. By consultali ยป Tue Jun 21, 2011 7:41 am. Hello, I'm developping a java interface (with asterisk-java) and i want to add 'HOLD' and 'UNHOLD' functions.