[SIPForum-discussion] I need urgent help!!!

Bayram Kıran genius1357 at gmail.com
Wed Dec 30 11:54:25 UTC 2009


Hello,

My name is Bayram Kıran.I am from Turkey. I am attending Computer
Engineering

Department of Marmara University.
 I am a senior (4th grade) student. I have a final project this year. It is
to

implement a user agent that provides people
to talk and send instant messages by the means of SIP. Me and my project
partner

want to use jain-sip. Me and my project partner have downloaded the source
code of

a tutorial application from the site

http://www.oracle.com/technology/pub/articles/dev2arch/2007/10/introduction-jain-

sip.html.
We have achieved to create .jar file and execute it. But when one of us try
to send

a message to the other one, some error messages are thrown. The error
messages are

below:

ERROR - MESSAGE sip:bayram at 192.168.2.5:4001;
transport=udp SIP/2.0

Unexpected Token : SIP
java.text.ParseException: MESSAGE sip:bayram at 192.168.2.5:4001;transport=udp
SIP/2.0

Unexpected Token : SIP
    at gov.nist.core.LexerCore.match(LexerCore.java:229)
    at gov.nist.javax.sip.parser.Parser.sipVersion(Parser.java:57)
    at
gov.nist.javax.sip.parser.RequestLineParser.parse(RequestLineParser.java:64)
    at gov.nist.javax.sip.parser.StringMsgParser.processFirstLine

(StringMsgParser.java:352)
    at gov.nist.javax.sip.parser.StringMsgParser.parseSIPMessage

(StringMsgParser.java:180)
    at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket

(UDPMessageChannel.java:296)
    at
gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:255)
    at java.lang.Thread.run(Unknown Source)
ERROR - gov.nist.javax.sip.stack.UDPMessageChannel.handleException

(UDPMessageChannel.java:556) [BAD MESSAGE!]
ERROR - gov.nist.javax.sip.stack.UDPMessageChannel.handleException

(UDPMessageChannel.java:557) [null]
DEBUG - gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket

(UDPMessageChannel.java:301) [Rejecting message !  MESSAGE

sip:bayram at 192.168.2.5:4001;transport=udp SIP/2.0
Call-ID: 7d368e1e88c0ae7e69da7cdd878c4f97 at 192.168.2.4
CSeq: 1 MESSAGE
From: "admin" <sip:admin at 192.168.2.4:4006>;tag=textclientv1.0
To: "bayram" <sip:bayram at 192.168.2.5:4001>
Via: SIP/2.0/UDP 192.168.2.4:4006;branch=branch1
Max-Forwards: 70
Contact: "admin" <sip:admin at 192.168.2.4:4006>
Content-Type: text/plain
Content-Length: 2

as]
.
.
.

We are waiting for your advices.Thanks a lot.

Best Regards
Bayram Kıran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20091230/e77f800b/attachment-0002.html>


More information about the discussion mailing list