我在我的android聊天应用程序中使用了pjsip (使用pjsua2)。一切都很好,我可以成功地注册并与其他人通话。pjsua2的默认重新注册是300s,在此时间之后,将向服务器发送重新注册请求。我知道如何更改这一次,但有时我需要手动调用重新注册取决于某些事件。如何调用重新注册并手动将注册发送到服务器。
发布于 2019-10-02 15:47:58
如果有人需要调用pjsua2重新注册,可以在Account类中调用以下函数:
public void setRegistration(boolean renew) throws java.lang.Exception {
pjsua2JNI.Account_setRegistration(swigCPtr, this, renew);
}https://stackoverflow.com/questions/58174178
复制相似问题