}
/** Returns the parameter <i>param_name</i>, in case removing quotes. */
public String getParameter(String param_name)
{ char[] name_separators={'=', ' ', '\t'};
SipParser par=new SipParser(value);
//par.skipString(); // skip the auth_scheme
par.skipWSPCRLF();
while (par.hasMore())
{ String name=par.getWord(name_separators);
if (name.equals(param_name))
{ par.goTo('=').skipChar().skipWSP();
int comma=par.indexOfCommaHeaderSeparator();
if (comma>=0)
par=new SipParser(par.getString(comma-par.getPos()));
return par.getStringUnquoted();
}
else par.goToCommaHeaderSeparator().skipChar().skipWSPCRLF();
}
return null;
}