Return Status pjsua_call_make_call 450851

I am working on a VoIP application, when I dial a number, I use:

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
    }
}

for a long time, my decrypted error message for an unsuccessful state is “Default Status Message” until I traced the status value that 450851 gave me. Then I looked for the error code and found:

Unable to open sound device: Core audio error [status=450851]

I saw how many people published this message in other places, but what exactly is this error about, and who has a fix for this error?

Please note that I have no problems with sound in other situations, for example. receiving incoming calls, answering a call, etc.

+6
source share
2 answers

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, .

0

? , , , .

0

Source: https://habr.com/ru/post/1533179/


All Articles