启动拨号功能后直接报错,
mListener = new LinphoneCoreListenerBase(){
@Override
public void callState(LinphoneCore lc, LinphoneCall call, LinphoneCall.State state, String message) {
if (call == mCall && State.Connected == state) {
if (!LinphoneActivity.isInstanciated()) {
return;
}
LinphoneActivity.instance().startIncallActivity(mCall);
finish();
return;
} else if (state == State.Error) {
// Convert LinphoneCore message for internalization
if (message != null && call.getErrorInfo().getReason() == Reason.Declined) {
displayCustomToast(getString(R.string.error_call_declined), Toast.LENGTH_SHORT);
} else if (message != null && call.getErrorInfo().getReason() == Reason.NotFound) {
displayCustomToast(getString(R.string.error_user_not_found), Toast.LENGTH_SHORT);
} else if (message != null && call.getErrorInfo().getReason() == Reason.Media) {
displayCustomToast(getString(R.string.error_incompatible_media), Toast.LENGTH_SHORT);
} else if (message != null && call.getErrorInfo().getReason() == Reason.Busy) {
displayCustomToast(getString(R.string.error_user_busy), Toast.LENGTH_SHORT);
} else if (message != null) {
displayCustomToast(getString(R.string.error_unknown) + " - " + message, Toast.LENGTH_SHORT);
}
}
if (LinphoneManager.getLc().getCallsNb() == 0) {
finish();
return;
}
E/LinphoneService: LinphoneCall.State--state:Error
message:I/O error
MaxCalls:10
--------------------------------------------------------------
LinphoneCore-opus-Rate-48000-open:true
LinphoneCore-SILK-Rate-16000-open:true
LinphoneCore-speex-Rate-16000-open:true
LinphoneCore-speex-Rate-8000-open:true
E/LinphoneService: LinphoneCore-PCMU-Rate-8000-open:true
LinphoneCore-PCMA-Rate-8000-open:true
LinphoneCore-GSM-Rate-8000-open:false
LinphoneCore-G722-Rate-8000-open:false
E/LinphoneService: LinphoneCore-iLBC-Rate-8000-open:false
LinphoneCore-mpeg4-generic-Rate-16000-open:false
E/LinphoneService: LinphoneCore-mpeg4-generic-Rate-22050-open:false
LinphoneCore-mpeg4-generic-Rate-32000-open:false
LinphoneCore-mpeg4-generic-Rate-44100-open:false
LinphoneCore-mpeg4-generic-Rate-48000-open:false
LinphoneCore-iSAC-Rate-16000-open:false
LinphoneCore-speex-Rate-32000-open:false
LinphoneCore-SILK-Rate-8000-open:false
LinphoneCore-SILK-Rate-12000-open:false
LinphoneCore-SILK-Rate-24000-open:false
LinphoneCore-L16-Rate-44100-open:false
LinphoneCore-L16-Rate-44100-open:false
E/LinphoneService: --------------------------------------------------------------
W/System.err: java.lang.NullPointerException: Attempt to invoke interface method 'org.linphone.core.LinphoneCallParams org.linphone.core.LinphoneCall.getCurrentParamsCopy()' on a null object reference
at org.linphone.LinphoneService$1.callState(LinphoneService.java:352)
at org.linphone.core.LinphoneCoreImpl.iterate(Native Method)
at org.linphone.core.LinphoneCoreImpl.iterate(LinphoneCoreImpl.java:266)
at org.linphone.LinphoneManager$2$1.run(LinphoneManager.java:702)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8387)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
E/LinphoneService: LinphoneCall.State--state:Released
message:Call released
MaxCalls:10
--------------------------------------------------------------
E/LinphoneService: LinphoneCore-opus-Rate-48000-open:true
LinphoneCore-SILK-Rate-16000-open:true
LinphoneCore-speex-Rate-16000-open:true
E/LinphoneService: LinphoneCore-speex-Rate-8000-open:true
LinphoneCore-PCMU-Rate-8000-open:true
LinphoneCore-PCMA-Rate-8000-open:true
LinphoneCore-GSM-Rate-8000-open:false
E/LinphoneService: LinphoneCore-G722-Rate-8000-open:false
E/LinphoneService: LinphoneCore-iLBC-Rate-8000-open:false
LinphoneCore-mpeg4-generic-Rate-16000-open:false
LinphoneCore-mpeg4-generic-Rate-22050-open:false
LinphoneCore-mpeg4-generic-Rate-32000-open:false
LinphoneCore-mpeg4-generic-Rate-44100-open:false
LinphoneCore-mpeg4-generic-Rate-48000-open:false
LinphoneCore-iSAC-Rate-16000-open:false
LinphoneCore-speex-Rate-32000-open:false
LinphoneCore-SILK-Rate-8000-open:false
LinphoneCore-SILK-Rate-12000-open:false
LinphoneCore-SILK-Rate-24000-open:false
LinphoneCore-L16-Rate-44100-open:false
LinphoneCore-L16-Rate-44100-open:false
LinphoneService.java:的352行的getCurrentParamsCopy()报了空指针,是不是有没有逻辑处理的不对了