MakeCall() CallParams callParams = core.CreateCallParams(null); string path = WriteLog.GetCurDir() + "\\record\\" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss", DateTimeFormatInfo.InvariantInfo) + "-out" + txtdial.Text.Trim() + ".wav"; callParams.RecordFile = path; call = core.InviteAddressWithParams(addnew, callParams); CallStateChangedDelegate(Linphone.Core core, Linphone.Call call, Linphone.CallState state, string message) if (state == CallState.End) { call.StopRecording(); } if (state == CallState.Connected) { call.StartRecording(); } PickCall() CallParams callParams = core.CreateCallParams(null); string path = WriteLog.GetCurDir() + "\\record\\" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss", DateTimeFormatInfo.InvariantInfo) + "-in1005.wav"; callParams.RecordFile = path; call.AcceptWithParams(callParams); call.StartRecording();
标签:core,callParams,录音,state,call,CallState,path,linphone From: https://www.cnblogs.com/simadi/p/17490411.html