Problem connecting Alexa with RingCentral Messaging

  • 1
  • Problem
  • Updated 2 months ago
I have created an Alexa skill based on a post by Phong Vu for Turning Alexa into Your Personal Messaging Assistant.  When I invoke my skill Alexa says "Hi <MyName>Unfortunately, your account does not support SMS message."

I have confirmed that my sandbox account has the SMS permission granted.

So what do I need to do to resolve this issue?
Photo of Hack

Hack

  • 160 Points 100 badge 2x thumb

Posted 2 months ago

  • 1
Photo of Phong Vu

Phong Vu, Devangelist

  • 1,520 Points 1k badge 2x thumb
Hi Hack,

The error message is just for all failures. Can you log the error/response and see what is the actual reason why it failed.

+ Phong
Photo of Hack

Hack

  • 160 Points 100 badge 2x thumb
Hi Phong,

It seems to fail where the comment shows "should check if there is no direct number" in the index.js file of my Lambda function.  The CloudWatch log doesn't show any errors.

Hack
Photo of Phong Vu

Phong Vu, Devangelist

  • 1,520 Points 1k badge 2x thumb
I see. That is why it does not work. The *extension# will only work for ring-out to make a call. You can try to remove the "*" and don't add the extension. OR add a direct number to your main user.
thisHandler.attributes['ownPhoneNumber'] = record.phoneNumber.replace("+", "")
Hope this helps.
Phong
Photo of Hack

Hack

  • 160 Points 100 badge 2x thumb
It won't let me add a direct number, I'm guessing that's because it's a developer or sandbox account.  But removing the "*" and extension worked, and so now it at least let's me reply to a message and send it. 

Now, I will add the ability to retrieve voicemails via the code you sent above.

Thanks for your help!
Photo of Phong Vu

Phong Vu, Devangelist

  • 1,520 Points 1k badge 2x thumb
How come you cannot add a direct number. Login your admin console. Select the main user and under the Phones & Numbers tab, click Add Direct Number. I know that most of the States/Provinces have run out of test number. But Quebec still has lots of free numbers.

+ Phong
Photo of Hack

Hack

  • 160 Points 100 badge 2x thumb
I'm in the US.  Can I pick a Canadian number for just testing, and if so, does it cost money even though I'm only testing?
Photo of Phong Vu

Phong Vu, Devangelist

  • 1,520 Points 1k badge 2x thumb
No cost for sandbox account. You can try several other U.S states to find available numbers.