Difference between revisions of "SMS Twilio"

(Configuration)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Send SMS messages via Twilio'''
+
= Send SMS messages via Twilio =
  
 +
== Requirements ==
  
'''Requirements'''
+
* An active Twilio account (https://www.twilio.com/)
 +
* A suitable number of pre-provisioned Twilio long-codes and/or short-codes
  
*An activated Twilio account
+
== Available packages ==
*A suitable number of pre-provisioned Twilio long-codes and/or short-codes
+
To send SMS messages via Twilio, the package open-xchange-sms-twilio must be installed and configured.
 +
Additionally, the  open-xchange-sms-sipgate package must *NOT* be installed.
  
 +
{{InstallPlugin|pluginname=open-xchange-sms-twilio|toplevel=components|sopath=plugins/stable/1.3.1|version=App Suite|ldbaccount=LDBACCOUNT:LDBPASSWD|reponame=plugins}}
  
'''Available packages'''
+
== Configuration ==
  
To send SMS messages via Twilio, the package open-xchange-sms-twilio must be installed and configured.
+
Open the following file in editor:
Additionally, the  open-xchange-sms-sipgate package must *NOT* be installed.
+
<pre>
 +
$ /opt/open-xchange/etc/twilio.properties
 +
</pre>
  
*''Debian GNU/Linux'' - Run: $ apt-get install open-xchange-sms-twilio
 
  
*''Red Hat Enterprise Linux'' - Run: $ yum install open-xchange-sms-twilio
+
Apply the following config-cascade enabled properties:
 +
<pre>
 +
# Twilio auth key)
 +
com.openexchange.plugins.sms.twilio.authkey=ACCOUNT_SID
  
*''SUSE Linux Enterprise Server'' - Run: $ zypper in open-xchange-sms-twilio
+
#Twilio auth token
 +
com.openexchange.plugins.sms.twilio.authtoken=AUTH_TOKEN
  
 +
#Twilio Message Service SID
 +
com.openexchange.plugins.sms.twilio.messageservicesid=SERVICE_SID
  
'''Configuration'''
+
#1600 characters is Twilio's maximum
 +
com.openexchange.plugins.sms.twilio.maxlength=1600
 +
</pre>
  
Apply the following config-cascade enabled properties:
+
== Twilio Documentation ==
*com.openexchange.plugins.sms.twilio.authkey=ACCOUNT_SID - (Twilio auth key)
+
https://www.twilio.com/docs/
*com.openexchange.plugins.sms.twilio.authtoken=AUTH_TOKEN - (Twilio auth token)
 
*com.openexchange.plugins.sms.twilio.messageservicesid=SERVICE_SID - (Twilio Message Service SID)
 
*com.openexchange.plugins.sms.twilio.maxlength=1600 - (1600 characters is Twilio's maximum)
 

Latest revision as of 16:23, 20 October 2017

Send SMS messages via Twilio

Requirements

  • An active Twilio account (https://www.twilio.com/)
  • A suitable number of pre-provisioned Twilio long-codes and/or short-codes

Available packages

To send SMS messages via Twilio, the package open-xchange-sms-twilio must be installed and configured. Additionally, the open-xchange-sms-sipgate package must *NOT* be installed.

Install on OX App Suite

Debian GNU/Linux 10.0

Add the following entry to /etc/apt/sources.list.d/open-xchange.list if not already present:

deb https://LDBACCOUNT:LDBPASSWD@software.open-xchange.com/components/plugins/stable/1.3.1/DebianBuster/ /

and run

$ apt-get update
$ apt-get install open-xchange-sms-twilio

Debian GNU/Linux 11.0

Add the following entry to /etc/apt/sources.list.d/open-xchange.list if not already present:

deb https://LDBACCOUNT:LDBPASSWD@software.open-xchange.com/components/plugins/stable/1.3.1/DebianBullseye/ /

and run

$ apt-get update
$ apt-get install open-xchange-sms-twilio


Configuration

Open the following file in editor:

$ /opt/open-xchange/etc/twilio.properties


Apply the following config-cascade enabled properties:

# Twilio auth key)
com.openexchange.plugins.sms.twilio.authkey=ACCOUNT_SID 

#Twilio auth token
com.openexchange.plugins.sms.twilio.authtoken=AUTH_TOKEN

#Twilio Message Service SID
com.openexchange.plugins.sms.twilio.messageservicesid=SERVICE_SID

#1600 characters is Twilio's maximum
com.openexchange.plugins.sms.twilio.maxlength=1600

Twilio Documentation

https://www.twilio.com/docs/