CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • Added Twilio as SMS Provider
Pages: [1]

Author Topic: Added Twilio as SMS Provider  (Read 2979 times)

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Added Twilio as SMS Provider
November 02, 2012, 08:08:12 am
I have written a very basic implementation of Twilio as an SMS provider.

You can find the code and instructions here:
http://issues.civicrm.org/jira/browse/CRM-11207

Currently, it only sends. No inbound. Still needs some work, and cleaning up to make it meet CiviCRM standards.

First step on my way to a CiviPhone module using Twilio.

jcm55

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 14
Re: Added Twilio as SMS Provider
November 15, 2012, 08:55:44 pm
Thanks for this -- I started with your patch and added inbound functionality, as well as improving inbound overall, so that CiviCRM creates new contact records for inbound SMS from unknown mobile numbers.

See new patch in CRM-11299:

http://issues.civicrm.org/jira/browse/CRM-11299

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Added Twilio as SMS Provider
November 18, 2012, 02:26:36 pm
Great - thanks for improving it.

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Added Twilio as SMS Provider
March 11, 2013, 12:51:51 pm
Any information on how to install this?

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Added Twilio as SMS Provider
April 14, 2013, 01:00:09 am
I would still like information as to how to install this. I am quite interested in using this on Drupal 7.22, CiviCRM 4.2.9 but have not been able to decipher its installation. (I would consider installing it under 4.3.0, if it worked there).

/carmi

bpmccain

  • I post frequently
  • ***
  • Posts: 255
  • Karma: 5
  • CiviCRM version: 4.1
  • CMS version: Drupal 7.12
  • MySQL version: 5.2
  • PHP version: 5.2
Re: Added Twilio as SMS Provider
April 18, 2013, 05:36:35 pm
Sorry - I've been meaning to get back to you. We've been in the middle of an election until last weekend, and it fell on the backburner. I am just upgrading to 4.3.0 and will reinstall on my own install, and then I'll give you the instructions.

I haven't used the 'new' version yet, so I'll have to relearn myself.

Brian

mmikitka

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
Re: Added Twilio as SMS Provider
April 19, 2013, 07:43:52 pm
I successfully configured the Twilio extension in 4.3 via the following steps:

1) Prepare your environment for extensions: wiki.civicrm.org/confluence/display/CRMDOC43/Extensions

2) Install the twilio SMS provider extension: civicrm.org/extensions/twilio-sms-provider

3) Follow the SMS configuration steps as per wiki.civicrm.org/confluence/display/CRMDOC43/Setting+up+a+SMS+Provider+for+CiviSMS

invisible ink

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5
Re: Added Twilio as SMS Provider
April 25, 2013, 01:16:02 pm
I am trying to get the Twilio extension working and feeling quite flummoxed.  The instruction page at wiki.civicrm.org/confluence/display/CRMDOC43/Setting+up+a+SMS+Provider+for+CiviSMS is fairly Clickatell-centered.

Does anyone have enough of a handle on the extension to update the wiki page to include Twilio?  I would love to know what parameters need to be specified, and whether Civi can send a request using the test account, or if you need a paid account just to verify functionality.

Any tips would be appreciated.
« Last Edit: April 25, 2013, 09:09:40 pm by invisible ink »

aliosman20

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.3.1
  • CMS version: drupal 7
  • MySQL version: mysql5
  • PHP version: php5
Re: Added Twilio as SMS Provider
May 02, 2013, 05:25:27 am
Hi,

I send this message to another topic but there is no answer. So maybe I can find solutio9n on this topic. Please help!!!

I tried to add new provider (as extension) based on your extension (twilio) and made some modification on code.

But when I tried to send sms, message of sms part ($message) send to my provider but numbers ( $header['to'] ) does not send to my provider by this code. How can I send mobile phone numbers to my provider?

I am not familiar witp php, but if somebody help me on this issue I appreciate.

My code is here for send function:

Code: [Select]
  function send($recipients, $header, $message, $jobID = NULL) {
    if ($this->_apiType = 'http') {
      list($url, $postData) = $this->formURLPostData("");
      $postData['numaralar'] = $header['to'];
      $postData['mesaj'] = $message;
  $postData['islem'] = "1";
  $postData['baslik'] = "YYYYY";
  $postData['user'] = "YYYYY";
  $postData['pass'] = "YYYYY";
     
      $response = $this->curl($url, $postData);
 
      if (PEAR::isError($response)) {
        return $response;
      }
 
      $send = simplexml_load_string($response['data']);
      $sid = $send->SMSMessage->Sid;
      if (!empty($sid)) {
        $this->createActivity($sid, $message, $header, $jobID);
        return $sid;
      }
      else {
        return PEAR::raiseError($response['data']);
      }
    }
  }
 

Thanks

majortom

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
Re: Added Twilio as SMS Provider
May 08, 2013, 07:13:18 am
Quote from: bpmccain on April 18, 2013, 05:36:35 pm
I am just upgrading to 4.3.0 and will reinstall on my own install, and then I'll give you the instructions.

Actually, I am still running 4.2 on my site. Will the module still work with 4.2? If so, how do I install it? :-)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Added Twilio as SMS Provider
May 08, 2013, 10:22:43 am
aliosman20:
Quote
I send this message to another topic but there is no answer. So maybe I can find solutio9n on this topic. Please help!!!
it doesn't really help to post it here as well - lets continue to conversation on the other topic: http://forum.civicrm.org/index.php/topic,28543.msg122103.html#msg122103
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • Added Twilio as SMS Provider

This forum was archived on 2017-11-26.