# SMS text with ring central

**URL:** <https://community.open-emr.org/t/sms-text-with-ring-central/15903>\
**Category:** Day-to-Day Users\
**Created:** [January 26, 2021, 5:13pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903 "2021-01-26T17:13:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![harmone75](https://community.open-emr.org/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@harmone75](https://community.open-emr.org/u/harmone75)\
**Post date:** [January 26, 2021, 5:13pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/1 "2021-01-26T17:13:42Z")

</div>

I have my text app in production and i have entered my credentials within the emr portal however, i received this error, has anyone experienced this error?

error: “invalid\_client”|

errors  
0:  
|errorCode:“OAU-113”|  
|message:“No redirect uri is registered for the client”|  
|error\_description:“No redirect uri is registered for the client”|

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [February 23, 2021, 1:58am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/2 "2021-02-23T01:58:00Z")

</div>

did you get this working? I am having the same error message.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 23, 2021, 2:28am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/3 "2021-02-23T02:28:39Z")

</div>

The oauth2 login has an issue but unsure recent version is not working still, I’m getting ready to do a new release fixing up ringcentral by tomorrow eve.  
Added new feature to sms like replying to sms from log:

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/c/c9a923896489b493a8f3112eb8244e779fe60963.png)

Plus adding event listeners for portal secure messaging and either patient demographics or reminders.

oauth2 is now only way to sign in to RC.

> [@harmone75](#):
>
> |errorCode:“OAU-113”|  
> |message:“No redirect uri is registered for the client”|  
> |error\_description:“No redirect uri is registered for the client”|

This error is because the oauth login redirect url doesn’t exist in RC account, oe account setup or both.  
It should be something like:

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/c/c2e9ec276aedb1bba3c7eda20bc87761c2f2a2db.png)

---

<div class="post-metadata">

**Author:** ![harmone75](https://community.open-emr.org/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@harmone75](https://community.open-emr.org/u/harmone75)\
**Post date:** [February 23, 2021, 1:52pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/4 "2021-02-23T13:52:19Z")

</div>

No, i haven’t gotten it to work yet

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 1:22am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/5 "2021-02-24T01:22:19Z")

</div>

@juggernautsei @harmone75  
Here is a testing patch for the RC service implementation if you’ll be so kind and test for me.  
It includes some fixes to core code to support the fax modules.  
RC oauth appears to now behave itself. So lots of hidden gems in this next release.

[rc\_fax\_patch\_v6.zip](https://community.open-emr.org/uploads/short-url/udwSEx7WxWYaFtJTRy2z4qmyKKV.zip) (34.4 KB)

---

<div class="post-metadata">

**Author:** ![harmone75](https://community.open-emr.org/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@harmone75](https://community.open-emr.org/u/harmone75)\
**Post date:** [February 24, 2021, 2:12am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/6 "2021-02-24T02:12:08Z")

</div>

I will get this installed tomorrow and test it

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 2:40am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/7 "2021-02-24T02:40:07Z")

</div>

Remember this is for openemr v6.0. It will break on v5.0.2

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [February 24, 2021, 10:37pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/8 "2021-02-24T22:37:33Z")

</div>

I installed the patch. I used the URI you suggested and that error message when away. I copied this out of the log. I don’t know if it is of value. When we try to send a fax we get the similar error Service Denies Access.

```
 [Wed Feb 24 21:32:07.516802 2021] [php7:notice] [pid 261932] [client 70.184.171.187:54330] oe-module-faxsmsdoes not have a controller object, referer: https://ehr.med.com/interface/modules/zend_modules/public/Installer
 [Wed Feb 24 21:32:07.557562 2021] [php7:notice] [pid 261932] [client 70.184.171.187:54330] PHP Notice: Undefined property: Installer\\Controller\\InstallerController::$helperObject in /var/www/html/boss/interface/modules/zend_modules/module/Installer/src/Installer/Controller/InstallerController.php on line 316, referer: https://ehr.med.com/interface/modules/zend_modules/public/Installer
 [Wed Feb 24 21:33:57.769173 2021] [php7:notice] [pid 258860] [client 69.28.93.63:16376] PHP Notice: Undefined variable: recipient_phone in /var/www/html/boss/interface/modules/custom_modules/oe-module-faxsms/contact.php on line 42, referer: https://ehr.med.com/interface/main/tabs/main.php?token_main=mXTriUqQRlEspMe3aQQcjAySZCMpg7IzSjYGRTBU

```

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/e7976f490e9eda66e7acf228eb2946fac32cf90b.png)

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 10:39pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/9 "2021-02-24T22:39:03Z")

</div>

fyi as I just got caught. Don’t forget to set the Production flag on or off in your account credentials setup dialog depending on your RC account.

---

<div class="post-metadata">

