Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This page lists the API used for the Multiple Point of Presence feature and are supported by Sonus WebRTC SDK.

Identifying the Device

To uniquely identify a device, a device Info JSON parameter is passed in the login request.

Code Block
languagenone
titleJSON Structure
deviceinfo : {   "deviceid" : "value",
                      "devicetype": {  "OS" : "value" ,
                                       "Browser" : "value",
                                       "BrowserVersion" :" value",
                                       "VideoCapable" : "value",
                      		     },
              };

Each device is identified with a unique device Id. Device Id is generated combining multiple random numbers.

Code Block
languagenone
dev_Uid =
"sons-wrtc-".concat(random1).concat(".").concat(random2).concat(".").concat(random3);

where,
random1,random2,random3 are different random numbers. 

The following example shows how device info would look:

Code Block
languagenone
deviceinfo:{"deviceid":"sons-wrtc-6616000.585000.5114000",
                   "devicetype":{ "OS":"Windows",
                                  "Browser":"chrome",
                                  "BrowserVersion":"46",
                                  "VideoCapable":"True"
                                },
           };

Children Display
styleh5