Re: lr problem
"Jeroen van Bemmel" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <013401c6a52b$7ff335a0$31713b51@BEMBUSTER> |
Matt, Thanks for reporting. Your fix "unfixed" something I changed recently, I've updated NIST CVS with something that should work for both cases. Please try it out Regards, Jeroen ----- Original Message ----- From: "Matt Porter" <[email protected]> To: <[email protected]> Sent: Tuesday, July 11, 2006 10:04 PM Subject: [nist-sip] lr problem > Input: Route: <sip:[email protected];lr> > Output: Route: <sip:[email protected];lr=> > > I fixed it in gov.nist.javax.sip.parser.URLParser > This might not be the best place.. please review > > private NameValue uriParam() throws ParseException { > > try { > //String pvalue = ""; > String pvalue = null; ( when pvalue is null, the NameValue encodes > properly ) > ......... > > } > > > The code to reproduce..... > > public static void main(String args[]) throws ParseException { > > String input = "Route: <sip:[email protected];lr>\n"; > RouteParser rp = new RouteParser(input); > RouteList routeList = (RouteList) rp.parse(); > String output = routeList.encode(); > > System.out.println( "Input: " + input ); > System.out.println( "Output: " + output); > } > > > _______________________________________________ > nist-sip mailing list > [email protected] > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip