After installing the System Recordings module, we are unable to record any audio files via the phone.
Step 1 -> put in the extension you will be calling from
Step 2 -> record your audio message and press # to save
Step 3 -> give your audio file a name and hit submit.
Here is the output of the CLI
-- Executing Macro("SIP/100-08b9b530", "user-callerid|") in new stack
-- Executing NoOp("SIP/100-08b9b530", "user-callerid: device 100") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?report") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?start") in new stack
-- Executing Set("SIP/100-08b9b530", "REALCALLERIDNUM=100") in new stack
-- Executing NoOp("SIP/100-08b9b530", "REALCALLERIDNUM is 100") in new stack
-- Executing Set("SIP/100-08b9b530", "AMPUSER=100") in new stack
-- Executing Set("SIP/100-08b9b530", "AMPUSERCIDNAME=Kent Ward") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?report") in new stack
-- Executing Set("SIP/100-08b9b530", "CALLERID(all)=Kent Ward <100>") in new stack
-- Executing Set("SIP/100-08b9b530", "REALCALLERIDNUM=100") in new stack
-- Executing NoOp("SIP/100-08b9b530", "TTL: ARG1: ") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?continue") in new stack
-- Executing Set("SIP/100-08b9b530", "_TTL=64") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/100-08b9b530", "Using CallerID "Kent Ward" <100>") in new stack
-- Executing Wait("SIP/100-08b9b530", "2") in new stack
-- Executing Macro("SIP/100-08b9b530", "user-callerid|") in new stack
-- Executing NoOp("SIP/100-08b9b530", "user-callerid: device 100") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?report") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?start") in new stack
-- Executing Set("SIP/100-08b9b530", "REALCALLERIDNUM=100") in new stack
-- Executing NoOp("SIP/100-08b9b530", "REALCALLERIDNUM is 100") in new stack
-- Executing Set("SIP/100-08b9b530", "AMPUSER=100") in new stack
-- Executing Set("SIP/100-08b9b530", "AMPUSERCIDNAME=Kent Ward") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?report") in new stack
-- Executing Set("SIP/100-08b9b530", "CALLERID(all)=Kent Ward <100>") in new stack
-- Executing Set("SIP/100-08b9b530", "REALCALLERIDNUM=100") in new stack
-- Executing NoOp("SIP/100-08b9b530", "TTL: ARG1: ") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "0?continue") in new stack
-- Executing Set("SIP/100-08b9b530", "_TTL=64") in new stack
-- Executing GotoIf("SIP/100-08b9b530", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/100-08b9b530", "Using CallerID "Kent Ward" <100>") in new stack
-- Executing Wait("SIP/100-08b9b530", "2") in new stack
-- Executing Macro("SIP/100-08b9b530", "systemrecording|dorecord") in new stack
-- Executing Goto("SIP/100-08b9b530", "dorecord|1") in new stack
-- Goto (macro-systemrecording,dorecord,1)
-- Executing Record("SIP/100-08b9b530", "/tmp/100-ivrrecording:wav") in new stack
-- Playing 'beep' (language 'en')
-- Executing Macro("SIP/100-08b9b530", "systemrecording|dorecord") in new stack
-- Executing Goto("SIP/100-08b9b530", "dorecord|1") in new stack
-- Goto (macro-systemrecording,dorecord,1)
-- Executing Record("SIP/100-08b9b530", "/tmp/100-ivrrecording:wav") in new stack
-- Playing 'beep' (language 'en')
-- Executing Wait("SIP/100-08b9b530", "1") in new stack
-- Executing Wait("SIP/100-08b9b530", "1") in new stack
-- Executing Goto("SIP/100-08b9b530", "confmenu|1") in new stack
-- Goto (macro-systemrecording,confmenu,1)
-- Executing BackGround("SIP/100-08b9b530", "to-listen-to-it&press-1&to-rerecord-it&press-star|m||macro-systemrecording") in new stack
-- Executing Goto("SIP/100-08b9b530", "confmenu|1") in new stack
-- Goto (macro-systemrecording,confmenu,1)
-- Executing BackGround("SIP/100-08b9b530", "to-listen-to-it&press-1&to-rerecord-it&press-star|m||macro-systemrecording") in new stack
-- Playing 'to-listen-to-it' (language '')
-- Playing 'to-listen-to-it' (language '')
-- Playing 'press-1' (language '')
-- Playing 'press-1' (language '')
-- Executing Goto("SIP/100-08b9b530", "docheck|1") in new stack
-- Goto (macro-systemrecording,docheck,1)
-- Executing Playback("SIP/100-08b9b530", "/tmp/100-ivrrecording") in new stack
-- Playing '/tmp/100-ivrrecording' (language 'en')
-- Executing Goto("SIP/100-08b9b530", "docheck|1") in new stack
-- Goto (macro-systemrecording,docheck,1)
-- Executing Playback("SIP/100-08b9b530", "/tmp/100-ivrrecording") in new stack
-- Playing '/tmp/100-ivrrecording' (language 'en')
-- Executing Wait("SIP/100-08b9b530", "1") in new stack
-- Executing Wait("SIP/100-08b9b530", "1") in new stack
-- Executing Goto("SIP/100-08b9b530", "confmenu|1") in new stack
-- Goto (macro-systemrecording,confmenu,1)
-- Executing BackGround("SIP/100-08b9b530", "to-listen-to-it&press-1&to-rerecord-it&press-star|m||macro-systemrecording") in new stack
-- Playing 'to-listen-to-it' (language '')
-- Executing Goto("SIP/100-08b9b530", "confmenu|1") in new stack
-- Goto (macro-systemrecording,confmenu,1)
-- Executing BackGround("SIP/100-08b9b530", "to-listen-to-it&press-1&to-rerecord-it&press-star|m||macro-systemrecording") in new stack
-- Playing 'to-listen-to-it' (language '')
-- Playing 'press-1' (language '')
-- Playing 'press-1' (language '')
-- Playing 'to-rerecord-it' (language '')
-- Playing 'to-rerecord-it' (language '')
-- Playing 'press-star' (language '')
-- Playing 'press-star' (language '')
-- Executing Read("SIP/100-08b9b530", "RECRESULT||1|||4") in new stack
-- Accepting a maximum of 1 digits.
-- Executing Read("SIP/100-08b9b530", "RECRESULT||1|||4") in new stack
-- Accepting a maximum of 1 digits.
-- User disconnected
== Spawn extension (macro-systemrecording, confmenu, 2) exited non-zero on 'SIP/100-08b9b530' in macro 'systemrecording'
== Spawn extension (macro-systemrecording, confmenu, 2) exited non-zero on 'SIP/100-08b9b530'
-- Executing Hangup("SIP/100-08b9b530", "") in new stack
== Spawn extension (macro-systemrecording, h, 1) exited non-zero on 'SIP/100-08b9b530'
-- User disconnected
== Spawn extension (macro-systemrecording, confmenu, 2) exited non-zero on 'SIP/100-08b9b530' in macro 'systemrecording'
== Spawn extension (macro-systemrecording, confmenu, 2) exited non-zero on 'SIP/100-08b9b530'
-- Executing Hangup("SIP/100-08b9b530", "") in new stack
== Spawn extension (macro-systemrecording, h, 1) exited non-zero on 'SIP/100-08b9b530'
Here is the error message from FreePBX:
Unable to add /var/lib/asterisk/sounds/custom/name.wav - Can not read file!
Here are the permissions on the folder:
[root@phoneserver tftpboot]# cd /var/lib/asterisk/sounds/custom
[root@phoneserver custom]# ls -la
total 72
drwxrwxr-x 2 asterisk asterisk 4096 Sep 20 02:25 .
drwxrwxr-x 11 asterisk asterisk 65536 Sep 20 02:25 ..
I /can/ manually move the temp file under root.
[root@phoneserver tmp]# dir
100-ivrrecording.wav etcresolvconf etcrsliconf etcsysconfignetworkscriptsifcfgeth0 sess_7f7d8dedf52d344fe5e91bf1d041e23b
[root@phoneserver tmp]# cp 100-ivrrecording.wav /var/lib/asterisk/sounds/custom
When I attempt to create a .wav manually, and upload it, this the error message I get:
Warning: move_uploaded_file(/tmp/100-ivrrecording.wav): failed to open stream: Permission denied in /var/www/html/admin/modules/recordings/page.recordings.php on line 166
Warning: move_uploaded_file(): Unable to move '/tmp/phpGoXvvE' to '/tmp/100-ivrrecording.wav' in /var/www/html/admin/modules/recordings/page.recordings.php on line 166
Line 166 is referencing this bit:
<?php
if (isset($_FILES['ivrfile']['tmp_name']) && is_uploaded_file($_FILES['ivrfile']['tmp_name'])) {
if (empty($usersnum)) {
$dest = "unnumbered-";
} else {
$dest = "{$usersnum}-";
}
$suffix = substr(strrchr($_FILES['ivrfile']['name'], "."), 1);
$destfilename = $recordings_save_path.$dest."ivrrecording.".$suffix;
move_uploaded_file($_FILES['ivrfile']['tmp_name'], $destfilename); ß 166
system("chgrp asterisk ".$destfilename);
system("chmod g+rw ".$destfilename);
echo "<h6>"._("Successfully uploaded")." ".$_FILES['ivrfile']['name']."</h6>";
$rname = rtrim(basename($_FILES['ivrfile']['name'], $suffix), '.');
} ?>