question

Peter Hogger avatar image
Peter Hogger asked Peter Hogger answered

EXT-262 Home country selection

I am trying to assign a home country for an unassigned extension in the 929 area code with the following API call

$r = $platform->put("/restapi/v1.0/account/~/extension/240641070", array('regionalSettings' => array('homeCountry' => array ('id' => 1))));

but I am getting the error (even though 929 is in the US = Queens NY)

EXT-262

Home country selection is limited to countries which user`s phone numbers belong to.


settings
1 |3000

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

Phong Vu avatar image
Phong Vu answered

That's weird. The id is a string, can you change the number 1 to "1" and try again.

1 |3000

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

Peter Hogger avatar image
Peter Hogger answered Phong Vu commented

same error with "1" or '1'.. It only happens with the 929 area code... all other area codes I have location at are working fine. I think it might be something with this particular area code

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.

Phong Vu avatar image Phong Vu ♦♦ commented ·

Not really. I just test with a user who has phone number in 929 area code and it works well. Can you call the API and print out the rcrequestId and the error code. I need to report this so the platform team can investigate. Thanks

0 Likes 0 ·
Peter Hogger avatar image
Peter Hogger answered

as you can see the extension 240637070 belongs to the 929 area code1681842167291.png

but the code

$r = $platform->put("/restapi/v1.0/account/~/extension/240637070", array('regionalSettings' => array('homeCountry' => array ('id' => '1'))));

produces this error:

1681842253526.png



1681842167291.png (26.7 KiB)
1681842253526.png (13.7 KiB)
1 |3000

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

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