**Author:** ![harmone75](https://community.open-emr.org/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@harmone75](https://community.open-emr.org/u/harmone75)\
**Post date:** [February 24, 2021, 10:53pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/10 "2021-02-24T22:53:34Z")

</div>

I’m not seeing the option to input the settings after i extracted the file and enabled it under manage modules. Under administration is shows modules, but nothing to configure

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 11:01pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/11 "2021-02-24T23:01:12Z")

</div>

It means you’re not logged in to RC.  
Did you get a oauth dialog? You should get a log in button next to refresh when you get that error also.  
Hope you didn’t use the exact redirect url I showed as that’s for my server. You have to replace my domain with yours. Also, that same url has to be setup in your RC account settings. App needs to have Auth Code and Refresh Token set.

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/7/7ab4559183558f36d90b7d21f6909996ac7badfc.png)

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 11:12pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/12 "2021-02-24T23:12:18Z")

</div>

> [@harmone75](#):
>
> but nothing to configure

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/5/5b020a70b20e5bc57d17030d477ef2ac8191ce26.png)  
You need to be sure you’re on the 2.2.0-dev version. If you upgraded openemr to v6 then you need to reinstall faxsms for v6 version. Also try to Disable click trash can then go to unregistered to reinstall the setup. Do this too if you decide to reinstall from composer ie do trash can the composer install.

Can you reach setup from the Fax UI Action-\>Account Credentials

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/3/36f6cb853694e7d8b75a53a3f925820639c26f28.png)

---

<div class="post-metadata">

**Author:** ![harmone75](https://community.open-emr.org/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@harmone75](https://community.open-emr.org/u/harmone75)\
**Post date:** [February 24, 2021, 11:17pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/13 "2021-02-24T23:17:21Z")

</div>

Yes i’m on version 6, so i will go and get the faxsms for that version and give it a try

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 11:25pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/14 "2021-02-24T23:25:56Z")

</div>

Are you going to install with composer?

Thinking about it I wonder if an account is setup for password it may still work w/o oauth login. i.e. same as earlier version of module. R.C forces a more rigorous turn up for server password which is why I changed over to Auth code grant. It should work for legacy password grant but most folks already have a RC account where you don’t have to setup production testing with RC.

---

<div class="post-metadata">

**Author:** ![harmone75](https://community.open-emr.org/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@harmone75](https://community.open-emr.org/u/harmone75)\
**Post date:** [February 24, 2021, 11:40pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/15 "2021-02-24T23:40:40Z")

</div>

Do you have the link to the thread for the fax module for V6?

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 24, 2021, 11:55pm UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/16 "2021-02-24T23:55:36Z")

</div>

[openemr/oe-module-faxsms: Fax and SMS feature for OpenEMR](https://github.com/openemr/oe-module-faxsms)  
Do with composer install. Not sure about using the download, never tried but may be okay.

You must install via composer because I haven’t released the dev version yet so download gives old code…  
composer require “openemr/oe-module-faxsms:2.2.0-beta”

Just checked and you can download from

> **[openemr/oe-module-faxsms](https://github.com/openemr/oe-module-faxsms/tree/v2.2.0-beta)**
>
> Fax and SMS feature for OpenEMR. Contribute to openemr/oe-module-faxsms development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [February 25, 2021, 2:25am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/17 "2021-02-25T02:25:13Z")

</div>

> [@sjpadgett](#):
>
> Did you get a oauth dialog?

I get the page to authorize the app but when I select authorize the dialog box/window disappears.

 ![Screenshot from 2021-02-24 21-33-11](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/b9fe84341fd547f0e2371510fefa8d975f2dfeb6.jpeg)

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 25, 2021, 2:38am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/18 "2021-02-25T02:38:16Z")

</div>

Sherwin can you just give me a call now to go through this. I’m not up for all the typing…

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [February 25, 2021, 4:38am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/19 "2021-02-25T04:38:52Z")

</div>

@sjpadgett, finding where the system changes the session did not take long. The moment the authorize button is selected the system loads a new session and the multi site session is lost. The system returns to default as the session ID. I turned on the debug in the globals to alert when the session change.

I checked when the rcauth.php page loads the session site id is set to the multi site that I am logged into.

The thing that came to mind to solve this is to drop a session cookie. Retrieve the cookie to see if it matches the site id of the new session if it does not match use the cookie site id.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [February 25, 2021, 4:50am UTC](https://community.open-emr.org/t/sms-text-with-ring-central/15903/20 "2021-02-25T04:50:08Z")

</div>

@juggernautsei  
Nope, just add `?site=yoursite` to the redirect urls i.e `....rcauth.php?site=multisite`  
that’ll fix it…

[Next page](https://community.open-emr.org/t/sms-text-with-ring-central/15903.md?page=2)
