I am learning to add one SIP contact list on Csipsimple. and I'm looking for how to get throug pjsip contact status online.
In org.pjsip.pjsua.pjsipJNI.java, I read these lines. Can I use them to get online user status from a SIP server?
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_);
Of course, I also read these lines in org.pjsip.pjsua.pjsua_acc_info. but I did not know how to use it, because it seems that it is not for reading a single contact state.
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); }
Could you help me! Any advice really helps.
source share