Skip to content

作为客户端使用过程中遇到的问题 #117

Description

@godlike10

客户端连接到期后,reset会报错的, _pauseThread.Reset(); close之后无法reset,会提示已被关闭,直接去掉close,下面直接set就行
if (_keepaliveLostTimes > Common.SipClientConfig.KeepAliveLostNumber)
{
GCommon.Logger.Warn(
$"[{Common.LoggerHead}]->与Sip服务器的心跳丢失超过{Common.SipClientConfig.KeepAliveLostNumber}次->系统重新进入设备注册模式");
_isRegister = false;
_wantAuthorization = false;
_keepaliveCallId = "";
_pauseThread.Close();
_catalogThread.Close();
_catalogCallId = "";
_keepaliveLostTimes = 0;
_lastCallId = "";
_oldSipRequest = null;
_oldSipResponse = null;
_registerCallId = "";
_pauseThread.Reset();
_registerThread.Abort();
_registerThread = new Thread(Register);
_registerThread.Start();
break;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions