group = core admin-port = 13000 #, admin-password = pass #-, (.. ) log-file = "/var/log/kannel/bearerbox.log" log-level = 1 # , 0. 1 . access-log = "/var/log/kannel/access_kannel.log" store-file = "/var/log/kannel/store_sms" smsbox-port = 13001 #, - dlr-storage = internal sms-resend-retry = 1 # 1 . group = smsc smsc-id = povoljye smsc = smpp host = xxx.xxx.xxx.xxx #, port = xxxx smsc-username = "name" smsc-password = "pass" source-addr-ton = 0 # 4 . . source-addr-npi = 1 # - . dest-addr-ton = 1 dest-addr-npi = 1 system-type = VMA #- ) throughput = 1000 #. reconnect-delay = 5 # connection-timeout = 120 # , N . transceiver-mode = true #, ! , - . , , . denied-smsc-id = kemerovo # - SMS SMSC. SMS round-robin, , , SMS . allowed-smsc-id = povoljye preferred-smsc-id = povoljye group = smsc # smsc . - , . smsc-id = kemerovo smsc = smpp host = xxx.xxx.xxx.xxx # port = xxxx receive-port = xxxx smsc-username = "kemerovo" smsc-password = "pass" source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 reconnect-delay = 5 system-type = VMA throughput = 1000 connection-timeout = 120 transceiver-mode = true denied-smsc-id = povoljye allowed-smsc-id = kemerovo preferred-smsc-id = kemerovo group = smsbox bearerbox-host = localhost sendsms-port = 13003 #, smsbox http global-sender = 000037 # log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access_smsbox.log group = sendsms-user username = "user1" #, SMS http password = "pass" concatenation = true # max-messages = 20 # default-smsc = povoljye group = sendsms-user username = "user2" password = "pass" concatenation = true max-messages = 20 default-smsc = kemerovo #ENGINE group = sms-service keyword = default # sms . . post-url = "http://example.com:8080/controller/action/tel/%p/time/%t/coding/%c/smsc/%i" # url concatenation = true max-messages = 0 # kannel , http response. , .. .
http://example.com:13003/cgi-bin/sendsms?smsc=$smsc&username=user1&password=pass&coding=2&to=79277777777&text=some_text
$msg = file_get_contents('php://input');
Source: https://habr.com/ru/post/124302/
All Articles