News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
SIP E-Tag Missing Error
Tags: sdk, call handling, errors
Feb 4, 2023 at 2:56am   •   2 replies  •  0 likes
Mayank Ganvir


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


on Feb 6, 2023 at 5:26am   •  0 likes

@Phong Vu @Tyler Liu following up..!

1 Answer
answered on Feb 6, 2023 at 7:49am  

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.


 0
on Feb 7, 2023 at 5:11am   •  0 likes

Okay



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us