Example #1
0
        private void ButtonDecline_Click(object sender, EventArgs e)
        {
            var hangupAction = new HangupAction();

            hangupAction.Channel = callerName;
            var hangupResponse = manager.SendAction(hangupAction);
        }
Example #2
0
        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());
        }
Example #3
0
        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);
        }
Example #5
0
 public void sendHangupRequest(string channel)
 {
     if (connected)
     {
         Console.WriteLine("Sending Hangup request");
         HangupAction ha = new HangupAction(channel);
         ha.send();
     }
 }