6

我正在学习在 Csipsimple 上添加一个 SIP 联系人列表。我正在寻找如何通过 pjsip 获取联系人的在线状态。

在 org.pjsip.pjsua.pjsipJNI.java 中,我阅读了这些行。我可以使用它们从 SIP 服务器获取某人的在线状态吗?

public final static native int pjsua_acc_info_online_status_get(long jarg1, pjsua_acc_info jarg1_);
  public final static native long pjsua_acc_info_online_status_text_get(long jarg1, pjsua_acc_info jarg1_);

当然,我也在 org.pjsip.pjsua.pjsua_acc_info 中阅读了这些行。但我不知道我应该如何使用,因为它似乎不适用于读取一个联系人的状态。

    public int getOnline_status() {
        return pjsuaJNI.pjsua_acc_info_online_status_get(swigCPtr, this);
      }

  public void setOnline_status_text(pj_str_t value) {
    pjsuaJNI.pjsua_acc_info_online_status_text_set(swigCPtr, this, pj_str_t.getCPtr(value), value);
  }

你可以帮帮我吗!任何建议都有很大帮助。

4

0 回答 0