提问人:Vivek Chauhan 提问时间:9/29/2023 更新时间:9/29/2023 访问量:16
pjsip(PJDroid) 视频通话问题
pjsip(PJDroid) Video call Issue
问:
\
1.我已经打开了这个项目并更新了一些最新的库,然后在我检查了Android 11后运行,然后我发现工作正常
但是,如果我取消通话,然后我的应用程序崩溃,崩溃错误是:-
挂断: Title: pjsua_call_hangup(id, prm.statusCode, param.p_reason, param.p_msg_data) 邮编:171140 描述: INVITE 会话已终止 (PJSIP_ESESSIONTERMINATED) 位置:。。/src/pjsua2/call.cpp:716 另一方面,如果我拒绝呼叫,那么我的应用程序也会崩溃,崩溃错误是
-
hangup: Title: pjsua_call_hangup(id, prm.statusCode, param.p_reason, param.p_msg_data) Code: 171140 Description: INVITE session already terminated (PJSIP_ESESSIONTERMINATED) Location: ../src/pjsua2/call.cpp:716
-
Title: pjsua_call_hangup(id, prm.statusCode, param.p_reason, param.p_msg_data) Code: 70009 Description: Operation timed out (PJ_ETIMEDOUT) Location: ../src/pjsua2/call.cpp:716
2.我检查了另一台设备Android 9和12,然后视频预览未显示。
3.有时使应用程序崩溃,崩溃错误
-
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9574 (.pjdroid.sample), pid 9574 (.pjdroid.sample)
-
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18 in tid 24149 (Thread-313), pid 23869(.pjdroid.sample)
-
#16 pc 00000000002112aa [anon:dalvik-classes.dex extracted in memory from /data/app /~~2vTCBX_UVK3ONaQKPgJbzw==/com.pjdroid.sample-KwbicUtdG5xwFLN2zNamJQ==/base.apk] (com.pjdroid.sample.CallActivity.updateVideoWindow+198)
-
#19 pc 00000000002111c4 [anon:dalvik-classes.dex extracted in memory from /data/app/~~fFbe8cuPaZdFi9XQZOJ_yQ==/com.pjdroid.sample- 9kzZI7Okj_F2BA8Z0ePY8g==/base.apk](com.pjdroid.sample.CallActivity.updateVideoWindow)
fun makeCall(view: 视图) { if (buddyListSelectedIdx == -1) 返回
if (currentCall != null) {
Toast.makeText(this, "Current id already in call.", Toast.LENGTH_SHORT).show()
return
}
if (buddyListSelectedIdx >= 0) {
buddyListView!!.getItemAtPosition(buddyListSelectedIdx) as HashMap<*, *>
val call = MyCall(account, -1)
val prm = CallOpParam(true)
try {
if (buddy_uri.isNotEmpty()) {
call.makeCall(buddy_uri, prm)
}
} catch (e: Exception) {
Log.e("makeCallError", "makeCall: " + e.message)
call.delete()
return
}
currentCall = call
showCallActivity()
}
}
fun hangupCall(view: View?) {
handler_ = null
finish()
if (MainActivity.currentCall != null) {
val prm = CallOpParam()
Log.d("hangupCallPrm1", "hangupCall: ${prm.statusCode} // $prm /?/${MainActivity.currentCall}")
prm.statusCode = pjsip_status_code.PJSIP_SC_DECLINE
try {
Log.d("hangupCallPrm", "hangupCall: "+prm.statusCode+"//"+prm.sdp+"//"+prm)
MainActivity.currentCall?.hangup(prm)
} catch (e: Exception) {
Log.e("hangupCallError", "hangupCall: "+e.message)
}
}
}
答: 暂无答案
评论