Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy
Hi, Yes, I changed the kamailio config as well, but didn't see any packet from Kamailio on the port. And the error message is as following: WARNING: tm [uac.c:111]: Warning: uac does not spread across the whole hash table ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy ERROR: nathelper [nathelper.c:2492]: proxy udp:210.13.x.y:7722 does not respond, disable it ERROR: nathelper [nathelper.c:3144]: no available proxies ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy ERROR: nathelper [nathelper.c:2492]: proxy udp:210.13.x.y:7722 does not respond, disable it ERROR: nathelper [nathelper.c:3144]: no available proxies ERROR: nathelper [nathelper.c:2627]: no available proxies ERROR: nathelper [nathelper.c:2627]: no available proxies Thanks, Kevin Date: Wed, 28 Jul 2010 10:31:18 +0200 From: mico...@gmail.com To: kevin@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy Hello, On 7/27/10 4:21 PM, JinKevin wrote: Hi Daniel, I use the rtpproxy 1.2.1. And seems loopback interface cann't be caputred on Solaris. I have tried the rtpproxy on other interface and tried the caputre, however didn't see anything on port 7722. have you updated kamailio config to send to the other interface as well? What are now the error messages you get from kamailio? You should see the messages sent by kamailio to rtpproxy... One more thing like to mention is that I got some error like below: if gcc -DHAVE_CONFIG_H -I. -I. -I.-std=gnu99 -Wall -Wno-uninitialized -g -O2 -MT rtpp_notify.o -MD -MP -MF .deps/rtpp_notify.Tpo -c -o rtpp_notify.o rtpp_notify.c; \ then mv -f .deps/rtpp_notify.Tpo .deps/rtpp_notify.Po; else rm -f .deps/rtpp_notify.Tpo; exit 1; fi rtpp_notify.c: In function `reconnect_timeout_handler': rtpp_notify.c:240: error: `AF_LOCAL' undeclared (first use in this function) rtpp_notify.c:240: error: (Each undeclared identifier is reported only once rtpp_notify.c:240: error: for each function it appears in.) gmake[1]: *** [rtpp_notify.o] Error 1 gmake[1]: Leaving directory `/opt/csw/src/rtpproxy' gmake: *** [all] Error 2 I search on internet and added the following in the beginnng of the rtpp_notify.c, and the make gets through. Not sure if this change has any issue. #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif This is rtpproxy code, perhaps is better to ask on rtpproxy devel list: http://lists.rtpproxy.org/mailman/listinfo/devel Cheers, Daniel Thanks, Kevin Date: Tue, 27 Jul 2010 11:53:21 +0200 From: mico...@gmail.com To: kevin@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy Hello, can you sniff the loopback interface for communication on port 7722 (i.e., using ngrep/wireshark, etc...)? What is the version of rtppproxy do you have? Cheers, Daniel On 7/27/10 3:58 AM, JinKevin wrote: Guys, Anyone has some feedback on this? Thanks, Kevin Hi All, I have the kamailio configed as below on Solaris 10 (Sparc): # - nathelper - #!ifdef WITH_NAT modparam(nathelper, rtpproxy_sock, udp:127.0.0.1:7722) modparam(nathelper, natping_interval, 30) modparam(nathelper, ping_nated_only, 1) modparam(nathelper, sipping_bflag, 7) modparam(nathelper, sipping_from, sip:pin...@kamailio.org) modparam(registrar|nathelper, received_avp, $avp(i:80)) modparam(usrloc, nat_bflag, 6) #!endif and rtpproxy is started as AppSer01:ipunity@/opt/ipunity$ ps -ef |grep rtp ipunity 4687 1 0 12:58:20 ? 0:00 /usr/local/bin/rtpproxy -l 210.xx.xx.xx -s udp:localhost:7722 AppSer01:ipunity@/opt/ipunity$ netstat -an |grep 7722 127.0.0.1.7722Idle 127.0.0.1.41509 127.0.0.1.7722 Connected 127.0.0.1.41510 127.0.0.1.7722 Connected 127.0.0.1.41511 127.0.0.1.7722 Connected 127.0.0.1.41512 127.0.0.1.7722 Connected 127.0.0.1.41513 127.0.0.1.7722 Connected 127.0.0.1.41514 127.0.0.1.7722 Connected 127.0.0.1.41515 127.0.0.1.7722 Connected 127.0.0.1.41516 127.0.0.1.7722 Connected 127.0.0.1.41517 127.0.0.1.7722 Connected 127.0.0.1.41518 127.0.0.1.7722 Connected 127.0.0.1.41519 127.0.0.1.7722 Connected However, kamailio is not able to connect the rtpporxy, Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy udp:127.0.0.1:7722 does not respond
Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy
Hi Daniel, Here is the debug message related to nethelper in the kamailio log: The proxy is circling btw enabled and disabled, what could be the cause? 4(15247) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 4(15247) ERROR: nathelper [nathelper.c:3144]: no available proxies 1(15244) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 1(15244) ERROR: nathelper [nathelper.c:3144]: no available proxies 2(15245) INFO: nathelper [nathelper.c:2369]: rtp proxy udp:127.0.0.1:7722 found, support for it re-enabled 3(15246) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 3(15246) DEBUG: nathelper [nathelper.c:3196]: proxy reply: 46634 210.13.x.y 4(15247) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 4(15247) ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy 4(15247) ERROR: nathelper [nathelper.c:2492]: proxy udp:127.0.0.1:7722 does not respond, disable it 4(15247) ERROR: nathelper [nathelper.c:3144]: no available proxies 1(15244) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 1(15244) ERROR: nathelper [nathelper.c:3144]: no available proxies 2(15245) ERROR: nathelper [nathelper.c:2627]: no available proxies 4(15247) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 4(15247) ERROR: nathelper [nathelper.c:3144]: no available proxies 3(15246) DEBUG: nathelper [nhelpr_funcs.c:148]: type application/sdp found valid 3(15246) ERROR: nathelper [nathelper.c:3144]: no available proxies 1(15244) ERROR: nathelper [nathelper.c:2627]: no available proxies Thanks, Kevin From: kevin@hotmail.com To: mico...@gmail.com CC: sr-users@lists.sip-router.org Subject: RE: [SR-Users] Kamailio 3.0 cann't access the RTPProxy Date: Wed, 28 Jul 2010 19:42:27 +0800 Hi, Yes, I changed the kamailio config as well, but didn't see any packet from Kamailio on the port. And the error message is as following: WARNING: tm [uac.c:111]: Warning: uac does not spread across the whole hash table ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy ERROR: nathelper [nathelper.c:2492]: proxy udp:210.13.x.y:7722 does not respond, disable it ERROR: nathelper [nathelper.c:3144]: no available proxies ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy ERROR: nathelper [nathelper.c:2492]: proxy udp:210.13.x.y:7722 does not respond, disable it ERROR: nathelper [nathelper.c:3144]: no available proxies ERROR: nathelper [nathelper.c:2627]: no available proxies ERROR: nathelper [nathelper.c:2627]: no available proxies Thanks, Kevin Date: Wed, 28 Jul 2010 10:31:18 +0200 From: mico...@gmail.com To: kevin@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy Hello, On 7/27/10 4:21 PM, JinKevin wrote: Hi Daniel, I use the rtpproxy 1.2.1. And seems loopback interface cann't be caputred on Solaris. I have tried the rtpproxy on other interface and tried the caputre, however didn't see anything on port 7722. have you updated kamailio config to send to the other interface as well? What are now the error messages you get from kamailio? You should see the messages sent by kamailio to rtpproxy... One more thing like to mention is that I got some error like below: if gcc -DHAVE_CONFIG_H -I. -I. -I.-std=gnu99 -Wall -Wno-uninitialized -g -O2 -MT rtpp_notify.o -MD -MP -MF .deps/rtpp_notify.Tpo -c -o rtpp_notify.o rtpp_notify.c; \ then mv -f .deps/rtpp_notify.Tpo .deps/rtpp_notify.Po; else rm -f .deps/rtpp_notify.Tpo; exit 1; fi rtpp_notify.c: In function `reconnect_timeout_handler': rtpp_notify.c:240: error: `AF_LOCAL' undeclared (first use in this function) rtpp_notify.c:240: error: (Each undeclared identifier is reported only once rtpp_notify.c:240: error: for each function it appears in.) gmake[1]: *** [rtpp_notify.o] Error 1 gmake[1]: Leaving directory `/opt/csw/src/rtpproxy' gmake: *** [all] Error 2 I search on internet and added the following in the beginnng of the rtpp_notify.c, and the make gets through. Not sure if this change has any issue. #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif This is rtpproxy code, perhaps is better to ask on rtpproxy devel list: http://lists.rtpproxy.org/mailman/listinfo/devel Cheers, Daniel Thanks, Kevin Date: Tue, 27 Jul 2010 11:53:21 +0200 From: mico...@gmail.com To: kevin@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy Hello, can you sniff the loopback interface for communication on port 7722 (i.e., using ngrep/wireshark, etc...)? What is the version of rtppproxy do
Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy
Hi Daniel, I use the rtpproxy 1.2.1. And seems loopback interface cann't be caputred on Solaris. I have tried the rtpproxy on other interface and tried the caputre, however didn't see anything on port 7722. One more thing like to mention is that I got some error like below: if gcc -DHAVE_CONFIG_H -I. -I. -I.-std=gnu99 -Wall -Wno-uninitialized -g -O2 -MT rtpp_notify.o -MD -MP -MF .deps/rtpp_notify.Tpo -c -o rtpp_notify.o rtpp_notify.c; \ then mv -f .deps/rtpp_notify.Tpo .deps/rtpp_notify.Po; else rm -f .deps/rtpp_notify.Tpo; exit 1; fi rtpp_notify.c: In function `reconnect_timeout_handler': rtpp_notify.c:240: error: `AF_LOCAL' undeclared (first use in this function) rtpp_notify.c:240: error: (Each undeclared identifier is reported only once rtpp_notify.c:240: error: for each function it appears in.) gmake[1]: *** [rtpp_notify.o] Error 1 gmake[1]: Leaving directory `/opt/csw/src/rtpproxy' gmake: *** [all] Error 2 I search on internet and added the following in the beginnng of the rtpp_notify.c, and the make gets through. Not sure if this change has any issue. #ifndef AF_LOCAL #define AF_LOCAL AF_UNIX #endif Thanks, Kevin Date: Tue, 27 Jul 2010 11:53:21 +0200 From: mico...@gmail.com To: kevin@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy Hello, can you sniff the loopback interface for communication on port 7722 (i.e., using ngrep/wireshark, etc...)? What is the version of rtppproxy do you have? Cheers, Daniel On 7/27/10 3:58 AM, JinKevin wrote: Guys, Anyone has some feedback on this? Thanks, Kevin Hi All, I have the kamailio configed as below on Solaris 10 (Sparc): # - nathelper - #!ifdef WITH_NAT modparam(nathelper, rtpproxy_sock, udp:127.0.0.1:7722) modparam(nathelper, natping_interval, 30) modparam(nathelper, ping_nated_only, 1) modparam(nathelper, sipping_bflag, 7) modparam(nathelper, sipping_from, sip:pin...@kamailio.org) modparam(registrar|nathelper, received_avp, $avp(i:80)) modparam(usrloc, nat_bflag, 6) #!endif and rtpproxy is started as AppSer01:ipunity@/opt/ipunity$ ps -ef |grep rtp ipunity 4687 1 0 12:58:20 ? 0:00 /usr/local/bin/rtpproxy -l 210.xx.xx.xx -s udp:localhost:7722 AppSer01:ipunity@/opt/ipunity$ netstat -an |grep 7722 127.0.0.1.7722Idle 127.0.0.1.41509 127.0.0.1.7722 Connected 127.0.0.1.41510 127.0.0.1.7722 Connected 127.0.0.1.41511 127.0.0.1.7722 Connected 127.0.0.1.41512 127.0.0.1.7722 Connected 127.0.0.1.41513 127.0.0.1.7722 Connected 127.0.0.1.41514 127.0.0.1.7722 Connected 127.0.0.1.41515 127.0.0.1.7722 Connected 127.0.0.1.41516 127.0.0.1.7722 Connected 127.0.0.1.41517 127.0.0.1.7722 Connected 127.0.0.1.41518 127.0.0.1.7722 Connected 127.0.0.1.41519 127.0.0.1.7722 Connected However, kamailio is not able to connect the rtpporxy, Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy udp:127.0.0.1:7722 does not respond, disable it Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:3144]: no available proxies Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy udp:127.0.0.1:7722 does not respond, disable it Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:3144]: no available proxies Jul 24 12:59:04 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:2627]: no available proxies Jul 24 12:59:04 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:2627]: no available proxies Any helps are appreciated. Thanks, Kevin 聊天+搜索+邮箱 想要轻松出游,手机MSN帮你搞定! 立刻下载! 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载! ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://www.asipto.com/ _ MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取! http://kaba.msn.com.cn/?k=1___ SIP
[SR-Users] Kamailio 3.0 cann't access the RTPProxy
Hi All, I have the kamailio configed as below on Solaris 10 (Sparc): # - nathelper - #!ifdef WITH_NAT modparam(nathelper, rtpproxy_sock, udp:127.0.0.1:7722) modparam(nathelper, natping_interval, 30) modparam(nathelper, ping_nated_only, 1) modparam(nathelper, sipping_bflag, 7) modparam(nathelper, sipping_from, sip:pin...@kamailio.org) modparam(registrar|nathelper, received_avp, $avp(i:80)) modparam(usrloc, nat_bflag, 6) #!endif and rtpproxy is started as AppSer01:ipunity@/opt/ipunity$ ps -ef |grep rtp ipunity 4687 1 0 12:58:20 ? 0:00 /usr/local/bin/rtpproxy -l 210.xx.xx.xx -s udp:localhost:7722 AppSer01:ipunity@/opt/ipunity$ netstat -an |grep 7722 127.0.0.1.7722Idle 127.0.0.1.41509 127.0.0.1.7722 Connected 127.0.0.1.41510 127.0.0.1.7722 Connected 127.0.0.1.41511 127.0.0.1.7722 Connected 127.0.0.1.41512 127.0.0.1.7722 Connected 127.0.0.1.41513 127.0.0.1.7722 Connected 127.0.0.1.41514 127.0.0.1.7722 Connected 127.0.0.1.41515 127.0.0.1.7722 Connected 127.0.0.1.41516 127.0.0.1.7722 Connected 127.0.0.1.41517 127.0.0.1.7722 Connected 127.0.0.1.41518 127.0.0.1.7722 Connected 127.0.0.1.41519 127.0.0.1.7722 Connected However, kamailio is not able to connect the rtpporxy, Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy udp:127.0.0.1:7722 does not respond, disable it Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:3144]: no available proxies Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 788202 local0.error] ERROR: nathelper [nathelper.c:2457]: can't send command to a RTP proxy Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 844113 local0.error] ERROR: nathelper [nathelper.c:2492]: proxy udp:127.0.0.1:7722 does not respond, disable it Jul 24 12:58:59 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22867]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:3144]: no available proxies Jul 24 12:59:04 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:2627]: no available proxies Jul 24 12:59:04 AppSer01 /usr/local/kamailio-3.0/sbin/kamailio[22870]: [ID 582370 local0.error] ERROR: nathelper [nathelper.c:2627]: no available proxies Any helps are appreciated. Thanks, Kevin _ SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻! http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Fail to add user account
Thanks Klaus, After change the LAST_LINE in the kamctlrc, the tail error is going, but it still says user 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.mailingli...@pernau.at To: kevin@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=TLswm=1___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Fail to add user account
Have changed the kamctl from if [ $? -eq 0 ] ; then minfo user '$1' already exists exit 1 fi to if [ $? -ne 0 ] ; then minfo user '$1' already exists exit 1 fi Now I can add user successfully. Seems it's a bug in the script in kamailio 3.0.2 Thanks, Kevin Date: Thu, 10 Jun 2010 16:48:13 +0200 From: klaus.mailingli...@pernau.at To: kevin@hotmail.com Subject: Re: [SR-Users] Fail to add user account I have no idea. Try supplying a domain too: kamctl add u...@yourdomain.com passwd regards klaus Am 10.06.2010 16:32, schrieb JinKevin: Thanks Klaus, After change the LAST_LINE in the kamctlrc, the tail error is going, but it still says user 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.mailingli...@pernau.at To: kevin@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://cn.msn.com/ _ SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻! http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Fail to add user account
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= 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___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10
Many thanks, Henning Yes, I have completed the compile. I'm going on to install it but got some other issue as posted in another thread :(. From: henning.westerh...@1und1.de To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10 Date: Fri, 4 Jun 2010 11:11:27 +0200 CC: kevin@hotmail.com; and...@iptel.org On Thursday 03 June 2010, JinKevin wrote: [..] /usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident /usr/ccs/bin/yaccpar: In function `yyparse': /usr/ccs/bin/yaccpar:164: wa rning: label `yynewstate' defined but not used gcc -m64 -O2 action.o atomic_ops.o basex.o bit_scan.o cfg_core.o [..] cfg.tab.o -ldl -lresolv -L/usr/local/lib - lxnet -lnsl -lrt -o kamailio Hope this is as expected and I can go forward. Hi Kevin, it seems that it compiled and linked now a 'kamailio' binary, so you should be able to give it a first try. The warnings above from yacc should be harmless. Cheers, Henning _ 想知道明天天气如何?必应告诉你! http://cn.bing.com/search?q=%E5%A4%A9%E6%B0%94%E9%A2%84%E6%8A%A5form=MICHJ2___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] install: kamctlrc was not found anywhere!
While running the[ gmake prefix=/usr/local/kamailio-3.0 install ] on solaris 10 sparc got the issue below, please help. Thanks, Kevin = Makefile.defs defs skipped gmake[1]: Entering directory `/usr/local/src/kamailio-3.0.0/kamailio/utils/sercmd' gmake[1]: `sercmd' is up to date. gmake[1]: Leaving directory `/usr/local/src/kamailio-3.0.0/kamailio/utils/sercmd' Makefile.defs defs skipped gmake[1]: Entering directory `/usr/local/src/kamailio-3.0.0/kamailio/utils/kamctl' # kamctl config touch /usr/local/kamailio-3.0/etc/kamailio//kamctlrc.sample ginstall -m 644 kamctlrc \ /usr/local/kamailio-3.0/etc/kamailio//kamctlrc.sample find: cannot follow symbolic link /etc/init.d/ipunity: No such file or directory find: cannot follow symbolic link /etc/rc3.d/K02ipunity: No such file or directory find: cycle detected for /lib/32/ find: cycle detected for /lib/secure/32/ find: cycle detected for /usr/lib/locale/common/32/ find: cycle detected for /usr/lib/locale/common/LC_CTYPE/32/ find: cycle detected for /usr/lib/locale/common/LO_LTYPE/32/ find: cannot follow symbolic link /usr/lib/locale/es_MX.UTF-8/LC_MESSAGES: No such file or directory find: cannot follow symbolic link /usr/lib/locale/fr_CA.UTF-8/LC_MESSAGES: No such file or directory find: cycle detected for /usr/lib/secure/32/ find: cannot follow symbolic link /usr/lib/sparcv9/llib-ladm.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-laio.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lbsm.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lc.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ldl.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lcmd.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lcontract.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lctf.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lcurses: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lcurses.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ldevice.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ldevid.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ldevinfo.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ldoor.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lefi.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lelf.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lgen.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lintl.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lkstat.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lmd5.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lnsl.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lnvpair.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lpam.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lposix4.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lpthread.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lrt.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lresolv.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lrtld_db.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lscf.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lsec.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lsecdb.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lsendfile.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lsocket.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lsysevent.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ltermcap: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ltermcap.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ltermlib: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-ltermlib.ln: No such file or directory find: cannot follow symbolic link /usr/lib/sparcv9/llib-lthread.ln: No such file or
Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10
Date: Wed, 2 Jun 2010 16:54:26 +0200 From: and...@iptel.org To: kevin@hotmail.com CC: sr-users@lists.sip-router.org Subject: Re: [SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10 On Jun 02, 2010 at 08:32, JinKevin kevin@hotmail.com wrote: Hi Andrei, gcc -dM -E -x c /dev/null #define __sparc__ 1 [...] isainfo -n sparcv9 isainfo -b 64 uname -m sun4u Now I remembered :-) The problem on sparcv9 is that you can build either sparc32 or sparc64 code. The make system tries to use the configured compiler and use its default architecture, in this case sparc32. This changed from older ser or kamailio version, where IIRC 64 bits was always used on sparcv9 (the isainfo arch was used). The change was needed for better cross-compiler support, snow leopard (boots 32 bits kernel, but gcc is configured to produce 64 bit binaries). So if you have all the needed 64 bits libs installed, you should compile for sparc64. Either make config CC_EXTRA_OPTS=-m64 or make config ARCH=sparc64 should do it (don't forget to re-run it after any make proper). [...] And bison is also installed, yacc -V I couldn't reproduce the yacc/bison problem. For me it compiles flawlessly on an old sparcv9 (solaris 9, bison 1.875d). Could you try running: yacc -d -b cfg cfg.y by hand and see what happens? (any error? cfg.tab.h and cfg.tab.c created?) It just reports Broken Pipe $ yacc -d -b cfg cfg.y Broken Pipe If I removed the bison , then got some other error as below: $ yacc -d -b cfg cfg.y cfg.y, line 103: fatal: invalid escape, or illegal reserved word: expect Thanks, Kevin _ SkyDrive电子画册,带你领略精彩照片,分享“美”时“美”刻! http://www.windowslive.cn/campaigns/e-magazine/ngmchina/?a=c___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Failed to make module db_mysql on Solaris 10 Sparc
Hi All, While [ gmake prefix=/usr/local/kamailio-3.0 all ] I got the error below regarding the db_mysql, however I have already installed the mysql server in the path /usr/local/mysql and all the .h and lib files are there. Please suggest what's wrong here and how to fix the issue. = Makefile.defs defs skipped gmake[1]: Entering directory `/usr/local/src/kamailio-3.0.0/kamailio/modules/db_mysql' gcc -fPIC -DPIC -g -O9 -funroll-loops -m64 -mcpu=ultrasparc -mtune=ultrasparc -Wall-DNAME='kamailio' -DVERSION='3.0.2' -DARCH='sparc64' -DOS='solaris_' -DOS_QUOTED='solaris' -DCOMPILER='gcc 3.4.6' -D__CPU_sparc64 -D__OS_solaris -DSER_VER=302 -DCFG_DIR='/usr/local/kamailio-3.0/etc/kamailio/' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DF_MALLOC -DUSE_TLS -DTLS_HOOKS -DSTATISTICS -DMALLOC_STATS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DSPARC64_MODE -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -DHAVE_FILIO_H -DSER_MOD_INTERFACE -I/usr/local/include -I/usr/local/include/mysql -I/usr/local/mysql/include -I/usr/include/mysql -DMOD_NAME='db_mysql' -c km_dbase.c -o km_dbase.o -MMD -MP km_dbase.c:38:25: warning: mysql/mysql.h: No such file or directory km_dbase.c:39:26: warning: mysql/errmsg.h: No such file or directory km_dbase.c:40:33: warning: mysql/mysql_version.h: No such file or directory In file included from km_dbase.c:47: km_my_con.h:47: error: syntax error before MYSQL_RES km_my_con.h:47: warning: no semicolon at end of struct or union km_my_con.h:48: warning: type defaults to `int' in declaration of `con' km_my_con.h:48: warning: data definition has no type or storage class km_my_con.h:49: error: syntax error before row km_my_con.h:49: warning: type defaults to `int' in declaration of `row' km_my_con.h:49: warning: data definition has no type or storage class km_my_con.h:51: error: syntax error before '}' token km_dbase.c: In function `db_mysql_submit_query': km_dbase.c:81: error: dereferencing pointer to incomplete type km_dbase.c:82: warning: implicit declaration of function `mysql_ping' km_dbase.c:82: error: dereferencing pointer to incomplete type km_dbase.c:83: warning: implicit declaration of function `mysql_error' km_dbase.c:83: error: dereferencing pointer to incomplete type km_dbase.c:83: warning: format argument is not a pointer (arg 7) km_dbase.c:83: error: dereferencing pointer to incomplete type km_dbase.c:83: error: dereferencing pointer to incomplete type km_dbase.c:83: warning: format argument is not a pointer (arg 6) km_dbase.c:83: error: dereferencing pointer to incomplete type km_dbase.c:83: error: dereferencing pointer to incomplete type km_dbase.c:91: error: dereferencing pointer to incomplete type km_dbase.c:109: warning: implicit declaration of function `mysql_real_query' km_dbase.c:109: error: dereferencing pointer to incomplete type km_dbase.c:112: warning: implicit declaration of function `mysql_errno' km_dbase.c:112: error: dereferencing pointer to incomplete type km_dbase.c:113: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function) km_dbase.c:113: error: (Each undeclared identifier is reported only once km_dbase.c:113: error: for each function it appears in.) km_dbase.c:113: error: `CR_SERVER_LOST' undeclared (first use in this function) km_dbase.c:117: error: dereferencing pointer to incomplete type km_dbase.c:117: warning: format argument is not a pointer (arg 7) km_dbase.c:117: error: dereferencing pointer to incomplete type km_dbase.c:117: error: dereferencing pointer to incomplete type km_dbase.c:117: warning: format argument is not a pointer (arg 6) km_dbase.c:117: error: dereferencing pointer to incomplete type km_dbase.c:117: error: dereferencing pointer to incomplete type km_dbase.c: In function `db_mysql_store_result': km_dbase.c:166: error: dereferencing pointer to incomplete type km_dbase.c:166: warning: implicit declaration of function `mysql_store_result' km_dbase.c:166: error: dereferencing pointer to incomplete type km_dbase.c:167: error: dereferencing pointer to incomplete type km_dbase.c:168: warning: implicit declaration of function `mysql_field_count' km_dbase.c:168: error: dereferencing pointer to incomplete type km_dbase.c:173: error: dereferencing pointer to incomplete type km_dbase.c:173: warning: format argument is not a pointer (arg 7) km_dbase.c:173: error: dereferencing pointer to incomplete type km_dbase.c:173: error: dereferencing pointer to incomplete type km_dbase.c:173: warning: format argument is not a pointer (arg 6) km_dbase.c:173: error: dereferencing pointer to incomplete type km_dbase.c:173: error: dereferencing pointer to incomplete type km_dbase.c:188: warning: implicit declaration of function `mysql_free_result' km_dbase.c:188: error:
[SR-Users] gmake: *** [cfg.tab.h] Broken Pipe while make kamailio on solaris 10
Hi All, I'm trying to install kamailio3.0.x on solaris 10 (sparc) as following: gmake prefix=/usr/local/kamailio-3.0 include_modules=db_mysql dialplan cfg gmake prefix=/usr/local/kamailio-3.0 all but get the Broken Pipe error as below: snip - from cfg/cfg_struct.c:40: cfg/../atomic/atomic_sparc.h:39:2: warning: #warning sparc32 atomic operations support not tested gcc -g -O9 -funroll-loops -mtune=v8 -Wall-DNAME='kamailio' -DVERSION='3.0.2' -DARCH='sparc' -DOS='solaris_' -DOS_QUOTED='solaris' -DCOMPILER='gcc 3.4.6' -D__CPU_sparc -D__OS_solaris -DSER_VER=302 -DCFG_DIR='/usr/local/kamailio-3.0/etc/kamailio/' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DF_MALLOC -DUSE_TLS -DTLS_HOOKS -DSTATISTICS -DMALLOC_STATS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -DHAVE_DEVPOLL -DHAVE_SELECT -DHAVE_FILIO_H -c cfg/cfg.c -o cfg/cfg.o -MMD -MP In file included from cfg/../atomic/atomic_native.h:68, from cfg/../atomic_ops.h:166, from cfg/cfg_struct.h:38, from cfg/cfg.c:36: cfg/../atomic/atomic_sparc.h:39:2: warning: #warning sparc32 atomic operations support not tested yacc -d -b cfg cfg.y gmake: *** [cfg.tab.h] Broken Pipe ---end of snip --- what is the cause of the issue? How should I fix it? Your help are greatly appreciated! Thanks, Kevin _ 约会说不清地方?来试试微软地图最新msn互动功能! http://ditu.live.com/?form=TLswm=1___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users