[SR-Users] Kamailio ERROR "Address already in use" in tcp_init().

2016-06-19 Thread joey . ren






Hello,
A
problem happened when I am trying to start kamailio server,

the following errors appear:
[root@localhost mysql]# kamctl start
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
 
INFO: Starting Kamailio :
 
ERROR: PID file /var/run/kamailio/kamailio.pid
does not exist -- Kamailio start failed
[root@localhost mysql]# kamailio -M 8 -E -e
-dd
0(3832) INFO:  [main.c:1911]:
main(): private (per process) memory: 8388608 bytes
loading modules under config path:
/usr/local/lib64/kamailio/modules/
0(3832) INFO:  [sctp_core.c:75]:
sctp_core_check_support(): SCTP API not enabled - if you want to
use it, load sctp module
0(3832) WARNING: 
[socket_info.c:1303]: fix_hostname(): could not rev. resolve
10.10.10.12
0(3832) WARNING: 
[socket_info.c:1303]: fix_hostname(): could not rev. resolve
10.10.10.12
Listening on

udp: 127.0.0.1:5060

udp: 61.141.*.*:5060

udp: 10.10.10.12:5060

tcp: 127.0.0.1:5060

tcp: 61.141. *.*:5060

tcp: 10.10.10.12:5060
Aliases:

tcp: *.com:5060

tcp: localhost:5060

tcp: localhost.localdomain:5060

udp: *.com:5060

udp: localhost:5060

udp: localhost.localdomain:5060
 
0(3832) INFO:  [tcp_main.c:4657]:
init_tcp(): using epoll_lt as the io watch method (auto
detected)
0(3834) INFO: rr [../outbound/api.h:54]:
ob_load_api(): unable to import bind_ob - maybe module is not
loaded
0(3834) INFO: rr [rr_mod.c:174]: mod_init():
outbound module not available
0(3834) INFO: usrloc [hslot.c:51]:
ul_init_locks(): locks array size 1024
0(3834) INFO: auth [auth_mod.c:333]: mod_init():
auth: qop set, but nonce-count (nc_enabled) support
disabled
0(3834) INFO:  [udp_server.c:150]:
probe_max_receive_buffer(): SO_RCVBUF is initially
129024
0(3834) INFO:  [udp_server.c:200]:
probe_max_receive_buffer(): SO_RCVBUF is finally 262142
0(3834) INFO:  [udp_server.c:150]:
probe_max_receive_buffer(): SO_RCVBUF is initially
129024
0(3834) INFO:  [udp_server.c:200]:
probe_max_receive_buffer(): SO_RCVBUF is finally 262142
0(3834) INFO:  [udp_server.c:150]:
probe_max_receive_buffer(): SO_RCVBUF is initially
129024
0(3834) INFO:  [udp_server.c:200]:
probe_max_receive_buffer(): SO_RCVBUF is finally 262142
0(3834) ERROR:  [tcp_main.c:2790]:
tcp_init(): bind(a, 0x2b7d245f0f6c, 16) on 127.0.0.1:5060 : Address
already in use
0(3834) INFO:  [sctp_core.c:53]:
sctp_core_destroy(): SCTP API not initialized
[root@localhost mysql]#
 
Could someone help me
to resolve these errors? Thanks in advance.
 
Best Regards!
Joey
CE, SW Dept. II, Coolpad
Corporation
www.coolpad.com
__
 
Office: + (86)75566866686
Mobile: + (86)18566237951
Email: renchao...@yulong.com
__
 

--
申明:本邮件所现内容,仅作为宇龙通信及其关联方(包括但不限于酷派集团、东莞宇龙、西安酷派、酷派软件、奇酷科技、大神电子等)与贵司之间就合作的事宜进行的交流、沟通
、洽谈、商议,不做为承诺,一切承诺必须经过正规授权且书面文本盖章为准。如未经正式授权且书面盖章确认,宇龙通信及其关联方不对贵司因本邮件做出的任
何行为负责。 DECLARATION:All contents of this E-mail, are only regarded
as the exchanges, communication, negotiation and deliberation, not
as promise with respect to the cooperation between Yulong Computer
Telecommunication Scientific (Shenzhen) Co., Ltd ( the “Yulong” )
and its Affiliates, including but not limited to Coolpad Group
Limited, Dongguan Yulong Computer Telecommunication Scientific Co.,
Ltd, Xi’an Coolpad Software Tech Co., Ltd and Coolpad Software Tech
(Shenzhen) Co., Ltd,Qiku Internet Network Scientific (Shenzhen)
Co., Ltd,Dazen E-commerce Co., Ltd, and your corporation. All
commitments must be written by a duly authorized and sealed shall
prevail, if not, Yulong and its Affliates shall not be liable for
any actions taken by your corporation due to this E-mail.
--机密:此电子邮件所包含内容具有机密性,并且可能受到法律的保护。如果您不属于以上电子邮件的目标接收者,您不得细读,使用,传播,存储,散布或
复制该电子邮件中的任何信息。如果您已经误收此电子邮件,请您立即通知我们并删除原电子邮件。 CONFIDENTIAL: The
content and information contained in this E-mail is confidential
and may be subject to legal privilege. If you are not the intended
recipient as indicated above, you must not peruse, use,
disseminate, store up distribute or copy any information contained
in this E-mail. If you have received this message in error, please
notify us and delete the original message immediately.


