.createCSeqHeader(1, Request.INVITE);
.createCSeqHeader(1L, Request.INVITE);
	public void sendInvite() {		try {			String fromName = "BigGuy";			String fromSipAddress = "here.com";			String fromDisplayName = "The Master Blaster";			String toSipAddress = "there.com";			String toUser = "LittleGuy";			String toDisplayName = "The Little Blister";			// create >From Header			SipURI fromAddress = ProtocolObjects.addressFactory.createSipURI(					fromName, fromSipAddress);			Address fromNameAddress = ProtocolObjects.addressFactory					.createAddress(fromAddress);			fromNameAddress.setDisplayName(fromDisplayName);			FromHeader fromHeader = ProtocolObjects.headerFactory					.createFromHeader(fromNameAddress, "12345");			// create To Header			SipURI toAddress = ProtocolObjects.addressFactory.createSipURI(					toUser, toSipAddress);			Address toNameAddress = ProtocolObjects.addressFactory					.createAddress(toAddress);			toNameAddress.setDisplayName(toDisplayName);			ToHeader toHeader = ProtocolObjects.headerFactory.createToHeader(					toNameAddress, null);			// create Request URI			String peerHostPort = peerHost + ":" + peerPort;			SipURI requestURI = ProtocolObjects.addressFactory.createSipURI(					toUser, peerHostPort);			// Create ViaHeaders			ArrayList viaHeaders = new ArrayList();			ViaHeader viaHeader = ProtocolObjects.headerFactory					.createViaHeader(host, sipProvider.getListeningPoint(							transport).getPort(), transport, null);			// add via headers			viaHeaders.add(viaHeader);			SipURI sipuri = ProtocolObjects.addressFactory.createSipURI(null,					host);			sipuri.setPort(peerPort);			sipuri.setLrParam();			RouteHeader routeHeader = ProtocolObjects.headerFactory					.createRouteHeader(ProtocolObjects.addressFactory							.createAddress(sipuri));			// Create ContentTypeHeader			ContentTypeHeader contentTypeHeader = ProtocolObjects.headerFactory					.createContentTypeHeader("application", "sdp");			// Create a new CallId header			CallIdHeader callIdHeader = sipProvider.getNewCallId();			// Create a new Cseq header			CSeqHeader cSeqHeader = ProtocolObjects.headerFactory					.createCSeqHeader(1, Request.INVITE);			// Create a new MaxForwardsHeader			MaxForwardsHeader maxForwards = ProtocolObjects.headerFactory					.createMaxForwardsHeader(70);			// Create the request.			Request request = ProtocolObjects.messageFactory.createRequest(					requestURI, Request.INVITE, callIdHeader, cSeqHeader,					fromHeader, toHeader, viaHeaders, maxForwards);			// Create contact headers			SipURI contactUrl = ProtocolObjects.addressFactory.createSipURI(					fromName, host);			contactUrl.setPort(listeningPoint.getPort());			// Create the contact name address.			SipURI contactURI = ProtocolObjects.addressFactory.createSipURI(					fromName, host);			contactURI.setPort(sipProvider.getListeningPoint("udp").getPort());			Address contactAddress = ProtocolObjects.addressFactory					.createAddress(contactURI);			// Add the contact address.			contactAddress.setDisplayName(fromName);			contactHeader = ProtocolObjects.headerFactory					.createContactHeader(contactAddress);			request.addHeader(contactHeader);			// Dont use the Outbound Proxy. Use Lr instead.			request.setHeader(routeHeader);			// Add the extension header.			Header extensionHeader = ProtocolObjects.headerFactory					.createHeader("My-Header", "my header value");			request.addHeader(extensionHeader);			String sdpData = "v=0\r\n"					+ "o=4855 13760799956958020 13760799956958020"					+ " IN IP4  129.6.55.78\r\n" + "s=mysession session\r\n"					+ "p=+46 8 52018010\r\n" + "c=IN IP4  129.6.55.78\r\n"					+ "t=0 0\r\n" + "m=audio 6022 RTP/AVP 0 4 18\r\n"					+ "a=rtpmap:0 PCMU/8000\r\n" + "a=rtpmap:4 G723/8000\r\n"					+ "a=rtpmap:18 G729A/8000\r\n" + "a=ptime:20\r\n";			byte[] contents = sdpData.getBytes();			request.setContent(contents, contentTypeHeader);			extensionHeader = ProtocolObjects.headerFactory.createHeader(					"My-Other-Header", "my new header value ");			request.addHeader(extensionHeader);			Header callInfoHeader = ProtocolObjects.headerFactory.createHeader(					"Call-Info", "<http://www.antd.nist.gov>");			request.addHeader(callInfoHeader);			// Create the client transaction.			inviteTid = sipProvider.getNewClientTransaction(request);			// send the request out.			inviteTid.sendRequest();			dialog = inviteTid.getDialog();		} catch (Exception ex) {			logger.error(unexpectedException, ex);			fail(unexpectedException);					}	}