lr problem
"Matt Porter" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <007d01c6a525$43a13850$a5fc10ac@D52HDS81> |
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); }