提交 339dfb3b authored 作者: Brian West's avatar Brian West

sql format for CDR.. send HUP to rotate.. then import into SQL

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6754 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 169dc9a5
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<param name="rotate-on-hup" value="true"/> <param name="rotate-on-hup" value="true"/>
</settings> </settings>
<templates> <templates>
<template name="sql">INSERT INTO cdr VALUES ("${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}");</template>
<template name="example">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}"</template> <template name="example">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}"</template>
<template name="asterisk">"${accountcode}","${caller_id_number}","${destination_number}","${context}","${caller_id}","${channel_name}","${bridge_channel}","${last_app}","${last_arg}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${amaflags}","${uuid}","${userfield}"</template> <template name="asterisk">"${accountcode}","${caller_id_number}","${destination_number}","${context}","${caller_id}","${channel_name}","${bridge_channel}","${last_app}","${last_arg}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${amaflags}","${uuid}","${userfield}"</template>
</templates> </templates>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
name can be a file name, function name or 'all' name can be a file name, function name or 'all'
value is one or more of debug,info,notice,warning,err,crit,alert,all value is one or more of debug,info,notice,warning,err,crit,alert,all
--> -->
<map name="all" value="info,notice,warning,err,crit,alert"/> <map name="all" value="debug,info,notice,warning,err,crit,alert"/>
</mappings> </mappings>
<settings> <settings>
<!-- comment or set to false for no color logging --> <!-- comment or set to false for no color logging -->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论