___
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] No other running SIP apllication on the machine.//答复: Kamailio ERROR "Address already in use" in tcp_init().

2016-06-20 Thread joey . ren






Hello,
I don’t
find other running SIP application except kamailio on the machine,
and the following information appear:
[root@localhost
kamailio]# netstat -anul and grep on 5060
Active
Internet connections (servers and established)
Proto
Recv-Q Send-Q Local Address  
Foreign
Address
State
udp   
0  0
127.0.0.1:57756
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
127.0.0.1:45601
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
127.0.0.1:56485
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
127.0.0.1:53   
0.0.0.0:*  
udp   
0  0
0.0.0.0:40761  
0.0.0.0:*  
udp  
 0  0
127.0.0.1:40771
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
127.0.0.1:5060 
0.0.0.0:*  
udp   
0  0
10.10.10.12:5060   
0.0.0.0:*  
udp   
0  0
61.141.*.*:5060 
0.0.0.0:*  
udp   
0  0
127.0.0.1:5060 
0.0.0.0:*  
udp   
0  0
127.0.0.1:58325
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
0.0.0.0:984
0.0.0.0:*  
udp   
0  0
0.0.0.0:987
0.0.0.0:*  
udp   
0  0
127.0.0.1:55902
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
0.0.0.0:5353   
0.0.0.0:*  
udp   
0  0
0.0.0.0:111
0.0.0.0:*  
udp   
0  0
127.0.0.1:56949
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
0.0.0.0:631
0.0.0.0:*  
udp   
0  0
127.0.0.1:37758
127.0.0.1:7722 
ESTABLISHED
udp   
0  0
0.0.0.0:60415  
0.0.0.0:*  
udp   
0  0
:::38038   
:::*   
udp   
0  0
::1:53 
:::*   
udp   
0  0
:::5353
:::*   
[root@localhost
kamailio]#
 
[root@localhost
kamailio]# netstat -tlnp|grep 5060
tcp   
0  0
10.10.10.12:5060   
0.0.0.0:*  
LISTEN  12921/kamailio
tcp   
0  0 61.141.
*.*:5060 
0.0.0.0:*  
LISTEN  12921/kamailio
tcp   
0  0
127.0.0.1:5060 
0.0.0.0:*  
LISTEN  12921/kamailio
[root@localhost
kamailio]#
 
[root@localhost
kamailio]# netstat -pan|grep 5060
tcp   
0  0
10.10.10.12:5060   
0.0.0.0:*  
LISTEN  12921/kamailio
tcp   
0  0 61.141.
*.*:5060 
0.0.0.0:*  
LISTEN  12921/kamailio
tcp   
0  0
127.0.0.1:5060 
0.0.0.0:*  
LISTEN  12921/kamailio
tcp   
0  0 :::61.141.
*.*:80 :::42.232. *.*:15060
FIN_WAIT2   -
tcp   
0  0 :::61.141.
*.*:80 :::49.76. *.*:50606 
FIN_WAIT2   -
udp   
0  0
127.0.0.1:5060 
0.0.0.0:*  
10897/kamailio
udp   
0  0
10.10.10.12:5060   
0.0.0.0:*  
12883/kamailio
udp   
0  0 61.141.
*.*:5060 
0.0.0.0:*   
   12883/kamailio
udp   
0  0
127.0.0.1:5060 
0.0.0.0:*  
12883/kamailio
[root@localhost
kamailio]#
 
Here, 61.141.*.*:5060
is my kamailio host, and 10.10.10.12:5060 is my mysql
host.
Thanks in advance.
 

Best Regards!

Joey

CE, SW Dept. II, Coolpad Corporation
www.coolpad.com

__
 
Office: +
(86)75566866686
Mobile: +
(86)18566237951
Email:
renchao...@yulong.com

__
 
发件人:
sr-users
[mailto:sr-users-boun...@lists.sip-router.org]
代表 Zaka发送时间:
2016年6月20日 14:29收件人:
Kamailio (SER) - Users Mailing
List主题: Re: [SR-Users] Kamailio ERROR "Address already in use" in
tcp_init().
 
A netstat  -anul and grep on
5060

On 20 Jun 2016 08:26, "Olle
E. Johansson"  wrote:

 



On 20 Jun 2016, at 04:32,
joey@yulong.com wrote:

 

0(3834)
ERROR:  [tcp_main.c:2790]: tcp_init(): bind(a,
0x2b7d245f0f6c, 16) on 127.0.0.1:5060 : Address already in use



 

Kamailio could not listen
to the localhost socket - are you running some other SIP
application on the same machine?


 


/O



___
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


--
申明:本邮件所现内容,仅作为宇龙通信及其关联方(包括但不限于酷派集团、东莞宇龙、西安酷派、酷派软件、奇酷科技、大神电子等)与贵司之间就合作的事宜进行的交流、沟通
、洽谈、商议,不做为承诺,一切承诺必须经过正规授权且书面文本盖章为准。如未经正式授权且书面盖章确认,宇龙通信及其关联方不对贵司因本邮件做出的任
何行为负责。 DECLARATION:All contents of this E-mail, are only regarded
as th