Re: Rejecting message due to parse error

"Jeroen van Bemmel" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <001201c6da43$3a637b60$0601a8c0@BEMBUSTER>
Michael,

According to RFC3261, the hostname must conform to

toplabel         =  ALPHA / ALPHA *( alphanum / "-" ) alphanum

So '_' is not allowed. This is also true for hostnames registered in DNS 
(see eg rfc3696). It may be allowed in certain local environments (eg 
Windows NETBIOS, not sure); recommended is to use only names that match the 
above rule

(a) No, cannot be tolerated
(b) would be possible, but would require a change to the API (eg 
processParseError). As you have seen, it will currently show in the logs. 
That is the best we can do at the moment

Is the message also generated by a JAIN stack? If so, it should report a 
ParseError upon construction of the From header. This is something we could 
fix

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.