Hi All,
Finally, the kamalio was installed on the Solaris 10 sparc and I can start it with the 'kamctl start', and it is running as showed below. However I cann't add user by using the kamctl, it always says the user already exists. And actually the susbciber table is still empty in mysql.
Mysql is accessable with command "mysql -u openser -p ".
What could be the issue?
What are the log files I can check except the syslog? Didn't find an error in the syslog.
=======
AppSer01:root@/usr/local/kamailio-3.0/sbin$ kamctl add 2000 2000 usage: tail [+/-[n][lbc][f]] [file] tail [+/-[n][l][r|f]] [file] INFO: user '2000' already exists
AppSer01:root@/usr/local/kamailio-3.0/sbin$ kamctl ps Process:: ID=0 PID=8888 Type=attendant Process:: ID=1 PID=8890 Type=udp receiver child=0 sock=210.x.x.x:5060 Process:: ID=2 PID=8891 Type=udp receiver child=1 sock=210.x.x.x:5060 Process:: ID=3 PID=8892 Type=udp receiver child=2 sock=210.x.x.x:5060 Process:: ID=4 PID=8893 Type=udp receiver child=3 sock=210.x.x.x:5060 Process:: ID=5 PID=8894 Type=slow timer Process:: ID=6 PID=8895 Type=timer Process:: ID=7 PID=8896 Type=MI FIFO Process:: ID=8 PID=8897 Type=ctl handler Process:: ID=9 PID=8898 Type=tcp receiver child=0 Process:: ID=10 PID=8899 Type=tcp receiver child=1 Process:: ID=11 PID=8905 Type=tcp receiver child=2 Process:: ID=12 PID=8906 Type=tcp receiver child=3 Process:: ID=13 PID=8907 Type=tcp main process AppSer01:root@/usr/local/kamailio-3.0/sbin$
=======
Thanks,
Kevin
_________________________________________________________________ SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻! http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c
Am 10.06.2010 03:12, schrieb JinKevin:
AppSer01:root@/usr/local/kamailio-3.0/sbin$ kamctl add 2000 2000 usage: tail [+/-[n][lbc][f]] [file] tail [+/-[n][l][r|f]] [file] INFO: user '2000' already exists
between your kamctl command and the error message (user '2000' already exists) is an error produced by the tail command.
Looks like kamctl uses tail in a way which is not supported on your OS.
regards klaus
Thanks Klaus,
After change the LAST_LINE in the kamctlrc, the tail error is going, but it still says user "xxxx" already exists.
# tail tool LAST_LINE="tail -1"
I find the script below returns "false" which makes the kamctl exit.
# params: user # output: false if exists, true otherwise is_user() { set_user $1 QUERY="select count(*) from $SUB_TABLE where \ $SUBSCRIBER_COLUMN='$OSERUSER' and $REALM_COLUMN='$OSERDOMAIN';" CNT=`$DBROCMD "$QUERY" "$DBRAWPARAMS" | $EGREP -v ERROR | $LAST_LINE` mdbg "is_user: user counter=$CNT" if [ "$CNT" = "0" ] ; then false else true fi }
What could be the cause?
Thanks,
Kevin
Date: Thu, 10 Jun 2010 10:11:18 +0200 From: klaus.mailinglists@pernau.at To: kevin.jzh@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Fail to add user account
Am 10.06.2010 03:12, schrieb JinKevin:
AppSer01:root@/usr/local/kamailio-3.0/sbin$ kamctl add 2000 2000 usage: tail [+/-[n][lbc][f]] [file] tail [+/-[n][l][r|f]] [file] INFO: user '2000' already exists
between your kamctl command and the error message (user '2000' already exists) is an error produced by the tail command.
Looks like kamctl uses tail in a way which is not supported on your OS.
regards klaus
_________________________________________________________________ 约会说不清地方?来试试微软地图最新msn互动功能! http://ditu.live.com/?form=TL&swm=1