Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SIP messages not leaving network, nor showing up in Ethereal

843790Mar 26 2007
Hi, I'm trying to make a simple chat program using the SIP protocol, JAIN SIP 1.2 and Java.
Here is the SIP Request that is created.

MESSAGE sip:userspc@192.168.2.10;transport=udp SIP/2.0
Call-ID: 5b7cbac69c97857333edca666df59952@192.168.2.10
CSeq: 1 MESSAGE
From: "userspc" <sip:userspc@192.168.2.10:16000>;tag=ChatForm
To: "SomeUser" <sip:SomeUser@88.88.88.88:16888>
Via: SIP/2.0/UDP

192.168.2.10:16000;branch=chatform:5b7cbac69c97857333edca666df59952@192.168.2.10:1:message:192.168.2.10:16000
Max-Forwards: 70
Contact: "userspc" <sip:userspc@192.168.2.10:16000>
Content-Type: text/plain
Content-Length: 12

Hello World.

--------------------------
I then send the request off with "request.toString();"

I've check my ethereal captures and can find no packets originating from port 16000 or destined to port 16888.

Here is what the server log, implement by NIST, shows.

<!-- Use the Trace Viewer in src/tools/tracesviewer to view this trace
Here are the stack configuration properties
javax.sip.IP_ADDRESS= 192.168.2.10
javax.sip.STACK_NAME= ChatForm
javax.sip.ROUTER_PATH= null
javax.sip.OUTBOUND_PROXY= null
-->
<description
logDescription="ChatForm"
name="192.168.2.10" />

I realize that the 192.168.x.x address is local yet when I do an IpConfig this is what I get:

Ethernet adapter Local Area Connction
Connection-specific DNS Suffix : no-domain-set.bellcanada
IP Address.....................: 192.168.2.10
Subnet Mask....................: 255.255.255.0
Default Gateway.................: 192.168.2.1

I've tried changing the IP Adress to the one that shows up in What'sMyIP.com
but I get a "Cannot assign requested address: JVM_Bind" exception.

I'm not sure how to proceed from here and any help would be greatly appreciated.

Matt Moore
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2007
Added on Mar 26 2007
0 comments
200 views