hitechelp wrote on Tuesday, June 28, 2016:
Michael,
We’ve been using Twilio since 2013 for SMS appointment reminders on our
Ubuntu Server.
It’s a bit of a chore,but well worth the effort.
You didn’t mention what OS you’re running so here are some of the things
that are universal.
For starters, you need to modify the following files
globals.inc.php (To create places to enter your Twilio authentication data
in the global settings page)
Add the following code immediately after this. x1(‘API key for SMS
Gateway.’)), (which is split across lines 1002 and 1003 in my
globals.in.php)
‘TWILIO_ACCOUNT_SID’ => array(
xl(‘Twilio Account Sid’),
‘text’, // data type
‘’, // default
xl(‘Account Sid for Twilio.’)
),
‘TWILIO_AUTHTOKEN’ => array(
xl(‘Twilio Auth Token’),
‘text’, // data type
‘’, // default
xl(‘Auth Token for Twilio.’)
),
‘TWILIO_FROM’ => array(
xl(‘Twilio From name’),
‘text’, // data type
‘’, // default
xl(‘Twilio From name’)
),
cron_sms_notification.php (to permit your server to access your Twilio
account)
Add the following code immediately after this line. global $mysms; (which
is line 38 in the file you attached)
$sql=“select * from globals where gl_name in
(‘TWILIO_ACCOUNT_SID’,‘TWILIO_AUTHTOKEN’,‘TWILIO_FROM’)”;
$q=mysql_query($sql);
while($r=mysql_fetch_assoc($q)){
if($r[‘gl_name’]==‘TWILIO_ACCOUNT_SID’)
$AccountSid=$r[‘gl_value’];
if($r[‘gl_name’]==‘TWILIO_AUTHTOKEN’)
$AuthToken=$r[‘gl_value’];
if($r[‘gl_name’]==‘TWILIO_FROM’)
$from=$r[‘gl_value’];
}
if($AccountSid)
{
include_once(“/var/www/openemr/modules/sms_email_reminder/sendnotifications.php”);
}else
Hit me back if you need more help.
On Tue, Jun 28, 2016 at 9:14 AM, Michael Onyenma mikeoe2003@users.sf.net
wrote:
Please find attached the Cron_sms_notification.php file i used… Thank you
guys again for your kind assistance.
Attachments:
Sent from sourceforge.net because you indicated interest in
OpenEMR / Discussion / Help
To unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net
–
Regards,
David