Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- } else if (myResponse.getStatusCode() == 200) {
- // Get the dialog from ClientTransaction and send ACK, Refer to
- // lab sheet for
- // hints on doing this
- // ...
- if (myDialog != null) {
- // REGISTER does not create a dialog! The code inside this clause is being executed for every 200 OK not from the REGISTER.
- /**
- * Send an acknowledgment
- */
- Header myContactHeader = (Header)myResponse.getHeader("Contact");
- Request ackRequest=myDialog.createAck(1);
- ackRequest.addHeader(myContactHeader);
- myDialog.sendAck(ackRequest);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement