I am trying to integrate Twilio to send SMS notifications using this guide https://www.open-emr.org/wiki/index.php/Short_Message_Service.
I have done all required changes and when I visit http://x.x.x.x/openemr/modules/sms_email_reminder/cron_sms_notification.php,
I receive the following error Error in SMS authorization! (ERR: 108, Invalid or missing api_id)
Checking further, I can see the following at the end of /var/log/apache2/error.log when I visit the link
[Wed Dec 09 11:20:51.317933 2020] [php7:notice] [pid 3841] [client x.x.x.x:57122] PHP Notice: Undefined variable: argc in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 25 [Wed Dec 09 11:20:51.318489 2020] [php7:warn] [pid 3841] [client x.x.x.x:57122] PHP Warning: mysqli_query() expects at least 2 parameters, 1 given in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 41 [Wed Dec 09 11:20:51.318585 2020] [php7:warn] [pid 3841] [client x.x.x.x:57122] PHP Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 42 [Wed Dec 09 11:20:51.318672 2020] [php7:notice] [pid 3841] [client x.x.x.x:57122] PHP Notice: Undefined variable: AccountSid in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 50 [Wed Dec 09 11:20:51.319012 2020] [php7:notice] [pid 3841] [client x.x.x.x:57122] PHP Notice: Undefined variable: AccountSid in /var/www/openemr/modules/sms_email_reminder/cron_sms_notification.php on line 98
I configured Twilio Account Sid, Twilio Auth Token and Twilio From name as per the guide and I can confirm that my Twilio account has enough balance.
While you are testing the script, you may want to do a test-run of outgoing SMSâs instead of using CRON.
Set the SMS Notification Hours to 1
Make a test patient and use your own mobile/cell number in the Contact (use the number format: +CountrycodeAreacodeNumber (preceding + is important and there should be no spaces, hyphens or periods anywhere) ). Make sure you select âYesâ for your test patientâs âAllow SMSâ (in Demographics >> Choices).
The Twilio SMS with my fax/sms module works pretty well once setup for notifications with manual and automated runs. You can test run available notifications before sending to patients.
Iâm guessing the problem is there is not an install for 5.0.1 but iâd be willing to bet it would run on v5.0.1 with some command line magic for a manual install or I could allow install for v5.0.1 from composer with a minor change on the repository.
I know of several practices, including my practice, that uses in this way.
hxxps://github.com/twilio/twilio-php twilio/twilio-php
A PHP library for communicating with the Twilio REST API and generating TwiML.
hxxps://www.twilio.com/docs/libraries/php
Can you please confirm that API url mentioned here and other Twilio parameters are correct github.com/bradymiller/openemr/blob/twilio_1/modules/sms_email_reminder/twilio/Services/Twilio.php
Very disappointing to have lost this highly valuable resource when we âupgradedâ.
Twilio is less than a penny per SMS text message (0.75 cents to be exact) and now it costs us $200 per month for phone minutes and labor time to make patient reminder calls. Is there no one out there willing to work with us to get this back?
@hitechelp are you saying that youâve tried using @sjpadgettâs sms module which uses twilio and its not working for you? This thread seems to suggest the person is trying to do twilio on a older version of OpenEMR and canât use the new sms module that Jerry Padgett put together?
I appreciate your taking the time to respond in a timely manner. Thank you.
I need to install Composer which is apparently just the first step in many undocumented steps.
I read up on their site, but I donât know which directory it must be installed in for OpenEMR use or which type (local vs global). And it seems we must use an old version (1.10.10) Ok but only if itâs secure.
I got this âHow toâ off the Composer site; My notes are in caps.
DO A PACKAGE UPDATE FIRST
sudo apt-get update
sudo apt-get upgrade
I was hoping to find someone whoâs got this working so I can get some answers.
There has to be more to getting this working than just using Composer to install Jerryâs module with;
composer require "openemr/oe-module-faxsms:2.2.0
I have no such module (registered or unregistered) in my âManage Modulesâ tab in OpenEMR.
What is the operating system of your OpenEMR installation. Are you using docker? Is this on Windows, Linux, Other? How familiar are you with information technology (IT) tasks?
Composer is a third party php software installer (called a package manager). It allows you to install 3rd party software packages that live on https://packagist.org/ Jerryâs SMS module is a 3rd party library that adds SMS functionality into OpenEMR.
Ubuntu 18.04 (LAMPS), OpenEMR v6.0.0 (1), not using docker. Would you recommend that I should?
I am a 30+ year Unix SysAdmin, and Information Systems Security Officer (US Navy retired)
Iâve been running OpenEMR since 2012 on multiple headless servers I built over the years.
I set up SMS Appointment Reminders back in 2013 on v4.1.1 using Twilio, but lost that functionality when we âupgradedâ to v5.02 in May of 2020. Been struggling ever since to get it going again.
I donât have much experience in PhP but I can usually make my way.
A lot of us are using the docker since it comes already with the tools such as composer installed, I donât think you have to switch your installation but you may run into things from time to time like this where a tool needs to be installed.
Here is some documentation for installing and configuring the fax/sms module that Jerry wrote. Note the fax has been disabled by Twilio since the module was written: