question

Mayank Ganvir avatar image
Mayank Ganvir asked Mayank Ganvir commented

SIP E-Tag Missing Error


Hi All,

Please find the below the sample code that is working fine with sandbox credentials,It means that when I try to call outside to any US number, the call gets connected,

However, when I use production credentials to call any US number, I am unable to do so. The operator says, "The number you dialled is temporarily unavailable. Please try contacting the customer service Goodbye," and I got the error, which I attached as a screenshot...

even though the number that I'm using has the digital line assigned to it with proper profile setup

It's worth noting that when I use the production credentials to call the numbers which is inside the user's extension list (service account -> users -> Users with Extensions), the call is connected to those numbers.

means call can be connected to the numbers which is inside ringcentral organization.


var appKey = '...';
var appSecret = '...';
var appName = '...';
var appVersion = '...';
 
var sdk = new RingCentral.SDK({
    appKey: appKey,
    appSecret: appSecret,
    appName: appName,
    appVersion: appVersion,
    server: RingCentral.SDK.server.production // or .sandbox
});
 
var remoteVideoElement =  document.getElementById('remoteVideo');
var localVideoElement  = document.getElementById('localVideo');
 
var platform = sdk.platform();
platform.auth().setData(tokens)
if (platform.loggedIn()){
    platform.post('/client-info/sip-provision', {
          sipInfo: [{transport: 'WSS'}]
    })
    .then(function(res) { // Doing nested then because we need loginResponse in a simple way
        return new RingCentral.WebPhone(res.json(), { // optional
              appKey: appKey,
              appName: appName,
              appVersion: appVersion,
              uuid: loginResponse.json().endpoint_id,
              logLevel: 1, // error 0, warn 1, log: 2, debug: 3
              audioHelper: {
                  enabled: true, // enables audio feedback when web phone is ringing or making a call
                  incoming: 'path-to-audio/incoming.ogg', // path to audio file for incoming call
                  outgoing: 'path-to-audio/outgoing.ogg' // path to aduotfile for outgoing call
              },
              media:{
                  remote: remoteVideoElement,
                  local: localVideoElement
              },
              //to enable QoS Analytics Feature
              enableQos:true
          });
 
    })
    .then(function(webPhone){
 
        // YOUR CODE HERE
        
    })
}

Any Help much more appreciated..!


@Tyler Liu @Phong Vu


screenshot-2023-02-04-161429.png


sdkcall handlingerrors
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Mayank Ganvir avatar image Mayank Ganvir commented ·

@Phong Vu @Tyler Liu following up..!

0 Likes 0 ·

1 Answer

Phong Vu avatar image
Phong Vu answered Mayank Ganvir commented

In this case, you have to submit a support ticket so someone can have a look at your account and the extension. I am afraid that the plan or the number does not support international calls. But open the case and someone will help you better.

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Mayank Ganvir avatar image Mayank Ganvir commented ·

Okay

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys