Rene, thank you very much, I used url-encoding and this resolved my problem!
2011/5/16 Rene Kluwen <[email protected]>: > Properly url-encoding your to-number might solve your problem. > > e.g.: to=%2B7MMMXXXXXXX > > == Rene > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of Alexandr Gubanov > Sent: Monday, 16 May, 2011 12:19 > To: [email protected] > Subject: Problem in sms sending - wrong number type on DA field > > Good Day, > > I would like to use kannel in configuration with smsc based on > gsm-terminal Siemens MC35i. We have got some problems while setting > the kannel, which I failed to solve. The problem is that our > gsm-operator does not accept messages which have 81h in the DA field > of the number type. > > In particular the situation is the following: > > If I control the modem by minicom and send an sms with the following > commands: > > AT&F > AT+CNMI=1,2,0,1,1 > AT+CMSG=24 >>0011000B919713141110F10000AA0BCBB0DB5D6653CB737A08<Ctrl+Z> > > Than the sms is sent to my phone. > > If I send an sms through kannel by web-interface > http://smsgate.appm.local:13013/cgi-bin/sendsms?username=&password=&to=+7MMM > XXXXXXX&text=KannelTest! > than the sms is converted into the following PDU: > > 0011000B819713141110F10000AA0BCBB0DB5D6653CB737A08 > > and goes to the operator, but a callback message comes and give us " > the message can not be sent because the recipient number should be > stated in the international format" (as far as I understand the fifth > byte should be 91h). Any notation of unified-prefix parameters and > sms-center in config does not help to change the outgoing PDU... > > Please be so kind to advise us how to set up the kannel and make the > kannel operate with 91h number type? > > kannel 1.4.2 is compiled from repo rpm-forge on the base of CentOS5. > > Kannel config: > > # APPM kannel configuration file > group = core > admin-port = 13000 > admin-password = ****** > smsbox-port = 13001 > log-file = /var/log/kannel/bearerbox.log > log-level = 0 > access-log = /var/log/kannel/access.log > dlr-storage = internal > store-type = spool > store-location = /var/spool/kannel/ > > group = smsbox > bearerbox-host = localhost > smsbox-id = APPM-smsbox > log-file = /var/log/kannel/smsbox.log > log-level = 0 > sendsms-port = 13013 > > group = smsc > smsc = at > smsc-id = APPM-smsc > #log-file = /var/log/kannel/smsc_at.log > #log-level = 0 > modemtype = auto > device = /dev/ttyS0 > connect-allow-ip = 127.0.0.1 > speed = 115200 > sim-buffering = true > unified-prefix = "+7" > sms-center = "+7MMMXXXXXXX" > > group = smsbox-route > smsbox-id = APPM-smsbox > smsc-id = APPM-smsc > > group = modems > id = SIEMENS MC35i > name = "Siemens_MC35i" > detect-string = "SIEMENS" > detect-string2 = "MC35i" > init-string = "AT+CNMI=1,2,0,1,1" > enable-hwhs = "AT\\Q3" > need-sleep = true > message-storage = sm > > group = sendsms-user > username = "" > password = "" > default-sender = +7MMMXXXXXXX > > group = sms-service > keyword = default > text = "No service specified" > catch-all = true > > Any help would be greatly appreciated! > > Best regards, > Alexander Gubanov. > > > -- ---------------------------------------------------------- Best regards, Александр Губанов, начальник отдела администрирования Управления автоматизации ОАО <Архангельский ЦБК> т. (818) 526-31-34, ф.(818) 526-30-96. E-mail: [email protected] Web: www.appm.ru
