@Override protected void unmute(SIPCallImpl call) throws IOException, SdpException { final SIPCallImpl peer = (SIPCallImpl) call.getLastPeer(); SipServletRequest reInvite = call.getSipSession().createRequest("INVITE"); reInvite.setAttribute(SIPCallDelegate.SIPCALL_UNMUTE_REQUEST, "true"); reInvite.setContent(createSendrecvSDP(call, peer.getRemoteSdp()), "application/sdp"); reInvite.send(); }
@Override protected void hold(SIPCallImpl call, boolean send) throws MsControlException, IOException, SdpException { final SIPCallImpl peer = (SIPCallImpl) call.getLastPeer(); SipServletRequest reInvite = call.getSipSession().createRequest("INVITE"); reInvite.setAttribute(SIPCallDelegate.SIPCALL_HOLD_REQUEST, "true"); reInvite.setContent(createSendonlySDP(call, peer.getRemoteSdp()), "application/sdp"); reInvite.send(); peer.hold(); }