Currently, if you attempt to parse a string as a URI (using Url(...)), if the parse fails, the scheme field of the Url object is set to "UNKNOWN-URL-SCHEME". If you turn the Url into a string, the string looks something like this: . However, if you attempt to parse *that* string, the Url parser guesses that you just left off the "sip:", because it doesn't recognize the scheme of the URI. So that string is parsed as if it is "sip:UNKNOWN-URL-SCHEME:[email protected]", which is legitimate, with a user-part of "UNKNOWN-URL-SCHEME" and a password-part of "203".
I think the situation would be improved if the URI parser considered "UNKNOWN-URL-SCHEME" as a known scheme type, so that when "UNKNOWN-URL-SCHEME:[email protected]" is parsed into a Url object, that object's getScheme returns UnknownUrlScheme. Comments? Dale _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
