So it means you are already running one instance of kamailio. If this is the case then
killall kamailio and try again.

REGARDS,

ZAKA

On 20 Jun 2016 15:18, <joey.ren@yulong.com> wrote:

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 ::ffff:61.141. *.*:80     ::ffff:42.232. *.*:15060 FIN_WAIT2   -

tcp        0      0 ::ffff:61.141. *.*:80     ::ffff: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: renchaolin@yulong.com

______________________________

 

发件人: sr-users [mailto:sr-users-bounces@lists.sip-router.org] 代表 Zaka
发送时间: 201662014: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" <oej@edvina.net> wrote:

 

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

 

0(3834) ERROR: <core> [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 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