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
FromNumber parameter is not detected
Tags: ringcentral app, phone, rest api
Mar 15, 2023 at 12:56pm   •   2 replies  •  0 likes
Tyler Ehrig

I am working with the library ringcentral-web-phone
and I am trying to use the fromNumber parameter to initialize a call with a specific number, but it only dials with the company number.

const session = this.webPhone.userAgent.invite(this.numberValue, {
fromNumber: `${this.selectedNumber}`,
homeCountryId: "1", // Optional, the value of,
});


on Mar 15, 2023 at 4:07pm   •  0 likes

Print out the value of that "fromNumber" to see what is the number. Where do you get that "selectedNumber" from?

on Mar 16, 2023 at 7:55am   •  0 likes

When printing the value "FromNumber"
gives "From XXXXXX67900*1005"
the value of selectedNumber is
"XXXXXX5997".

on Mar 16, 2023 at 9:23am   •  0 likes

I asked where did you get it from? From an event payload? What is the type of that number, a company number, a direct number or the main company number?

on Mar 16, 2023 at 10:04am   •  0 likes

I'm using Vue.js so the command "this.selectedNumber" it's taking the value from the state, but yes the number is a company number and it waa asigned to my user (the one that was logged in RingCentral web phone app). The issue I'm having is that I'm not able to make call from any number in my company aside as the delfault one

1 Answer
answered on Mar 17, 2023 at 10:01am  

I'm using Vue.js so the command "this.selectedNumber" it's taking the value from the state, but yes the number is a company number and it waa asigned to my user (the one that was logged in RingCentral web phone app). The issue I'm having is that I'm not able to make call from any number in my company aside as the delfault one


 0



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