2011年11月23日 星期三

ubuntu 8.04 安裝 openser

# vi /etc/default/openser
RUN_OPENSER=yes

# vi /etc/openser/openserctlrc
SIP_DOMAIN=192.168.0.254
DBENGINE=MYSQL

# /usr/sbin/openserdbctl create
INFO: creating DBTEXT tables at: /usr/local/etc/openser/dbtext ...
Install presence related tables? (y/n): y
INFO: creating DBTEXT presence tables at: /usr/local/etc/openser/dbtext ...
Install tables for imc cpl siptrace domainpolicy carrierroute? (y/n): y
INFO: creating DBTEXT extra tables at: /usr/local/etc/openser/dbtext ...

設定基本上參考這邊
OpenSER installation and configuration guide on Fedora
另外我又修改幾個地方
# vi /etc/openser/openser.cfg
modparam("usrloc", "db_url",  "mysql://openser:openser@127.0.0.1/openser")
modparam("auth_db", "db_url", "mysql://openser:openser@127.0.0.1/openser")
modparam(“acc”, “radius_config”, ””)



// openserctl add USERNAME PASSWORD EMAIL

$ openserctl add 101 101 101@10.0.0.254
MySQL password for user 'openser@localhost': [openserrw]
new user '101' added
$ openserctl db show subscriber


# /etc/init.d/openser restart

要是無法啟動再開啟 debug
# vi /etc/openser/openser.cfg
log_stderror=yes


[~]@rose yan: openserctl add 617 617 cam0617@gmail.com


Reference :
Building Telephony Systems with OpenSIPS 1.6


沒有留言:

張貼留言