หน้า 1 จากทั้งหมด 1

ไฟล์ cdr_manager.conf มีไว้ทำอะไร

โพสต์โพสต์แล้ว: 17 มี.ค. 2010 21:37
โดย voip4share
ความสำคัญของไฟล์ cdr_manager.conf

[general]
enabled = no
;[mappings]
;rate => Rate
;carrier => Carrier


ไฟล์นี้นะครับมีไว้บอกให้ Asterisk ส่ง CDR (Call Detail Record) ออกไปทาง Asterisk Manager Interface โดยเมื่อเราเซ็ต enabled=yes และคอลสิ้นสุดลง Asterisk จะส่ง CDR ออกมาทาง AMI ซึ่งอะไรก็ตามที่คอนเน็คกับ AMI อยู่ก็จะได้รับข้อมูล CDR นี้

ข้อมูล CDR ที่ส่งออกไปทาง AMI มีข้อมูลดังต่อไปนี้ครับ ซึ่งเป็นข้อมูลเดียวกับที่ส่งไปยัง MySQL Database และเก็บไว้ในไฟล์ CSV

Event: Cdr
AccountCode: ...
Source: ...
Destination: ...
DestinationContext: ...
CallerID: ...
Channel: ...
DestinationChannel: ...
LastApplication: ...
LastData: ...
StartTime: ...
AnswerTime: ...
EndTime: ...
Duration: ...
BillableSeconds: ...
Disposition: ...
AMAFlags: ...
UniqueID: ...
UserField: ...