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