Skip to content
Snippets Groups Projects
Commit b4fd16d5 authored by Jamie McClelland's avatar Jamie McClelland
Browse files

CRM-21138 - rotate through multiple twilio providers.

parent 8caa6a51
Branches
Tags
No related merge requests found
......@@ -150,6 +150,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