Skip to content
Snippets Groups Projects
Commit e1355645 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #5 from progressivetech/CRM-21138

CRM-21138 - rotate through multiple twilio providers.
parents fe6aee64 b4fd16d5
Branches
Tags
No related merge requests found
......@@ -151,6 +151,12 @@ class org_civicrm_sms_twilio extends CRM_SMS_Provider {
$from = '';
if (array_key_exists('From', $this->_providerInfo['api_params'])) {
$from = $this->_providerInfo['api_params']['From'];
if (preg_match('/\|/', $from)) {
$froms = explode('|', $from);
$key = array_rand($froms);
$from = $froms[$key];
}
}
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment