The acronym SMDR, in telecommunications terms, is generally recognized as Station Message Detail Recording. The term is often used interchangeably with CDR or call detail recording. It is a means of capturing detail information about communication traffic, incoming and outgoing, for voice and data switches, routers, servers or other communication devices. The data contains particular information about every telephone call including date, time, duration, digits dialed, caller ID and trunk line. The "raw" information is generally interpreted and translated into a database for real time or scheduled processing and reporting.
There are many PBX, IP PBX and other communication servers that can provide SMDR. The methods of delivery are as varied as the manufacturers. The great majority of manufacturers still offer SMDR through a real time serial (RS 232) link. Some of the more modern and IP-based systems offer date stamped files pushed or pulled through file transfer protocol (FTP). Some vendors utilize a syslog to deliver SMDR data and others utilize proprietary protocols that require registration to their various partner programs.
All SMDR data contains valuable nuggets of information about each and every call. Most companies adopt a robust call accounting system to massage the data. The data mining applications vary for each company. Call accounting can be employed tor controlling misuse and abuse, monitoring network performance, bill reconcilliation, cost allocation and productivity enhancement.
以上 来自连接 http://smdr.ws/
说白了就是PBX中用来监视(防止乱用公司的电话私用聊天等)和记录通话信息的模块,方便计费等的日志信息.
SMDR 的信息比较简单,一般包括 direction type( incoming or outcoming), inside ext No, Trunk type(pstn or IP trunk ) , outside ext No., date, time, duration(seconds) 例如:
Type | Ext. | Trunk | Outside | Date | Time | Duration |
Outgoing | 102 | pstn1 | 87617327 | 05-16-2012 | 2:04:53 | 30 |
Outgoing | 102 | pstn1 | 87617327 | 05-16-2012 | 2:00:06 | 12 |
Outgoing | 102 | pstn1 | 87617327 | 05-16-2012 | 1:48:13 | 10 |
Outgoing | 102 | pstn1 | 87617327 | 05-16-2012 | 1:40:00 | 36 |
Outgoing | 102 | ip1 | 101 | 05-16-2012 | 0:58:23 | 6 |
Outgoing | 102 | ip1 | 101 | 05-16-2012 | 0:57:31 | 5 |
Incoming | 102 | ip1 | 101 | 05-16-2012 | 0:51:05 | 4 |
其实现原理也比较简单:
当Trunk的状态从 Callee's IDLE 变为 CONNECTED 的时候 开始计时; 当Trunk 的状态因为这通CALL被控制程序DISCONNECTED 或 话机ONHOOK .etc原因,从CONNECTED 变为 IDLE, 停止计时。当然在状态更变时记录如上面表格等informations,等等啦。就完成这张表格(or Recoder)。