private void DatMachIchWennsKlingelt(object sender, IncomingCallEventArgs e) { if (this.InvokeRequired) { this.Invoke(cgvoDelegate, e.CallerNumber); } }
private void ClientOnIncomingCall(IClient sender, IncomingCallEventArgs e) { if (_call != null) { e.Call.Reject(RejectMode.Busy, null); } _call = e.Call; BindCallEventHandlers(); _call.Answer(CallSettings); }
void ipClient_CallConnected(object sender, IncomingCallEventArgs e) { // Clear our DTMF events dtmfEvents[e.LineNumber].Clear(); if (e.Outbound) { RaiseCallConnected(new CallEventArgs(e.LineNumber, e.RemoteUserName, e.RemoteHost, e.LocalDisplayName, e.LocalUserName, e.RemoteIP, e.RemotePort, e.LocalHost, e.Outbound, e.SIPProfile)); } else { RaiseCallConnected(new CallEventArgs(e.LineNumber, e.LocalUserName, e.LocalHost, e.RemoteDisplayName, e.RemoteUserName, e.RemoteIP, e.RemotePort, e.RemoteHost, e.Outbound, e.SIPProfile)); } }
void sm_IncomingCall(object sender, IncomingCallEventArgs e) { /*PJSIP.CallInfo ci = e.Call.getInfo(); * Console.WriteLine("Incoming Call:"); * Console.WriteLine(ci.localContact); * Console.WriteLine(ci.stateText);*/ foreach (Call call in sm.Calls.Values.ToList()) { Console.WriteLine("State: " + call.State + " : " + call.LastState); } Refresh(); }
void ipClient_IncomingCall(object sender, IncomingCallEventArgs e) { RaiseIncomingCall(new CallEventArgs(e.LineNumber, e.LocalUserName, e.LocalHost, e.RemoteDisplayName, e.RemoteUserName, e.RemoteIP, e.RemotePort, e.RemoteHost, e.Outbound, e.SIPProfile)); }
void ipClient_CallConnected(object sender, IncomingCallEventArgs e) { // Clear our DTMF events dtmfEvents[e.LineNumber].Clear(); if(e.Outbound) RaiseCallConnected(new CallEventArgs(e.LineNumber, e.RemoteUserName, e.RemoteHost, e.LocalDisplayName, e.LocalUserName, e.RemoteIP, e.RemotePort, e.LocalHost, e.Outbound, e.SIPProfile)); else RaiseCallConnected(new CallEventArgs(e.LineNumber, e.LocalUserName, e.LocalHost, e.RemoteDisplayName, e.RemoteUserName, e.RemoteIP, e.RemotePort, e.RemoteHost, e.Outbound, e.SIPProfile)); }
private static void Modem_IncomingCall(object sender, IncomingCallEventArgs e) { Console.WriteLine("Incoming call..."); }
void ipClient_CallConnected(object sender, IncomingCallEventArgs e) { lblStatus.Text = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.TestDriveView_Connected); }