saving data into custom cdr field

2019-05-07 05:20发布

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})

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

1条回答
萌系小妹纸
2楼-- · 2019-05-07 05:38

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
查看更多
登录 后发表回答