package iax.protocol.call.command.send; import iax.protocol.call.Call; import iax.protocol.frame.ControlFrame; import iax.protocol.frame.ProtocolControlFrame; /** * Sends an accept and after them a ringing */ public class Ringing implements CallCommandSend { // Call for sending the frame private Call call; /** * Constructor * @param call call for sending the frame */ public Ringing(Call call) { this.call = call; } public void run() { call.handleSendFrame(new ProtocolControlFrame(call.getSrcCallNo(), false, call.getDestCallNo(), call.getTimestamp(), call.getOseqno(), call.getIseqno(), false, ProtocolControlFrame.ACCEPT_SC)); call.handleSendFrame(new ControlFrame(call.getSrcCallNo(), false, call.getDestCallNo(), call.getTimestamp(), call.getOseqno(), call.getIseqno(), false, ControlFrame.RINGING, new byte[0])); } }