Got the code now. i use this one to record the call_log
(agi-NVA_recording.agi,BOTH------N---Y---N---N).
However, on normal dial out, it records the length of calls, even in manual dial through SIP. But once I used Vicidial, Blind transfer to 999555, it has no length in sec count. Only a start epoch but no end epoch.
2nd attempt:
I use
(agi-NVA_recording.agi,BOTH------Y---Y---Y---Y). using Blind Transfer
But still in both PHONE_DIAL and DOUBLE_LOG, there isn't any length in sec, even in recording_log it shows 0 sec, user_log has no length in sec record though.
I noticed in the script. there is no end epoch or update once the call ends.
- Code: Select all
"INSERT INTO call_log SET uniqueid='$unique_id', channel='$channel', channel_group='PHONE_DIAL', server_ip='$VARserver_ip', type='$type', extension='$accountcode', number_dialed='$extension', caller_code='$callerid', start_time='$now_date', start_epoch='$start_epoch'"
- Code: Select all
INSERT INTO recording_log (channel,server_ip,extension,start_time,start_epoch,length_in_sec,filename,lead_id,user,location,vicidial_id) values('$channel','$VARserver_ip','$extension','$now_date','$start_epoch','0','$filename','$lead_id','$accountcode','$filename','$unique_id')
Even in recording_log, it is alwasy putting "0" as the length_in_sec.
Vicibox 8.1.iso| VERSION: 2.14-714a | Asterisk 13.27.1 | Multi Server | No Digium/Sangoma Hardware | No Extra Software After Installation | QuadCore Xeon 3.0