public static String extractUriFromAddress(String addr){
  String uri=addr;
  int index=addr.indexOf("<");
  if (index != -1) {
    uri=addr.substring(index + 1,addr.indexOf(">",index));
  }
  return uri;
}

public static String extractUriFromAddress ( String addr ) { String uri = addr ; int index = addr . indexOf ( "<" ) ; if ( index != - 1 ) { uri = addr . substring ( index + 1 , addr . indexOf ( ">" , index ) ) ; } return uri ; }
extract the uri part of a sip address
