FreeSWITCH及VOIP,Openser,电话机器人等产品中文技术资讯、交流、沟通、培训、咨询、服务一体化网络。QQ群:293697898
来自于: https://wiki.freeswitch.org/wiki/PostgreSQL_in_the_core
一、 安装依赖包
CentOS
yum install libpq-devel
Debian
sudo apt-get install libpq-dev
二、 配置.pc libpq.pc
export PKG_CONFIG_PATH=/usr/pgsql-9.3/lib/pkgconfig
export PATH=/usr/pgsql-9.3/bin:$PATH
./configure --enable-core-pgsql-support
三、 switch.conf.xml
html
<param name="core-db-dsn" value="pgsql://hostaddr=127.0.0.1 dbname=freeswitch user=freeswitch password= options='-c client_min_messages=NOTICE' application_name='freeswitch'" />