настраивал по этому шаблону!
не подключается к серверу Мегаофн! там еще нужны дополнительные параметры для подключения, а какие хз!
Конфиг:group = core
admin-port = 13000
smsbox-port = 13001
admin-password = 1
log-file = "/var/log/kannel/kannel.log"
log-level = 0
dlr-storage = internal
store-file = "/home/kannel/kannel.store"
group = smsbox
bearerbox-host = "127.0.0.1"
sendsms-port = 13003
group = sendsms-user
username = foo
password = bar
concatenation = true
max-messages = 20
group = smsc
smsc = smpp
smsc-id = megafon
host = xxx.xxx.xx.xx #тут указан ip (который выдал Мегафон)
port = xxx #тут порт
transceiver-mode = 1
smsc-username = xxxxxx #логин
smsc-password = ****** #пароль
system-type = "VMA"
address-range = ""
log-file = "/var/log/kannel/smsc-operator.log"
log-level = 0
Ошибка в логах:2015-07-21 09:35:26 [1988] [6] DEBUG: SMPP[megafon]: Sending PDU:
2015-07-21 09:35:26 [1988] [6] DEBUG: SMPP PDU 0x7f8e5c000a40 dump:
2015-07-21 09:35:26 [1988] [6] DEBUG: type_name: bind_transceiver
2015-07-21 09:35:26 [1988] [6] DEBUG: command_id: 9 = 0x00000009
2015-07-21 09:35:26 [1988] [6] DEBUG: command_status: 0 = 0x00000000
2015-07-21 09:35:26 [1988] [6] DEBUG: sequence_number: 1 = 0x00000001
2015-07-21 09:35:26 [1988] [6] DEBUG: system_id: "*****"
2015-07-21 09:35:26 [1988] [6] DEBUG: password: "******"
2015-07-21 09:35:26 [1988] [6] DEBUG: system_type: "VMA"
2015-07-21 09:35:26 [1988] [6] DEBUG: interface_version: 52 = 0x00000034
2015-07-21 09:35:26 [1988] [6] DEBUG: addr_ton: 0 = 0x00000000
2015-07-21 09:35:26 [1988] [6] DEBUG: addr_npi: 0 = 0x00000000
2015-07-21 09:35:26 [1988] [6] DEBUG: address_range: ""
2015-07-21 09:35:26 [1988] [6] DEBUG: SMPP PDU dump ends.
2015-07-21 09:35:26 [1988] [6] WARNING: SMPP: PDU NULL terminated string (system_id) has no NULL.
2015-07-21 09:35:26 [1988] [6] DEBUG: SMPP[megafon]: Got PDU:
2015-07-21 09:35:26 [1988] [6] DEBUG: SMPP PDU 0x7f8e5c000ea0 dump:
2015-07-21 09:35:26 [1988] [6] DEBUG: type_name: bind_transceiver_resp
2015-07-21 09:35:26 [1988] [6] DEBUG: command_id: 2147483657 = 0x80000009
2015-07-21 09:35:26 [1988] [6] DEBUG: command_status: 14 = 0x0000000e
2015-07-21 09:35:26 [1988] [6] DEBUG: sequence_number: 1 = 0x00000001
2015-07-21 09:35:26 [1988] [6] DEBUG: system_id: NULL
2015-07-21 09:35:26 [1988] [6] DEBUG: SMPP PDU dump ends.
2015-07-21 09:35:26 [1988] [6] ERROR: SMPP[megafon]: SMSC rejected login to transmit, code 0x0000000e (Invalid Password).
2015-07-21 09:35:26 [1988] [6] ERROR: SMPP[megafon]: I/O error or other error. Re-connecting.
2015-07-21 09:35:26 [1988] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) terminates.
Это сообщение отредактировал HRR - 21.07.2015 - 07:48