0

I am a college student who is new to VOIP and SIP. I have a SIP server setup and am able to register myself, but when I try to make a call, there is this error:

10:43:18.461 pjsua_acc.c ..Acc 0: Registration sent 10:43:18.461 pjsua_call.c Making call with acc #0 to sip:[email protected] 10:43:18.461 pjsua_media.c .Call 0: initializing media.. softphone: ../src/pjmedia/endpoint.c:935: pjmedia_endpt_create_base_sdp: Assertion `!"Invalid address family"' failed. Aborted

This is the piece of code that I think is the problem:

// Make a call with audio disabled
    CallOpParam prm(true); // Pass true to indicate this is an outgoing call
    prm.opt.audioCount = 0; // Disable audio

    // Debugging info for call setup
        try {
            MyCall *call = new MyCall(acc);
            call->makeCall("sip:[email protected]", prm);
            cout << "*** Call setup completed ***" << endl;
        } catch (Error &err) {
            cout << "Error during call setup: " << err.info() << endl;
        }

(I have disabled the audio because there were permission errors and no audio device errors)

1 Answer 1

0

I noticed that your line

prm.opt.audioCount = 0;

You can try to disable the SDP protocol before sending the INVITE. It might be in a call setting, such as prm.opt.flag = CALL_NO_SDP_OFFER? This requires you to look at what the corresponding variable of the struct is.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.