Forums Read-only archive

Address already in use: Cannot bind

5 posts · Brekeke JTAPI SDK Forum

gordsh Original post
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
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
Andrea, thanks for your prompt response......however which port are you referring to? The SIP Server is operating at port # 5060.
Andrea
I mean the port that JTAPI uses, not SIP Server.
You set the port in provider.properties (mysipport).

Andrea
gordsh
Gracias Andrea....