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 »
  • SMS doesn't handle bad numbers
Pages: [1]

Author Topic: SMS doesn't handle bad numbers  (Read 1167 times)

colbyw

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.3.6
SMS doesn't handle bad numbers
October 30, 2012, 11:09:16 am
Hello, we are trying to use search builder to select a group of contacts to send an sms message. However, in 4.2.4, whenever we hit a number that is marked as mobile but is actually a landline, we get the error message "ERR: 114, Cannot route message" and it fails to send the message to the rest of the contacts. Our contacts are coming in from a survey and we have no way of knowing if it is a landline or mobile till we send them a message. Is this the expected behaviour, and if it is, why? Would it not be better to handle those errors and give a printout at the end with which phone numbers failed?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: SMS doesn't handle bad numbers
October 30, 2012, 02:03:00 pm

yes, would be good if the SMS code can collect the errors and display at the end.

Would be great if you can take a look and help figure out whats going on and why, the relevant code can be found here:

CRM/Activity/BAO/Activity.php, function sendSMS

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviSMS »
  • SMS doesn't handle bad numbers

This forum was archived on 2017-11-26.