Empty SDP

20 views
Skip to first unread message

Игорь Попрядухин

unread,
Nov 12, 2021, 1:22:46 PMNov 12
to JsSIP
    this._currentRTCSession = this._ua.call(number, {
      extraHeaders: [],
      pcConfig: {
        iceServers: [
          {
            urls: 'stun:stun.l.google.com:19302'
          }
        ]
      },
      mediaConstraints: {
        audio: true, // Только аудио
        video: false
      },
      rtcOfferConstraints: {
        offerToReceiveAudio: true, // Принимаем только аудио
        offerToReceiveVideo: false
      },
      rtcAnswerConstraints: {
        offerToReceiveAudio: true,
        offerToReceiveVideo: false
      }
    })

If you install STUN

141511908-1667bc87-1ec6-41d9-b896-75c33014e1c6.png

If you remove STUN, then everything is fine

141512174-3b390466-10d0-4baf-9a34-64490eb56b69.png

Reply all
Reply to author
Forward
0 new messages