"\r\n";
public static void main(String args[]) throws Exception {
SIPRequest template = new SIPRequest();
RequestLine requestLine = new RequestLine();
SipFactory sipFactory = null;
sipFactory = SipFactory.getInstance();
sipFactory.setPathName("gov.nist");
// AddressFactory addressFactory = sipFactory.createAddressFactory();
SipUri uri = new SipUri();
// trap invites on company.com domain for incoming SIP
// invitations.
uri.setMatcher(new Matcher("sip:[^.]*company.com"));
requestLine.setMethod(Request.INVITE);
requestLine.setUri(uri);
template.setRequestLine(requestLine);
MessageFactory messageFactory = sipFactory.createMessageFactory();
try {