creating ACKS

Andrew T Gin <[email protected]> Mon, 12 Mar 2007 11:40:47 +1300
Newsgroups gmane.comp.voip.nist-sip
Organization University of Canterbury | Te Whare Wananga o Waitaha
Message-ID <[email protected]>
Hi
In the simple call setup example, Shootist.java creates the ack part of 
the INVITE-OK-ACK sequence in the following way:

ackRequest = dialog.createRequest(Request.ACK);
System.out.println("Sending ACK");
dialog.sendAck(ackRequest);

However in the Javadocs, the entry for dialog.createRequest includes:
"This method may not be used for creating PRACK or ACK. Implementations 
should throw SipException if this method is called for creating ACK or 
PRACK."

So perhaps the example should change to use createAck() instead to 
represent a more 'correct' example?

Andrew