我正在使用VoIP应用程序,在拨号时,我使用:
status = pjsua_call_make_call(acc_id, &pj_uri, 0, NULL, &msg_data, call_id);
if (status != PJ_SUCCESS) {
pjsua_perror(THIS__FILE, "Error making call, going to restart handler", status);
[SipHandlerListener restart:YES];
} else {
// continue with actions
}
}
很长一段时间,我的非成功状态的解码错误消息是"默认状态消息"就在我刚跟踪状态值时,它给了我450851.然后我搜索了错误代码并找到了:
Unable to open sound device: Core audio error [status=450851]
我看到很多人在其他地方发布此日志消息,但是这个错误究竟是什么,并且有人修复了此错误?
请注意,我在其他情况下没有声音问题,例如:接听来电,接听电话等。
答案 0 :(得分:0)
对我来说,这是一个意外的Core Audio设备导致错误。
如果我插入外接显示器(显示器没有扬声器或麦克风),我会看到此输出:
09:50:28.502 coreaudio_dev.c ..core audio detected 3 devices
09:50:28.504 coreaudio_dev.c .. dev_id 0: Built-in Output (in=0, out=2) 44100Hz
09:50:28.504 coreaudio_dev.c .. dev_id 1: Built-in Microphone (in=2, out=0) 44100Hz
09:50:28.505 coreaudio_dev.c .. dev_id 2: HDMI (in=0, out=2) 48000Hz
09:50:28.505 coreaudio_dev.c ..core audio initialized
看起来这就是pjsip试图使用的设备,并且失败了:
09:50:28.505 pjsua_aud.c Set sound device: capture=2, playback=2
09:50:28.505 pjsua_aud.c .Opening sound device (speaker + mic) PCM@8000/1/20ms
09:50:28.510 coreaudio_dev.c ..Opening device 58
09:50:28.511 pjsua_aud.c .Opening sound device (speaker + mic) PCM@44100/1/20ms
09:50:28.512 coreaudio_dev.c ..Opening device 58
09:50:28.512 pjsua_aud.c .Opening sound device (speaker + mic) PCM@48000/1/20ms
09:50:28.513 coreaudio_dev.c ..Opening device 58
09:50:28.514 pjsua_aud.c .Opening sound device (speaker + mic) PCM@32000/1/20ms
09:50:28.515 coreaudio_dev.c ..Opening device 58
09:50:28.515 pjsua_aud.c .Opening sound device (speaker + mic) PCM@16000/1/20ms
09:50:28.516 coreaudio_dev.c ..Opening device 58
09:50:28.516 pjsua_aud.c .Opening sound device (speaker + mic) PCM@8000/1/20ms
09:50:28.517 coreaudio_dev.c ..Opening device 58
09:50:28.518 pjsua_aud.c .Unable to open sound device: Core audio error<A8>6<81><99><89>^? [status=450851]
可能有一种方法可以让pjsip指定核心音频设备,但我还没有那么远。