我正在尝试检查通话状态:
public void onCallState(OnCallStateParam prm) {
Log.d(TAG, "onCallState: CallState changing");
CallInfo ci = null;
try {
ci = getInfo();
pjsip_inv_state state = ci.getState();
if (state == pjsip_inv_state.PJSIP_INV_STATE_EARLY) {
Log.d(TAG, "CallState changed: PJSIP_INV_STATE_EARLY");
listener.onCallStateChanged(VoipCallState.EARLY);
}
....
但是这个if语句并没有永远调用。 这是我的错吗?