private void ButtonDecline_Click(object sender, EventArgs e) { var hangupAction = new HangupAction(); hangupAction.Channel = callerName; var hangupResponse = manager.SendAction(hangupAction); }
public bool HangUp(string caller, string callid) { log.Debug("Hanging up call " + callid + " from " + caller); HangupAction ha = new HangupAction(callid); return(_manager.SendAction(ha, 10000).IsSuccess()); }
public String Colgar(String Canal) { HangupAction o = new HangupAction(); o.Channel = Canal; ManagerResponse response = Conn.SendAction(o, 30000); return(response.Message); }
public void Hangup() { HangupAction hangupAction = new HangupAction(); actions.Add(hangupAction); }
public void sendHangupRequest(string channel) { if (connected) { Console.WriteLine("Sending Hangup request"); HangupAction ha = new HangupAction(channel); ha.send(); } }