Re: USSD connection problem
mohammad hossein shafinia <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <CAP3FK9Lw8oSib2cTk77Dovj-YCtg_Ann1JDdMHhH6tXNMSCPBw@mail.gmail.com> |
Hello, We have installed Kannel 1.5.0 to resolve connecting with USSD via TLV. With this version SMSbox and bearbox didn't stopped and we connected to USSD gateway. But unfortunately we can't receive any USSD request. Would you please help us and share with us a sample config file. Please find our config file in the attachment. Kind regards, Mohammad Hossein On Sat, Feb 7, 2015 at 4:34 PM, Milan P. Stanic <[email protected]> wrote: > On Sat, 2015-02-07 at 16:06, mohammad hossein shafinia wrote: > > Thank you so much for your helpful comment. > > > > Also would you please let us know if the config file is OK? > > I don't use (unfortunately) Kannel for more than two years so I cannot > tell much about your config. > Upgrade Kannel to one of the newer version and test it. If it does not > work then post your log and config, so someone else could help you, I > hope. > > > On Sat, Feb 7, 2015 at 3:42 PM, Milan P. Stanic <[email protected]> wrote: > > > On Sat, 2015-02-07 at 12:47, mohammad hossein shafinia wrote: > > > [...] > > > > However, I want to develop an application to connect to USSD. But I > don't > > > > know how do I configure (kannel.conf) to connect to USSD. First we > > > changed > > > > the configuration of kannel.conf similar to what we done for SMS, > then > > > > restarted Kannel and we was connected to USSD server, but we couldn't > > > send > > > > or receive any USSD transaction. After that we searched more and > find a > > > > parameter named TLV and changed the parameter based on that, but > after > > > > restarting the Kannel, SMSbox and bearbox just stopped. > > > > > > > > Can you give me a sample of kannel.conf for connection to USSD ? > > > > > > > > Also please find the current config file that we are using now in the > > > > attachment. Please let me know how we have to change that config > file. > > > > > > > > Version: Kannel bearerbox version `1.4.1'. > > > > > > Kannel version 1.4.1 does not support TLVs, IIRC. > > > > > > You should use 1.4.4 or 1.5.0 (or even SVN) version not just because of > > > TLVs but because 1.4.1 is really old and lots of bugs are fixed in > newer > > > versions. > > -- > Kind regards, Milan > -------------------------------------------------- > Arvanta, http://www.arvanta.net > Please do not send me e-mail containing HTML code or documents in > proprietary format (word, excel, pps and so on) > > -- Regards, M. H. Shafinia
kannel (1).conf
(application/octet-stream, 2.4 KB)
## MAIN GROUP group = core admin-port = 13000 admin-password = kannel816639 status-password =kannel816639 smsbox-port = 13001 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" log-level = 0 ############################################ ### SMS Box ############################################ group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 access-log = "/var/log/kannel/smsbox-access.log" sendsms-chars = "0123456789 -+" reply-couldnotfetch = "< Dar erae service khelali ijad shode ast lotfan, mojadadan moraje farmaid! >" reply-couldnotrepresent = "< Emkane erae pasokh be shekle sms vojood nadarad! >" reply-requestfailed = "< Darkhast shoma ba moshkel movajeh shod! >" mo-recode = true ############################################ ### SMS FROM SHORT CODE 1393 ############################################ group = smsc smsc = smpp smsc-id = 1393 host = 217.11.189.250 port = 2775 transceiver-mode = true smsc-username = username smsc-password = password system-type = test address-range = "" source-addr-npi = 0 source-addr-ton = 0 source-addr-autodetect = no dest-addr-ton = 0 dest-addr-npi = 0 allowed-smsc-id = g1393 log-level = 0 log-file = "/var/log/kannel/smsc-g1393.log" ############################################ ### USSD (*1393#) ############################################ group = smsc smsc = smpp smsc-id = 1393-ussd host = 217.11.189.253 port = 10664 transceiver-mode = true smsc-username = username smsc-password = password system-type = test address-range = "" source-addr-npi = 1 source-addr-ton = 0 source-addr-autodetect = no dest-addr-ton = 0 dest-addr-npi = 1 msg-id-type = 0x01 throughput = 1 allowed-smsc-id = g1393-ussd log-level = 0 log-file = "/var/log/kannel/smsc-g1393-ussd.log" group = smpp-tlv name = test tag = 0x0501 type = integer length = 20 smsc-id = 1393-ussd group = sendsms-user username = negahban password = shorapass forced-smsc = g1393 #default-sender = 1393 group = sendsms-user username = test2 password = test2 forced-smsc = g1393-ussd ############################################ ### SMS Services ############################################ # There should be default always group = sms-service keyword = default get-url = "http://127.0.0.1/services/kannel.php?timest=%t&from=%q&to=%Q&text=%a&smsc=%i" catch-all = true omit-empty = true accept-x-kannel-headers = true