需要修改的配置文件:
目前成都創(chuàng)新互聯(lián)公司已為成百上千家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)站空間、網(wǎng)站托管運(yùn)營、企業(yè)網(wǎng)站設(shè)計(jì)、營口網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。
switch.conf.xml //核心表
cdr_pg_csv.conf.xml //通話記錄 db.conf.xml //核心表
voicemail.conf.xml //留言相關(guān)的表
internal.xml //
external.xml //
fifo.conf.xml //fifo相關(guān)的表
callcenter.conf.xml //callcenter程序相關(guān)的表。
1、switch.conf.xml
2、cdr_pg_csv.conf.xml
3、db.conf.xml、voicemail.conf.xml、internal.xml、external.xml、fifo.conf.xml、callcenter.conf.xml
或者在var.xml追加以下配置,然后去注釋db.conf.xml、voicemail.conf.xml、internal.xml、external.xml、fifo.conf.xml、callcenter.conf.xml 中的" "
【附】xml_cdr建表sql及cdr_pg_csv.conf.xml 字段設(shè)置
CREATE TABLE "public"."xml_cdr" ( "uuid" uuid NOT NULL, "domain_uuid" uuid, "extension_uuid" uuid, "domain_name" text COLLATE "default", "accountcode" text COLLATE "default", "direction" text COLLATE "default", "default_language" text COLLATE "default", "context" text COLLATE "default", "xml_cd" text COLLATE "default", "json" jsonb, "caller_id_name" text COLLATE "default", "caller_id_number" text COLLATE "default", "source_number" text COLLATE "default", "destination_number" text COLLATE "default", "start_epoch" numeric, "start_stamp" timestamp(6), "answer_stamp" timestamp(6), "answer_epoch" numeric, "end_epoch" numeric, "end_stamp" text COLLATE "default", "duration" numeric, "mduration" numeric, "billsec" numeric, "billmsec" numeric, "bridge_uuid" text COLLATE "default", "read_codec" text COLLATE "default", "read_rate" text COLLATE "default", "write_codec" text COLLATE "default", "write_rate" text COLLATE "default", "remote_media_ip" text COLLATE "default", "network_addr" text COLLATE "default", "recording_file" text COLLATE "default", "leg" char(1) COLLATE "default", "pdd_ms" numeric, "rtp_audio_in_mos" numeric, "last_app" text COLLATE "default", "last_arg" text COLLATE "default", "cc_side" text COLLATE "default", "cc_member_uuid" uuid, "cc_queue_joined_epoch" text COLLATE "default", "cc_queue" text COLLATE "default", "cc_member_session_uuid" uuid, "cc_agent" text COLLATE "default", "cc_agent_type" text COLLATE "default", "waitsec" numeric, "conference_name" text COLLATE "default", "conference_uuid" uuid, "conference_member_id" text COLLATE "default", "digits_dialed" text COLLATE "default", "pin_number" text COLLATE "default", "hangup_cause" text COLLATE "default", "hangup_cause_q850" numeric, "sip_hangup_disposition" text COLLATE "default", CONSTRAINT "xml_cdr_pkey" PRIMARY KEY ("uuid") ) WITH (OIDS=FALSE) ; ALTER TABLE "public"."xml_cdr" OWNER TO "freeswitch";
【附】錄音文件路徑寫入數(shù)據(jù)庫:
dialpanl/default.xml中添加一行,定義錄音文件路徑
再在autoload_configs/cdr_pg_csv.conf.xml的字段定義中添加一行
最后在數(shù)據(jù)庫表中添加一個(gè)字段
recording_file
重新加載模塊reload mod_cdr_pg_csv
再打電話就有錄音路徑生成了