82 lines
2.7 KiB
PHP
82 lines
2.7 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Default SMPP settings
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| 1. "sender" is the SMS message sender, either phone number or something like ABCDEF.
|
|
| 2. "source_ton" is the sender's type of number
|
|
| 3. "source_npi" is the sender's numbering plan identification
|
|
| 4. "destination_ton" is the receiver's type of number
|
|
| 5. "destination_npi" is the receiver's numbering plan identification
|
|
|
|
|
| Usually SMPP providers provide these settings to their clients.
|
|
| Please refer to official SMPP protocol specification v3.4 to learn more about TON and NPI settings.
|
|
|
|
|
*/
|
|
|
|
'defaults' => [
|
|
'sender' => env('SMPP_SENDER','0773'),
|
|
'source_ton' => env('SMPP_SOURCE_TON',SMPP::TON_ALPHANUMERIC),
|
|
'source_npi' => env('SMPP_SOURCE_NPI',SMPP::NPI_UNKNOWN),
|
|
'destination_ton' => env('SMPP_DESTINATION_TON',SMPP::TON_NATIONAL),
|
|
'destination_npi' => env('SMPP_DESTINATION_NPI',SMPP::NPI_NATIONAL)
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Custom SMPP provider settings
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Most of the time, settings shown under the "example" key are be provided by your SMPP provider.
|
|
| So if you don't have any of these settings, please contact your SMPP provider.
|
|
|
|
|
*/
|
|
|
|
'default' => env('SMPP_DEFAULT_PROVIDER','example'),
|
|
|
|
'providers' => [
|
|
'example' => [
|
|
'host' => '217.174.228.218',
|
|
'port' => 5019,
|
|
'timeout' => 10000,
|
|
'login' => 'birja',
|
|
'password' => 'Birj@1'
|
|
]
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| SMPP transport settings
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| For all SMPP errors listed in "transport.catchables", exceptions
|
|
| thrown by SMPP will be suppressed and just logged.
|
|
|
|
|
*/
|
|
|
|
'transport' => [
|
|
'catchables' => [
|
|
SMPP::ESME_RBINDFAIL,
|
|
SMPP::ESME_RINVCMDID,
|
|
SMPP::ESME_RINVPARLEN
|
|
],
|
|
'force_ipv4' => true,
|
|
'debug' => true
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| SMPP client settings
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
'client' => [
|
|
'system_type' => 'default',
|
|
'null_terminate_octetstrings' => false,
|
|
'debug' => true
|
|
]
|
|
];
|