Re: Rejecting message due to parse error

"Jeroen van Bemmel" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <001901c6da45$b3557a80$0601a8c0@BEMBUSTER>
Michael,

I updated JAIN CVS on java.net to check hostnames a little stricter, please 
check if this would have helped you.
Modified:
parser/StringMsgParser.java
core/HostNameParser.java

Regards,

Jeroen

----- Original Message ----- 
From: "Michael kr" <[email protected]>
To: <[email protected]>
Sent: Sunday, September 17, 2006 11:34 AM
Subject: [nist-sip] Rejecting message due to parse error


>
> Hi All,
>
> In the last hour or so, I was investigating why a call
> is not coming through.
>
> It appear that there was a parse error in the message:
>
> java.text.ParseException: From: "michael"
> <sip:MIK_S>;tag=8a188006855544c8becca97c8e7d5fb8
>
> Expecting  >>>><<< got >>>_<<<
>        at
> gov.nist.core.LexerCore.match(LexerCore.java:248)
>        at
> gov.nist.javax.sip.parser.AddressParser.nameAddr(AddressParser.java:58)
>        at
> gov.nist.javax.sip.parser.AddressParser.address(AddressParser.java:86)
>        at
> gov.nist.javax.sip.parser.AddressParametersParser.parse(AddressParametersParser.java:29)
>        at
> gov.nist.javax.sip.parser.FromParser.parse(FromParser.java:34)
>        at
> gov.nist.javax.sip.parser.StringMsgParser.parseMessage(StringMsgParser.java:551)
>        at
> gov.nist.javax.sip.parser.StringMsgParser.parseSIPMessage(StringMsgParser.java:323)
>        at
> gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:236)
>        at java.lang.Thread.run(Unknown Source)
>
> Rejecting message !  INVITE
> sip:[email protected]:5060 SIP/2.0
>
>
>
>
> The "From:" header is initialized by the computer's
> name which appears to include "_".
>
> Now:
> a. Can we tolerate this? The messaging can be handled
> with an _ in the text.
> b. Information about such rejection should be send to
> the application level to save time of the unsuspecting
> programmer ;-)
>
> Thanks,
>
> Michael
>
> _______________________________________________
> nist-sip mailing list
> [email protected]
> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.