- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
58 lines
2.0 KiB
PHP
58 lines
2.0 KiB
PHP
<?php
|
|
namespace SPVoipIntegration\sipuni\notifications;
|
|
|
|
class SipuniNotifyCall extends SipuniNotification {
|
|
|
|
protected $fieldsMapping = array(
|
|
'sourceuuid' => 'call_id',
|
|
'callstatus' => 'callstatus',
|
|
'user' => 'user',
|
|
'sp_called_from_number' => 'src_num',
|
|
'sp_called_to_number' => 'dst_num',
|
|
'sp_voip_provider' => 'sp_voip_provider',
|
|
'customernumber' => 'customernumber',
|
|
'direction' => 'direction',
|
|
'src_type' => 'src_type',
|
|
'dst_type' => 'dst_type',
|
|
'starttime' => 'starttime'
|
|
);
|
|
|
|
protected function prepareNotificationModel() {
|
|
$this->set('callstatus', 'ringing');
|
|
$this->set('starttime', date('Y-m-d H:i:s'));
|
|
if($this->get('src_type') == '2') {
|
|
if($this->get('dst_type') == '2') {
|
|
$this->set('direction', 'inbound');
|
|
$this->user_number = $this->get('short_src_num');
|
|
$this->set('src_num', $this->get('short_src_num'));
|
|
$this->set('dst_num', $this->get('short_dst_num'));
|
|
}
|
|
else {
|
|
$this->set('direction', 'outbound');
|
|
$this->set('customernumber', $this->get('dst_num'));
|
|
$this->set('src_num', $this->get('short_src_num'));
|
|
$this->user_number = $this->get('short_src_num');
|
|
|
|
}
|
|
}
|
|
else {
|
|
$this->set('direction', 'inbound');
|
|
$this->set('customernumber', $this->get('src_num'));
|
|
$this->set('dst_num', $this->get('short_dst_num'));
|
|
$this->user_number = $this->get('short_dst_num');
|
|
$this->set('sourceuuid', $this->get('call_id') . $this->get('short_dst_num'));
|
|
}
|
|
|
|
parent::prepareNotificationModel();
|
|
}
|
|
|
|
protected function canCreatePBXRecord() {
|
|
return true;
|
|
}
|
|
|
|
protected function getCustomerPhoneNumber() {
|
|
return $this->get('customernumber');
|
|
}
|
|
|
|
}
|