Re: Rejecting message due to parse error
"M. Ranganathan" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Organization | NIST |
| Message-ID | <[email protected]> |
Hi Jeroen,
Looks like you may have forgotten to commit something. I have the
following compilation problem:
/home/mranga/workspace/jain-sip/src/gov/nist/javax/sip/parser/URLParser.java:601: hostPort() in gov.nist.core.HostNameParser cannot be applied to (boolean)
[javac] HostPort hp = hnp.hostPort( false );
[javac] ^
[javac] /home/mranga/workspace/jain-sip/src/gov/nist/javax/sip/parser/ViaParser.java:86: hostPort() in gov.nist.core.HostNameParser cannot be applied to (boolean)
[javac] HostPort hostPort = hnp.hostPort( true );
[javac]
Could you please check.
Thanks
Ranga
On Sun, 2006-09-17 at 12:40 +0200, Jeroen van Bemmel wrote:
> 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
>
> _______________________________________________
> nist-sip mailing list
> [email protected]
> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip