Fixes for recording file issues
git-svn-id: svn://192.168.202.10@3754 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
#
|
#
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
# 230814-2110 - First build based on agi-NVA_recording.agi
|
# 230814-2110 - First build based on agi-NVA_recording.agi
|
||||||
|
# 230906-1708 - Fixes for recording file issues
|
||||||
#
|
#
|
||||||
|
|
||||||
&get_time_now;
|
&get_time_now;
|
||||||
@@ -394,17 +395,18 @@ if ($record_call =~ /Y/)
|
|||||||
%ast_ver_str = parse_asterisk_version($asterisk_version);
|
%ast_ver_str = parse_asterisk_version($asterisk_version);
|
||||||
if (( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 6))
|
if (( $ast_ver_str{major} = 1 ) && ($ast_ver_str{minor} < 6))
|
||||||
{
|
{
|
||||||
$retval = $AGI->exec("MixMonitor wav|/var/spool/asterisk/monitor/MIX/$filename");
|
$retval = $AGI->exec("Monitor wav|/var/spool/asterisk/monitor/MIX/$filename");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$retval = $AGI->exec("MixMonitor","/var/spool/asterisk/monitor/MIX/$filename.wav");
|
$retval = $AGI->exec("MixMonitor",",r(/var/spool/asterisk/monitor/MIX/$filename-in.wav)t(/var/spool/asterisk/monitor/MIX/$filename-out.wav)");
|
||||||
}
|
}
|
||||||
|
|
||||||
# sleep for a tenth of a second, then get the file size to print in output
|
# sleep for a tenth of a second, then get the file size to print in output
|
||||||
usleep(1*100*1000);
|
usleep(1*100*1000);
|
||||||
$tempFILEsize = (-s "/var/spool/asterisk/monitor/MIX/$filename.wav");
|
$tempFILEsizeIN = (-s "/var/spool/asterisk/monitor/MIX/$filename-in.wav");
|
||||||
if ($AGILOG) {$agi_string = "MixMonitor started, returned: $retval size: $tempFILEsize"; &agi_output;}
|
$tempFILEsizeOUT = (-s "/var/spool/asterisk/monitor/MIX/$filename-out.wav");
|
||||||
|
if ($AGILOG) {$agi_string = "MixMonitor started, returned: $retval in_size: $tempFILEsizeIN out_size: $tempFILEsizeOUT"; &agi_output;}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ($phone_url =~ /Y/) && (length($nva_call_url) > 8) )
|
if ( ($phone_url =~ /Y/) && (length($nva_call_url) > 8) )
|
||||||
|
|||||||
Reference in New Issue
Block a user