SMS-Gate kannel. Как правильно настроить?
Nosk 19 марта, 2010 - 23:31
Вроде всё запускается,но смс не отсылает.
Файл kannel.conf
include="/etc/kannel/modem.conf" group = core admin-port = 13000 admin-password = mypass admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1" log-file = "/var/log/kannel.log" log-level = 0 access-log = "access.log" smsbox-port = 13001 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" group = smsc smsc = at smsc-id = huawei_e620 port = 13013 modemtype = huawei_e620 device = /dev/ttyUSB2 my-number = +7913XXXXXXX connect-allow-ip = "127.0.0.1;Y.Y.Y.Y" sim-buffering = true keepalive = 5 group = smsbox bearerbox-host = localhost sendsms-port = 13013 sendsms-chars = "0123456789 +-" global-sender = 7913XXXXXXX log-file = "smsbox.log" log-level = 0 access-log = "access.log" group = sendsms-user username = user password = mypass user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" max-messages = 4 concatenation = true
modem.conf
group = modems id = huawei_e620 name = "Huawei E620" detect-string = "huawei" init-string = "AT+CFUN=1" message-storage = "ME" need-sleep = true speed = 460800 no-pin = true reset-string = "AT+CFUN=1"
На запрос http://localhost:13013/cgi-bin/sendsms?username=user&password=mypass&to=...
Долгое висение в браузере и сообщение в логе smsbox:
2010-03-20 01:04:38 [12458] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-03-20 01:04:38 [12458] [2] DEBUG: HTTP: Created HTTPClient area 0x74a620. 2010-03-20 01:04:38 [12458] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2010-03-20 01:04:38 [12458] [3] INFO: sendsms used by <user> 2010-03-20 01:04:38 [12458] [3] INFO: sendsms sender:<user:7913XXXXXXX> (127.0.0.1) to:<7913YYYYYYY> msg:<Hello world> 2010-03-20 01:04:38 [12458] [3] DEBUG: Stored UUID 16e12572-3937-4431-8e2c-c47385c8b893 2010-03-20 01:04:38 [12458] [3] DEBUG: message length 11, sending 1 messages 2010-03-20 01:04:38 [12458] [3] DEBUG: Status: 202 Answer: <Sent.> 2010-03-20 01:04:38 [12458] [3] DEBUG: Delayed reply - wait for bearerbox
Потры открыты 13000/13001/13013. Уже не могу понять куда дальше.
»
- Для комментирования войдите или зарегистрируйтесь
group core в конфиге должна
group core в конфиге должна идти первой