fusionpbx中让freeswitch使用Postgresql

vars中增加

<X-PRE-PROCESS cmd="set" data="dsn=pgsql://host=localhost dbname=freeswitch user=fusionpbx 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'" />    //增加该行可专门设置callcenter的数据库配置


然后去注释db.conf.xml、voicemail.conf.xml、internal.xml、external.xml、fifo.conf.xml、callcenter.conf.xml 中的" <param name="odbc-dsn" value="$${dsn}"/>"


由于fusionpbx完全可以通过后台管理,所以vars修改可通过登录后台打开Advanced->Variables页面进行设置,不要直接修改vars.xml文件,否则后台操作后该文件会被重新覆盖生成配置就丢失了~

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://tranfer.cn/?id=75