需要修改的配置文件:
10余年的长寿网站建设经验,针对设计、前端、开发、售后、文案、推广等六对一服务,响应快,48小时及时工作处理。网络营销推广的优势是能够根据用户设备显示端的尺寸不同,自动调整长寿建站的显示方式,使网站能够适用不同显示终端,在浏览器中调整网站的宽度,无论在任何一种浏览器上浏览网站,都能展现优雅布局与设计,从而大程度地提升浏览体验。成都创新互联从事“长寿网站设计”,“长寿网站推广”以来,每个客户项目都认真落实执行。switch.conf.xml //核心表
cdr_pg_csv.conf.xml //通话记录 db.conf.xml //核心表
voicemail.conf.xml //留言相关的表
internal.xml //
external.xml //
fifo.conf.xml //fifo相关的表
callcenter.conf.xml //callcenter程序相关的表。
1、switch.conf.xml
<param name="core-db-dsn" value="pgsql://host=localhost dbname=freeswitch user=freeswitch password='password' options='-c client_min_messages=NOTICE' application_name='freeswitch'" />2、cdr_pg_csv.conf.xml
<param name="db-info" value="host=localhost user=freeswitch password=nopassword dbname=freeswitch connect_timeout=10" /> <param name="db-table" value="xml_cdr"/>3、db.conf.xml、voicemail.conf.xml、internal.xml、external.xml、fifo.conf.xml、callcenter.conf.xml
<param name="odbc-dsn" value="pgsql://host=localhost dbname=freeswitch user=freeswitch password=' password ' options='-c client_min_messages=NOTICE' application_name='freeswitch'"/>或者在var.xml追加以下配置,然后去注释db.conf.xml、voicemail.conf.xml、internal.xml、external.xml、fifo.conf.xml、callcenter.conf.xml 中的" <param name="odbc-dsn" value="$${dsn}"/>"
<X-PRE-PROCESS cmd="set" data="dsn=pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='password' options='-c client_min_messages=NOTICE' application_name='freeswitch'" /> <X-PRE-PROCESS cmd="set" data="dsn_callcenter=pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password='password' options='-c client_min_messages=NOTICE' application_name='freeswitch'" />【附】xml_cdr建表sql及cdr_pg_csv.conf.xml 字段设置
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";</settings> <schema> <field var="uuid"/> <field var="domain_uuid"/> <field var="domain_name"/> <field var="accountcode"/> <field var="direction"/> <field var="default_language"/> <field var="context"/> <field var="xml_cdr"/> <!-- <field var="local_ip_v4"/> --> <field var="caller_id_name"/> <field var="caller_id_number"/> <field var="destination_number"/> <field var="start_epoch"/> <field var="start_stamp"/> <field var="answer_stamp"/> <field var="answer_epoch"/> <field var="end_epoch"/> <field var="end_stamp"/> <field var="duration"/> <field var="mduration"/> <field var="billsec"/> <field var="billmsec"/> <field var="bridge_uuid"/> <!-- <field var="bleg_uuid"/> --> <field var="read_codec"/> <field var="read_rate"/> <field var="write_codec"/> <field var="write_rate"/> <field var="remote_media_ip"/> <field var="network_addr"/> <field var="recording_file"/> <field var="leg"/> <field var="pdd_ms"/> <field var="last_app"/> <field var="last_arg"/> <field var="cc_side"/> <field var="cc_member_uuid"/> <field var="cc_queue_joined_epoch"/> <field var="cc_queue"/> <field var="cc_member_session_uuid"/> <field var="cc_agent"/> <field var="cc_agent_type"/> <field var="waitsec"/> <field var="conference_name"/> <field var="conference_uuid"/> <field var="conference_member_id"/> <field var="digits_dialed"/> <field var="hangup_cause"/> <field var="hangup_cause_q850"/> <field var="sip_hangup_disposition"/> <!-- <field var="sip_hangup_disposition"/> --> <!-- <field var="ani"/> --> </schema>【附】录音文件路径写入数据库:
dialpanl/default.xml中添加一行,定义录音文件路径
<action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/> <action application="bind_meta_app" data="4 b s execute_extension::att_xfer XML features"/> <action application="set" data="recording_file=$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
再在autoload_configs/cdr_pg_csv.conf.xml的字段定义中添加一行<field var="recording_file"/>
最后在数据库表中添加一个字段
recording_file
重新加载模块reload mod_cdr_pg_csv
再打电话就有录音路径生成了
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
名称栏目:FreeSWITCH折腾笔记3——数据库修改为postgresql-创新互联
浏览路径:https://www.cdcxhl.com/article12/dspsgc.html
成都网站建设公司_创新互联,为您提供营销型网站建设、建站公司、电子商务、网站排名、网站建设、关键词优化
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联