Invokes parser for From header field.
FromHeader from = new FromHeader();
this.lexer.match(TokenTypes.FROM);
this.lexer.SPorHT();
this.lexer.match(':");
this.lexer.SPorHT();
super.parse(from);
this.lexer.match('\n");
if (((Address)from.getAddress()).getAddressType() ==
Address.ADDRESS_SPEC) {
// the parameters are header parameters.
if (from.getAddress().getURI() instanceof SipURI) {
SipURI sipUri = (SipURI) from.getAddress().getURI();
NameValueList parms = sipUri.getUriParms();
if (parms != null && ! parms.isEmpty()) {
from.setParameters(parms);
sipUri.removeUriParms();
}
}
}
return from;