Allow external modules to send SMS

This commit is contained in:
Laurent Destailleur 2011-10-18 00:28:01 +02:00
parent 6b2d3f5072
commit 81d93563af
2 changed files with 5 additions and 3 deletions

View File

@ -72,7 +72,7 @@ class CSMSFile
return -1;
}
dol_syslog("CSMSFile::CSMSFile: MAIN_SMS_SENDMODE=".$conf->global->MAIN_SMS_SENDMODE." charset=".$conf->file->character_set_client." from=$from, to=$to, errors_to=$errors_to", LOG_DEBUG);
dol_syslog("CSMSFile::CSMSFile: MAIN_SMS_SENDMODE=".$conf->global->MAIN_SMS_SENDMODE." charset=".$conf->file->character_set_client." from=".$from.", to=".$to.", msg length=".count($msg), LOG_DEBUG);
dol_syslog("CSMSFile::CSMSFile: deliveryreceipt=".$deliveryreceipt." deferred=".$deferred." priority=".$priority." class=".$class, LOG_DEBUG);
// Action according to choosed sending method

View File

@ -1173,7 +1173,8 @@ function getSoapParams()
'proxy_host' => $proxyhost,
'proxy_port' => $proxyport,
'proxy_login' => $proxyuser,
'proxy_password' => $proxypass
'proxy_password' => $proxypass,
'trace' => 1
);
}
else
@ -1184,7 +1185,8 @@ function getSoapParams()
'proxy_host' => false,
'proxy_port' => false,
'proxy_login' => false,
'proxy_password' => false
'proxy_password' => false,
'trace' => 1
);
}
return $params;