Bug fix: No answer_stamp in CDR (#4049)

* Bug fix: No answer_stamp in CDR

Here's a fun little bug that took me a longer than it should have to figure out. When a person make a call and then cancels the request there is no "answer_stamp" written to the CDR. Because of this, v_call_recordings.call_recording_name gets imported as NULL. This causes all the canceled calls to show up in the Call Recordings app first in the list and with no date set.

* Update xml_cdr.php

* Update v_xml_cdr_import.php
This commit is contained in:
konradSC
2019-04-11 20:00:11 -04:00
committed by FusionPBX
parent 8eda84cf55
commit 7eafc693c4
2 changed files with 2 additions and 2 deletions

View File

@@ -535,7 +535,7 @@ if (!class_exists('xml_cdr')) {
$array['call_recordings'][$x]['call_recording_name'] = $record_name;
$array['call_recordings'][$x]['call_recording_path'] = $record_path;
$array['call_recordings'][$x]['call_recording_length'] = $record_length;
$array['call_recordings'][$x]['call_recording_date'] = urldecode($xml->variables->answer_stamp);
$array['call_recordings'][$x]['call_recording_date'] = urldecode($xml->variables->start_stamp);
$array['call_recordings'][$x]['call_direction'] = urldecode($xml->variables->call_direction);
//$array['call_recordings'][$x]['call_recording_description']= $row['zzz'];
//$array['call_recordings'][$x]['call_recording_base64']= $row['zzz'];