Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
aab453f5
提交
aab453f5
authored
1月 03, 2011
作者:
Daniel Swarbrick
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tweak create.sql and config file
上级
93bbbe96
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
29 行删除
+5
-29
cdr_pg_csv.conf.xml
conf/autoload_configs/cdr_pg_csv.conf.xml
+3
-4
create.sql
src/mod/event_handlers/mod_cdr_pg_csv/create.sql
+2
-24
mod_cdr_pg_csv.c
src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c
+0
-1
没有找到文件。
conf/autoload_configs/cdr_pg_csv.conf.xml
浏览文件 @
aab453f5
<configuration
name=
"cdr_pg_csv.conf"
description=
"CDR PG CSV Format"
>
<settings>
<!-- 'cdr-pg-csv' will always be appended to log-base -->
<!--<param name="log-base" value="/var/log"/>-->
<param
name=
"rotate-on-hup"
value=
"true"
/>
<!-- Log a-leg (a), b-leg (b) or both (ab) -->
<param
name=
"legs"
value=
"a"
/>
<!-- See parameters for PQconnectdb() at http://www.postgresql.org/docs/8.4/static/libpq-connect.html -->
...
...
@@ -10,6 +7,9 @@
<!-- CDR table name -->
<!--<param name="db-table" value="cdr"/>-->
<param
name=
"default-template"
value=
"example"
/>
<!-- 'cdr-pg-csv' will always be appended to log-base -->
<!--<param name="log-base" value="/var/log"/>-->
<param
name=
"rotate-on-hup"
value=
"true"
/>
<!-- This is like the info app but after the call is hung up -->
<!--<param name="debug" value="true"/>-->
</settings>
...
...
@@ -17,4 +17,3 @@
<template
name=
"example"
>
"${local_ip_v4}","${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}","${sip_hangup_disposition}","${ani}"
</template>
</templates>
</configuration>
src/mod/event_handlers/mod_cdr_pg_csv/create.sql
浏览文件 @
aab453f5
-- Sample CDR table schema
create
table
a
(
create
table
cdr
(
id
serial
primary
key
,
local_ip_v4
inet
not
null
,
caller_id_name
varchar
,
...
...
@@ -20,26 +21,3 @@ create table a (
sip_hangup_disposition
varchar
,
ani
varchar
);
create
table
g
(
id
serial
primary
key
,
local_ip_v4
inet
not
null
,
caller_id_name
varchar
,
caller_id_number
varchar
,
destination_number
varchar
not
null
,
context
varchar
not
null
,
start_stamp
timestamp
with
time
zone
not
null
,
answer_stamp
timestamp
with
time
zone
,
end_stamp
timestamp
with
time
zone
not
null
,
duration
int
not
null
,
billsec
int
not
null
,
hangup_cause
varchar
not
null
,
uuid
uuid
not
null
,
bleg_uuid
uuid
,
accountcode
varchar
,
read_codec
varchar
,
write_codec
varchar
,
sip_hangup_disposition
varchar
,
ani
varchar
);
src/mod/event_handlers/mod_cdr_pg_csv/mod_cdr_pg_csv.c
浏览文件 @
aab453f5
...
...
@@ -457,7 +457,6 @@ static void event_handler(switch_event_t *event)
PQfinish
(
globals
.
db_connection
);
globals
.
db_online
=
0
;
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论