flexisip icon indicating copy to clipboard operation
flexisip copied to clipboard

belle-sip-error-TCP bind() failed for ::0 port 5060: Address already in use

Open hpng6 opened this issue 5 years ago • 17 comments

Hi All, please help me out from this bugs...

2019-11-26 07:26:35:497 flexisip-error-DoSProtection: '/sbin/iptables -w -F FLEXISIP 2>&1' failed with output 'iptables: No chain/target/match by that name. '. 2019-11-26 07:26:35:515 flexisip-error-DoSProtection: '/sbin/ip6tables -w -F FLEXISIP 2>&1' failed with output 'ip6tables: No chain/target/match by that name. '. 2019-11-26 07:26:35:692 flexisip-error-Could not create outgoing transaction 2019-11-26 07:26:35:864 belle-sip-error-udp bind() failed for ::0 port 5060: Address already in use 2019-11-26 07:26:35:865 belle-sip-error-TCP bind() failed for ::0 port 5060: Address already in use

hpng6 avatar Nov 26 '19 06:11 hpng6

the DoSProtection error is unrelated to the one below and should not prevent your proxy from running. The other error is telling you that another process is already listening on port 5060. Possibly a running instance of flexisip. To check, run the command: netstat -lntp and see what process is listed as listening on port 5060. Alternatively, change the port.

0x41mmarVM avatar Dec 20 '19 13:12 0x41mmarVM

Conference server must be using the same port as flexisip-proxy (check outbound-proxy and transports directives)

altring avatar Feb 03 '20 15:02 altring

the DoSProtection error is unrelated to the one below and should not prevent your proxy from running. The other error is telling you that another process is already listening on port 5060. Possibly a running instance of flexisip. To check, run the command: netstat -lntp and see what process is listed as listening on port 5060. Alternatively, change the port.

Screen Shot 2020-04-21 at 2 26 21 PM

no other process running on the same post 5060, i believe. please find the attached file

hpng6 avatar Apr 21 '20 09:04 hpng6

proxy

my config is:-

[conference-server] enabled=true transport=sip:consultinsta.com:5060;transport=tcp conference-factory-uri= enable-one-to-one-chat-room=true outbound-proxy=sip:consultinsta.com:5060;transport=tcp

[global] transports=sip:consultinsta.com:5060;maddr=185.141.165.188

hpng6 avatar Apr 21 '20 09:04 hpng6

It looks like you're asking the conference sever to listen on the same port the proxy is listening on. Change the port in the transport directive under [conference-server]. The default is 6065, which looks like it's defaulting to. So perhaps:

[conference-server] enabled=true transport=sip:consultinsta.com:6065;transport=tcp conference-factory-uri=sip:[email protected] enable-one-to-one-chat-room=true outbound-proxy=sip:consultinsta.com:5060;transport=tcp

0x41mmarVM avatar Apr 22 '20 16:04 0x41mmarVM

Hi. My conference server is running. But how do I create a group chat with Linphone? I know that a request has to be sent to sip:conference-factory address, but I am not sure how to do it over Linphone app (and add the participant and other details of the group chat)? Redis is used for the registrar. I can also see the empty conference related tables created in the MariaDB database. This talk https://www.youtube.com/watch?v=dF-Yiqk6BJo explains how it works, but not sure how to use it with Linphone.

Emil-Suleymanli avatar Aug 17 '20 19:08 Emil-Suleymanli

Same here, i did setup the conference server but i am not able to figure out how create a chatroom and add participants.. LooL

Tycho-X avatar Oct 05 '20 11:10 Tycho-X

Hi @Tycho-X , did you manage to start flexisip-proxy and flexi-conference? when i start the conference server, it say that port 5060 is binded , but my config file is not using 5060

ysterysys avatar Oct 08 '20 04:10 ysterysys

Hi @ysterysys

flexisip-proxy and flexisip-conference are starting on my server. The "port 5060 error" happend with the pre version 4 linphone app/client on my linux mint desktop. I upgraded by installing the app image (Linphone-4.2.2.AppImage) and this version starts but shows a "problem icon" for the registration status but conference does actually work. I tested conference with 3 participants.

Currently i have problems getting the NAT/RTP/Mediaserver part to work. If i enable ICE the REGISTER message contain the private IPs (works as all test clients currently on my network) but if i switch of ICE and use STUN only there are no media-streams.

Do you know if its necessary to run pulse-audio on a headless debian server for for the media/rtp-relay to work?

Tycho-X avatar Oct 08 '20 05:10 Tycho-X

Hi @Tycho-X , Sorry, im still new to setting up the sip server..are you able to assist with the configuration of flexi-proxy and flexi-conference ? when i start the proxy using systemctl start flexisip-`proxy , it start , however with systemctl start flexi-conference, it says that port is being used, im not able to change the udp port used for flexisip-proxy too

ysterysys avatar Oct 08 '20 05:10 ysterysys

Hi @ysterysys

i suggest you put the logging into debug mode: "log-level=debug" in flexisip.conf

You are sure there is nothing listening on port 5060 (UDP/TCP?) (netstat -anptu | grep 5060 OR netstat -anpt 5060)

Wich OS are you using?

Tycho-X avatar Oct 08 '20 06:10 Tycho-X

Hi @Tycho-X ,

i've enabled the log level to debug, my flexisip-proxy is listening on port 5060, once i change the port , my soft phone will not be able to connect anymore.

ysterysys avatar Oct 08 '20 07:10 ysterysys

How does your client <> server setup look like? And you did change the port in the client(s) too?

Tycho-X avatar Oct 08 '20 09:10 Tycho-X

Hi @Tycho-X , our client is using linphone from android play store, server is using ubuntu 16v4. yes we need change the port in client too, anyw if you dont mind, would you mind calling me through telegram ? Ys Sheng

ysterysys avatar Oct 09 '20 03:10 ysterysys

Does anyone have a solution? I am having the same error, and there is nothing listening on port 5060 other than flexisip-proxy.

yuelin8879 avatar Dec 08 '20 05:12 yuelin8879

Does anyone have a solution? I am having the same error, and there is nothing listening on port 5060 other than flexisip-proxy.

Make sure you’re really only asking the proxy to listen on 5060 and nothing else. A common error is configuring the conference server at the same port. Another possibility is that you may have another instance running. The error is very unlikely to be wrong, something is trying to bind to 5060 and finding it in use.

0x41mmarVM avatar Dec 08 '20 06:12 0x41mmarVM

Does anyone have a solution? I am having the same error, and there is nothing listening on port 5060 other than flexisip-proxy.

Make sure you’re really only asking the proxy to listen on 5060 and nothing else. A common error is configuring the conference server at the same port. Another possibility is that you may have another instance running. The error is very unlikely to be wrong, something is trying to bind to 5060 and finding it in use.

I made sure nothing is listening on port 5060 prior to launching flexisip servers, and I am using systemctl start flexisip-{server} command to launch the servers one by one.

Here is my config

[global] transports=sip:*

[conference-server] enabled=true transport=sip:127.0.0.1:6064;transport=tcp conference-factory-uri=sip:[email protected] enable-one-to-one-chat-room=true outbound-proxy=sip:127.0.0.1:5060;transport=tcp

Any suggestions?

yuelin8879 avatar Dec 08 '20 16:12 yuelin8879