sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.42k stars 431 forks source link

Error when working with the PJSIP protocol #1052

Closed TheBestWorldProgrammer closed 7 months ago

TheBestWorldProgrammer commented 7 months ago
              SIPCallDescriptor callDescriptor = new SIPCallDescriptor(sipUsername, sipPassword, callURI.ToString(), fromHeader, null, null, null, null, 
             SIPCallDirection.Out, SDP_MIME_CONTENTTYPE, null, null);

            _mediaSession = CreateMediaSession(AudioOutDeviceIndex, AudioInDeviceIndex);

            _sipUserAgent.RemotePutOnHold += OnRemotePutOnHold;
            _sipUserAgent.RemoteTookOffHold += OnRemoteTookOffHold;

            await _sipUserAgent.InitiateCallAsync(callDescriptor, _mediaSession);

An error occurs when making a call. Rather, he just goes through it and does not make a call. Is there any way to make it work with PJSIP? Thank you in advance

sipsorcery commented 7 months ago

Really need log messages to be be able to help.

TheBestWorldProgrammer commented 7 months ago

Screenshot_29

This is the insides of the CallDescriptor - after InitiateCallAsync is committed, it just goes through it and the call does not go through.

TheBestWorldProgrammer commented 7 months ago

It's been decided. I made a mistake in specifying the host in Sip_client, pjsip is not necessary here