Yeastar P-Series Microsoft SQL Integration
🇹🇭 ภาษาไทย
Microsoft SQL Integration ของ Yeastar P-Series ช่วย sync ข้อมูล CDR (Call Detail Records) จาก PBX ไปยัง Microsoft SQL Server database อัตโนมัติ เหมาะสำหรับองค์กรที่ต้องการ custom analytics, reporting, หรือเชื่อมต่อกับ BI tools เช่น Power BI
ข้อกำหนด: Enterprise Plan (EP) หรือ Ultimate Plan (UP)
ฟีเจอร์หลัก
ฟีเจอร์ คำอธิบาย CDR Sync ส่ง Call Detail Records จาก PBX ไปยัง SQL Server Scheduled Sync sync ตามตารางเวลาที่กำหนด Real-time Push push CDR ทันทีเมื่อสายสิ้นสุด Field Mapping กำหนด mapping ระหว่าง CDR fields และ SQL table columns Filtered Sync กรองข้อมูลที่จะ sync ตาม criteria
Sync Modes
Mode คำอธิบาย เหมาะกับ Scheduled Sync sync ตามกำหนด (เช่น ทุกชั่วโมง, ทุกวัน) Reporting ที่ไม่ต้องการ real-time Real-time Push push ทันทีเมื่อ CDR สร้างขึ้น Live dashboards, alerting systems
การตั้งค่า
1. เตรียม SQL Server
-- สร้าง database และ table สำหรับรับ CDR
CREATE TABLE cdr_records (
call_id VARCHAR ( 50 ),
caller VARCHAR ( 50 ),
callee VARCHAR ( 50 ),
call_type VARCHAR ( 20 ),
call_status VARCHAR ( 20 ),
start_time DATETIME ,
answer_time DATETIME ,
end_time DATETIME ,
duration INT ,
talk_duration INT ,
trunk VARCHAR ( 50 ),
recording_file VARCHAR ( 255 )
);
2. ตั้งค่าบน PBX
PBX Web Portal → Settings > CRM Integration > Microsoft SQL
Parameter คำอธิบาย SQL Server IP หรือ hostname ของ SQL Server Port Default: 1433 Database ชื่อ database Username SQL user (ต้องมีสิทธิ์ INSERT) Password SQL user password Table Name ชื่อ table ที่รับ CDR Sync Mode Scheduled หรือ Real-time Sync Interval ถ้าเป็น Scheduled: กำหนดความถี่
CDR Fields ที่รองรับ
CDR Field คำอธิบาย ตัวอย่างค่า call_idID เฉพาะของสาย 2024011512345callerหมายเลขผู้โทร 1001, 0812345678calleeหมายเลขปลายทาง 1002, 0898765432call_typeประเภทสาย Inbound, Outbound, Internalcall_statusผลสาย Answered, No Answer, Busy, Failedstart_timeเวลาเริ่มต้นสาย 2024-01-15 09:30:00answer_timeเวลาที่รับสาย 2024-01-15 09:30:05end_timeเวลาวางสาย 2024-01-15 09:35:00durationระยะเวลาตั้งแต่โทร (วินาที) 300talk_durationระยะเวลาสนทนาจริง (วินาที) 295trunkTrunk ที่ใช้ SIP_Trunk_1recording_filepath ไฟล์บันทึก /recordings/2024/...wavdnisหมายเลขที่ถูกโทรเข้า (DID) 021234567extension_groupกลุ่ม extension Sales, Support
Use Cases
กรณีใช้งาน วิธีใช้ SQL Integration Power BI / Tableau dashboard Scheduled sync → connect BI tool ไปที่ SQL DB Real-time call monitoring screen Real-time push → query SQL ด้วย live dashboard Monthly call reports Scheduled daily sync → run SQL queries ตรวจสอบ SLA Query average answer time, missed calls Billing ตาม call Export CDR → คำนวณค่าใช้จ่ายตามสาย
ความเชื่อมโยง
🇬🇧 English
Microsoft SQL Integration for Yeastar P-Series automatically syncs CDR (Call Detail Records) from the PBX to a Microsoft SQL Server database. It enables custom analytics, reporting pipelines, and BI tool integration (e.g., Power BI, Tableau).
Requirements: Enterprise Plan (EP) or Ultimate Plan (UP)
Sync Modes
Mode Description Use Case Scheduled Sync Sync at a configured interval (hourly, daily, etc.) Periodic reporting Real-time Push Push CDR record immediately on call completion Live dashboards, alerting
Setup
Prepare SQL Server: create database and table with appropriate columns
Configure connection: Settings > CRM Integration > Microsoft SQL
Server host/port (default: 1433), database name, credentials, table name
Select sync mode and interval
Map CDR fields to SQL table columns
Test connection and save
CDR Fields Available
Field Description call_idUnique call identifier caller / calleeCalling and called numbers call_typeInbound / Outbound / Internal call_statusAnswered / No Answer / Busy / Failed start_time / answer_time / end_timeCall timestamps durationTotal call duration (seconds) talk_durationActual talk time (seconds) trunkSIP/analog trunk used recording_filePath to call recording file dnisDialed number (DID/DDI) extension_groupExtension group name
Related Pages