sms testv3
This commit is contained in:
parent
d2ec13b33d
commit
4b64becd4a
|
|
@ -41,7 +41,7 @@ return [
|
|||
'example' => [
|
||||
'host' => '217.174.228.218',
|
||||
'port' => 5019,
|
||||
'timeout' => 9000,
|
||||
'timeout' => 10000,
|
||||
'login' => 'birja',
|
||||
'password' => 'Birj@1'
|
||||
]
|
||||
|
|
@ -60,7 +60,8 @@ return [
|
|||
'transport' => [
|
||||
'catchables' => [
|
||||
SMPP::ESME_RBINDFAIL,
|
||||
SMPP::ESME_RINVCMDID
|
||||
SMPP::ESME_RINVCMDID,
|
||||
SMPP::ESME_RINVPARLEN
|
||||
],
|
||||
'force_ipv4' => true,
|
||||
'debug' => true
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ use TPS\Birzha\Classes\SMPP;
|
|||
class SmsController extends Controller
|
||||
{
|
||||
public function index(SmppServiceInterface $smpp) {
|
||||
// $smpp->sendOne(99363432211, 'Hi, this SMS was send via SMPP protocol');
|
||||
$tx=new SMPP('217.174.228.218', 5019); // make sure the port is integer
|
||||
$tx->debug=true;
|
||||
$tx->bindTransmitter("birja","Birj@1");
|
||||
dump('bind transmitter');
|
||||
$result = $tx->sendSMS("0773",request('phone'),request('message'));
|
||||
dump('send sms attempt');
|
||||
echo $tx->getStatusMessage($result);
|
||||
$tx->close();
|
||||
unset($tx);
|
||||
return 'success';
|
||||
$smpp->sendOne(99363432211, 'Hi, this SMS was send via SMPP protocol');
|
||||
// $tx=new SMPP('217.174.228.218', 5019); // make sure the port is integer
|
||||
// $tx->debug=true;
|
||||
// $tx->bindTransmitter("birja","Birj@1");
|
||||
// dump('bind transmitter');
|
||||
// $result = $tx->sendSMS("0773",request('phone'),request('message'));
|
||||
// dump('send sms attempt');
|
||||
// echo $tx->getStatusMessage($result);
|
||||
// $tx->close();
|
||||
// unset($tx);
|
||||
// return 'success';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue