Address already in use: Cannot bind

Discuss any topic about <A href="http://www.brekeke.com/telephony/">Brekeke JTAPI SDK</A>.

Moderator: Brekeke Support Team

Locked
gordsh
Posts: 11
Joined: Sun Sep 24, 2006 8:11 am

Address already in use: Cannot bind

Post by gordsh »

1. Brekeke Product Name and version:

2. Java version:

3. OS type and the version:

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :

6. Your problem:

I get the following error while testing the InCallDTMFReferTRansfer.java applciation:

[main] ERROR (BrPeer.java:101) -
java.net.BindException: Address already in use: Cannot bind
at java.net.PlainDatagramSocketImpl.bind(Native Method)
at java.net.DatagramSocket.bind(Unknown Source)
at java.net.DatagramSocket.<init>(Unknown Source)
at java.net.DatagramSocket.<init>(Unknown Source)
at com.brekeke.net.PacketEx.openSocket(PacketEx.java:86)
at com.brekeke.jtapi.BrProvider.<init>(BrProvider.java:361)
at com.brekeke.jtapi.BrPeer.getProvider(BrPeer.java:93)
at IncallDTMFReferTransfer.main(IncallDTMFReferTransfer.java:40)
Can't get Provider: javax.telephony.ProviderUnavailableException: Address already in use: Cannot bind
Andrea
Posts: 36
Joined: Wed Apr 04, 2007 11:41 am

Post by Andrea »

If you try to open 2 or more JTAPI applications at the same time on the machine or if you are running some other machine which is using the same port as your application, the error occurs.

Andrea
gordsh
Posts: 11
Joined: Sun Sep 24, 2006 8:11 am

Post by gordsh »

Andrea, thanks for your prompt response......however which port are you referring to? The SIP Server is operating at port # 5060.
Andrea
Posts: 36
Joined: Wed Apr 04, 2007 11:41 am

Post by Andrea »

I mean the port that JTAPI uses, not SIP Server.
You set the port in provider.properties (mysipport).

Andrea
gordsh
Posts: 11
Joined: Sun Sep 24, 2006 8:11 am

Post by gordsh »

Gracias Andrea....
Locked