How to configure ICE Server? Version 3.8.2

346 views
Skip to first unread message

Eduardo Oliveira

unread,
Nov 18, 2021, 12:35:25 PM11/18/21
to JsSIP
Guys, I looked in the documentation but it's not clear how to configure the ICE server in the configuration.

Before I used it this way:

const configuration = {
       register: true,
       registrarServer: "sip:webrtc...",
       wsServers: "wss://webrtc...",

       sessionDescriptionHandlerFactoryOptions: {
         peerConnectionOptions: {
           rtcConfiguration: {
             //rtcpMuxPolicy: "negotiate",
             iceTransportPolicy: "all",
             iceServers: [
               {
                 urls: "turns:webrtc.cloudcom.com.br:5349?transport=tcp",
                 //urls: "turn:webrtc.cloudcom.com.br",
                 username: "olive tree",
                 credential: "190790edu"
               }
             ]
           }
         }
       }
};

But in the recent version it doesn't work this way.

Can you tell me how this configuration should be declared?

Bill Kervaski

unread,
Nov 18, 2021, 12:40:44 PM11/18/21
to js...@googlegroups.com

Put your settings in an object .. i.e., iceServers: { 'urls': ['stun:ice.whatever.com'] }

--
You received this message because you are subscribed to the Google Groups "JsSIP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jssip+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jssip/1fc3d29d-43bb-45d8-9316-7f5c74bdb0f1n%40googlegroups.com.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages