将数据保存到自定义cdr字段 [英] saving data into custom cdr field

查看:168
本文介绍了将数据保存到自定义cdr字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了自定义字段"rec_name" id表"cdr",数据库"asteriskcdrdb".在此字段中,我想存储录音名称.我知道我应该通过在.conf文件之一中添加这一行来做到这一点,但是在哪里?

I created custom field "rec_name" id table "cdr", database "asteriskcdrdb". In this field I want to store recording name. I know I should do it by adding this line in one of .conf files, but where?

exten => s,1,set(CDR(rec_name)=${CALLFILENAME})

我也可以通过sql语句来执行此操作,但是我不知道将调用详细信息保存到数据库中的文件在哪里.

I can do it by sql statement, too, but I don't know where is the file that saves details of call into database.

推荐答案

对于mysql,您需要添加到/etc/asterisk/cdr_mysql.conf

For mysql you need add into /etc/asterisk/cdr_mysql.conf

[aliases]
rec_name=rec_name

如果您有别名部分,只需添加到它

If you HAVE aliases section, just add to it

rec_name=rec_name

这篇关于将数据保存到自定义cdr字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