Skip to content

Configurations

tharakawilfred edited this page Jan 10, 2013 · 22 revisions

Configuring SAMBRO for your instance

  1. SMS Gateway
  2. Twitter
  3. Languages

##Lookup values

Languages

  • To add/remove the drop down values for selecting the in the CAP Information tab, you will need to change the list of languages in the code file: mod/msg/shn_cap_form.inc

$language = array('si_LK'=>_t("Sinhala"),'tm_LK'=>_t("Tamil"),'en_US'=>_t("English"));

Communications gateways

SMS Gateway

Register on https://www.clickatell.com/register/ and generate the api_id to activate SMS gateway.

put your clickatell details in /mo/msg/lib_msg.inc file as mention below

USERNAME - Clickatell user name
PASSWORD - Clickatell password
API_ID - Clickatell api_id

$url="http://api.clickatell.com/http/sendmsg?user=USERNAME&password=PASSWORD&api_id=API_ID&to=$receipient&text=$msg";


### Twitter

Got to the https://dev.twitter.com/ and create the application that entering the required fields and generate the keys to activate twitter for you.

Now put that four keys as mention below in /mod/twitter/handler_tweet.php file

$consumerKey = '';
$consumerSecret = '';
$oAuthToken = '';
$oAuthSecret = '';



Customizing the XSL files

Each XSL file that transforms the CAP XML to human readable or technology compliant (e.g. Twitter 140 chars) must be indicated in the /mod/msg/config file as such

  1. first backup the config file
    cp /mod/msg/config /mod/msg/config.bkp
  2. next edit the config file
    nano /mod/msg/config
  3. match the file names of the corresponding xsl files stored in /res/msg/cap/

Email

SMS

Twitter

Voice-Text

Clone this wiki locally