public javax2.sip.address.TelURL createTelURL(String uri) throws ParseException {
  if (uri == null)   throw new NullPointerException("null url");
  String telUrl="tel:" + uri;
  try {
    StringMsgParser smp=new StringMsgParser();
    TelURLImpl timp=(TelURLImpl)smp.parseUrl(telUrl);
    return (TelURL)timp;
  }
 catch (  ParseException ex) {
    throw new ParseException(ex.getMessage(),0);
  }
}

public javax2 . sip . address . TelURL createTelURL ( String uri ) throws ParseException { if ( uri == null ) throw new NullPointerException ( "null url" ) ; String telUrl = "tel:" + uri ; try { StringMsgParser smp = new StringMsgParser ( ) ; TelURLImpl timp = ( TelURLImpl ) smp . parseUrl ( telUrl ) ; return ( TelURL ) timp ; } catch ( ParseException ex ) { throw new ParseException ( ex . getMessage ( ) , 0 ) ; } }
creates a telurl based on given uri string . the scheme or ' + ' should not be included in the phonenumber string argument .
