gpt4 book ai didi

ios - pjsua_call_make_call 返回状态 450851

转载 作者:可可西里 更新时间:2023-11-01 04:02:09 25 4
gpt4 key购买 nike

我正在开发一个 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]

我看到很多人在其他地方发布了这个日志消息,但是这个错误到底是关于什么的,有人修复了这个错误吗?

请注意,我在其他情况下没有声音问题,例如接收来电铃声、接听电话等。

最佳答案

对我来说,这是一个意外的 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 指定 Core Audio 设备,但我还没有做到这一点。

关于ios - pjsua_call_make_call 返回状态 450851,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22613029/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com