use of gov.nist.javax.sip.parser.HeaderParser in project XobotOS by xamarin.
the class SIPMessage method addHeader.
/**
* Add a SIP header.
*
* @param sipHeader -- string version of SIP header to add.
*/
public void addHeader(String sipHeader) {
String hdrString = sipHeader.trim() + "\n";
try {
HeaderParser parser = ParserFactory.createParser(sipHeader);
SIPHeader sh = parser.parse();
this.attachHeader(sh, false);
} catch (ParseException ex) {
this.unrecognizedHeaders.add(hdrString);
}
}
Aggregations