Re: Vendor-specific error
There is also another possible issue. SMSC may use different algorithm to calculate the throughput than Kannel use. For example SMSC may rely on exact delays between PDUs or check number of messages retrieved during 1 sec since last submit_sm PDU retrieved. I've faced such issue couple of years ago and resolved by requesting throughput x 2 on SMSC side. Regards, Michael Bochkaryov www.rattler.kiev.ua On Tue, Jun 4, 2013 at 4:16 PM, Willy Mularto sangpr...@gmail.com wrote: The easiest way is to set log-level to 0 and you can find the human readable status in submit_sm_resp. Refer to it please check your telco's documentation to check it's definition. Willy Mularto sangpr...@gmail.com On Jun 4, 2013, at 5:41 PM, Santosh Bhabal sant...@thinkwalnut.com wrote: Hello Experts, Getting below error in one of my SMPP connectivity: SMSC returned error code 0x0439 (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. Unable to find any detail on the net. Please help. Regards Santosh
Re: Multiple SMSC integaration
Hi Komil, To route messages between SMSC you can use smsc parameter in sendsms HTTP interface. Also you can use (allowed/preferred/denied)-prefix parameters for MSISDN prefix based routing. Group smsbox-route is for routing between multiple smsbox'es. 8/3/2012 12:00 AM, Komil Gulboev wrote: Hi Daniel, thank u very much for supporting, I think for separating messages should be use routing like this: group = smsbox-route smsbox-id = babilone smsc-id = babilon or not? 8/3/2012 12:44 AM, Olutoyin Daniel ?: Hello Komil, You are on the right path. Just uncomment the second SMSC group and ensure it has all the parameter given to you by the second network. You can have as many smsc group in your config file as much as you have many networks to connect to. A good practice is to break each smsc into a seperate file and put all the files in a folder and simply include that folder. I hope this helps you. Toyin Daniel *From:* Komil Gulboev ko...@babilon-m.tj *To:* users@kannel.org *Sent:* Thursday, August 2, 2012 8:10 PM *Subject:* Multiple SMSC integaration Hi guys, now I have connection via SMPP with one provider but need also connecting with another how can I do it? For example if receive message from one provider should be send to subscriber with received providers settings. Now I have this kind of settings: group = core #admin-port-ssl = true admin-port = 13000 admin-password = xxx status-password = xxx log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 #store-file = /var/log/kannel/kannel.store dlr-storage = internal sms-resend-retry = 1 #This is main settings which already working group = smsc smsc-id = babilon smsc = smpp host = xxx.xxx.xxx.xxx port = 2775 receive-port = 2775 smsc-username = xxx smsc-password = source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 1 dest-addr-npi = 1 system-type = VMA throughput = 1000 reconnect-delay = 5 connection-timeout = 120 transceiver-mode = true denied-smsc-id = tcell allowed-smsc-id = babilon preferred-smsc-id = babilon #This section I`ll modify today but not sure for correcting and need attention from you #group = smsc #smsc-id = tcell #smsc = smpp #host = #port = #receive-port = #smsc-username = tcell #smsc-password = tcell #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 = babilon #allowed-smsc-id = tcell group = smsbox smsbox-id=babilone bearerbox-host = localhost sendsms-port = 13131 global-sender = log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access_smsbox.log group = sendsms-user username = xxx password = xxx user-deny-ip = *.*.*.* user-allow-ip = *.*.*.* concatenation = true max-messages = 20 default-smsc = babilon group = smsbox-route smsbox-id = babilone smsc-id = babilon #group = sendsms-user #username = tcell #password = tcell #concatenation = true #max-messages = 20 #default-smsc = tcell # SMS SERVICE 'default' group = sms-service keyword = default omit-empty = true max-messages = 0 get-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=geturlt=%tq=%qa=%aQ=%Q; #get-url = http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a http://localhost/%7Eplaysms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a Please pay attention to comment line (#) this my settings true or not? -- Komil Gulboev System Administrator Automation Department CJSC Babilon-Mobile +992 91833 mobile +992 44625 phone -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Multiple SMSC integaration
Just create multiple smsc groups in your kannel.conf Possibly this articles may help you: http://www.rattler.kiev.ua/articles/kannel-backup-connections http://www.rattler.kiev.ua/articles/kannel-connecting-smsc-smpp Short example (not tested): group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 group = smsc smsc = fake smsc-id = fake1 allowed-smsc-id = fake1 port = 20001 connect-allow-ip = 127.0.0.1 group = smsc smsc = fake smsc-id = fake2 allowed-smsc-id = fake2 port = 20002 connect-allow-ip = 127.0.0.1 group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 1234 group = sendsms-user username = tester password = foobar 8/3/2012 11:43 AM, Komil Gulboev wrote: Hi Michael. Thank you for detail information, I think u have great experience in Kannel. May u provide us some simple for multiple connection? With best regards, Komil 8/3/2012 12:54 PM, Michael Bochkaryov ?: Hi Komil, To route messages between SMSC you can use smsc parameter in sendsms HTTP interface. Also you can use (allowed/preferred/denied)-prefix parameters for MSISDN prefix based routing. Group smsbox-route is for routing between multiple smsbox'es. 8/3/2012 12:00 AM, Komil Gulboev wrote: Hi Daniel, thank u very much for supporting, I think for separating messages should be use routing like this: group = smsbox-route smsbox-id = babilone smsc-id = babilon or not? 8/3/2012 12:44 AM, Olutoyin Daniel ?: Hello Komil, You are on the right path. Just uncomment the second SMSC group and ensure it has all the parameter given to you by the second network. You can have as many smsc group in your config file as much as you have many networks to connect to. A good practice is to break each smsc into a seperate file and put all the files in a folder and simply include that folder. I hope this helps you. Toyin Daniel *From:* Komil Gulboev ko...@babilon-m.tj *To:* users@kannel.org *Sent:* Thursday, August 2, 2012 8:10 PM *Subject:* Multiple SMSC integaration Hi guys, now I have connection via SMPP with one provider but need also connecting with another how can I do it? For example if receive message from one provider should be send to subscriber with received providers settings. Now I have this kind of settings: group = core #admin-port-ssl = true admin-port = 13000 admin-password = xxx status-password = xxx log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 #store-file = /var/log/kannel/kannel.store dlr-storage = internal sms-resend-retry = 1 #This is main settings which already working group = smsc smsc-id = babilon smsc = smpp host = xxx.xxx.xxx.xxx port = 2775 receive-port = 2775 smsc-username = xxx smsc-password = source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 1 dest-addr-npi = 1 system-type = VMA throughput = 1000 reconnect-delay = 5 connection-timeout = 120 transceiver-mode = true denied-smsc-id = tcell allowed-smsc-id = babilon preferred-smsc-id = babilon #This section I`ll modify today but not sure for correcting and need attention from you #group = smsc #smsc-id = tcell #smsc = smpp #host = #port = #receive-port = #smsc-username = tcell #smsc-password = tcell #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 = babilon #allowed-smsc-id = tcell group = smsbox smsbox-id=babilone bearerbox-host = localhost sendsms-port = 13131 global-sender = log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access_smsbox.log group = sendsms-user username = xxx password = xxx user-deny-ip = *.*.*.* user-allow-ip = *.*.*.* concatenation = true max-messages = 20 default-smsc = babilon group = smsbox-route smsbox-id = babilone smsc-id = babilon #group = sendsms-user #username = tcell #password = tcell #concatenation = true #max-messages = 20 #default-smsc = tcell # SMS SERVICE 'default' group = sms-service keyword = default omit-empty = true max-messages = 0 get-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=geturlt=%tq=%qa=%aQ=%Q; #get-url = http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a http://localhost/%7Eplaysms/plugin/gateway/kannel/geturl.php?t=%tq=%qa=%a Please pay attention to comment line (#) this my settings true or not? -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: data_coding
Possibly alt-dcs parameter may help, but I'm not sure. Unfortunatelly there is no way to set data_coding explicitly. From SMS DCS description in 3GPP TS 23.038: 0001 - General Data Coding indication, no compression, message class present (bits 0 and 1) 0100 - message class 0, 8-bit data 8/2/2012 11:44 AM, Artem Chekulaev wrote: Thanks But when I use that parameters I see in dump data_coding = 0xf4 mclass = 0 give me first , not 0001 in data_coding. It looks like Im not understand something? This is the part of dump Data coding: 0xf4 SMPP Data Coding Scheme: Unknown (0xf4) GSM SMS Data Coding = DCS Coding Group for SMS: SMS DCS: Data coding / message class (0x0f) 01.. = DCS Character set: 8-bit data (0x01) ..00 = DCS Message class: Class 0 (0x00) GSM CBS Data Coding = DCS Coding Group for CBS: SMS DCS: Data coding / message class (0x0f) 01.. = DCS Character set: 8-bit data (0x01) ..00 = DCS CBS Message class: No message class (0x00) 2012/8/1 Michael Bochkaryov mi...@rattler.kiev.ua mailto:mi...@rattler.kiev.ua 8/1/2012 2:55 PM, Artem Chekulaev wrote: Is it possible to change data_coding to 0x14 and protocol_id to 0x40 for single sms? Can I set them manually? I need sometimes to send invisible paid sms - user does not see them, but the money is paid (it legal for me as authorized by provider). Seems like you need the following sendsms parameters: - mclass and coding to set data_coding (data_coding = 0x14 (00010100): mclass=0 coding = 1) - pid to set protocol_id (protocol_id = 0x40: pid=64) So mclass=0coding=1pid=64 -- Regards, Michael Bochkaryov www.rattler.kiev.ua http://www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: data_coding
8/1/2012 2:55 PM, Artem Chekulaev wrote: Is it possible to change data_coding to 0x14 and protocol_id to 0x40 for single sms? Can I set them manually? I need sometimes to send invisible paid sms - user does not see them, but the money is paid (it legal for me as authorized by provider). Seems like you need the following sendsms parameters: - mclass and coding to set data_coding (data_coding = 0x14 (00010100): mclass=0 coding = 1) - pid to set protocol_id (protocol_id = 0x40: pid=64) So mclass=0coding=1pid=64 -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Opensmppbox and DLR states
Thank you Rene. In my opinion it may be reasonable to allow set dlr-mask different from 3 in case of registered_delivery flag present. However it seems like workaround instead of technically correct solution. Regards, Michael 2/15/2012 2:43 PM, Rene Kluwen wrote: I will look into version 3.4 specifications and see if I can make a patch. == Rene *From:*Michael Bochkaryov [mailto:michael.bochkar...@gmail.com] *On Behalf Of *Michael Bochkaryov *Sent:* Wednesday, 15 February, 2012 09:37 *To:* Rene Kluwen *Cc:* 'users' *Subject:* Re: Opensmppbox and DLR states Hi Rene, I know that registered_delivery usually takes only 0 or 1 values. SMPP 3.4 specification (section 5.2.17) provides more including intermediate DLR (bit 5 of registered_delivery). And also message_state (5.2.28) has states like ENROUTE or ACCEPTED. In fact my problem is combination of opensmppbox and HTTP SMSC. I need to notify ESME about fact that message is accepted on HTTP but I have only this intermediate state. And still have no ideas how to resolve it without dirty hacks. Maybe it's reasonable to make simple patch to smsc_http.c to allow simulation of delivered state when message is accepted by this smsc. 2/14/2012 6:56 PM, Rene Kluwen wrote: The smpp protocol only supports two statuses, 0 = one, and 1 = delivered by hand set. *From:*users-boun...@kannel.org mailto:users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Michael Bochkaryov *Sent:* Monday, 13 February, 2012 21:30 *To:* users *Subject:* Opensmppbox and DLR states Hello, Is it possible to request DLR messages to opensmppbox on temporary states like 8 (Delivered to SMSC) ? Seems like dlr-maks is not supported there but may be I have just missed something in manual? The problem is caused by ugly HTTP SMSC that cannot provide final delivery status but ESME waits for something and I want to provide Accepted instead of be silent. Thanks in advance :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua http://www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua http://www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Opensmppbox and DLR states
Hi Rene, I know that registered_delivery usually takes only 0 or 1 values. SMPP 3.4 specification (section 5.2.17) provides more including intermediate DLR (bit 5 of registered_delivery). And also message_state (5.2.28) has states like ENROUTE or ACCEPTED. In fact my problem is combination of opensmppbox and HTTP SMSC. I need to notify ESME about fact that message is accepted on HTTP but I have only this intermediate state. And still have no ideas how to resolve it without dirty hacks. Maybe it's reasonable to make simple patch to smsc_http.c to allow simulation of delivered state when message is accepted by this smsc. 2/14/2012 6:56 PM, Rene Kluwen wrote: The smpp protocol only supports two statuses, 0 = one, and 1 = delivered by hand set. *From:*users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Michael Bochkaryov *Sent:* Monday, 13 February, 2012 21:30 *To:* users *Subject:* Opensmppbox and DLR states Hello, Is it possible to request DLR messages to opensmppbox on temporary states like 8 (Delivered to SMSC) ? Seems like dlr-maks is not supported there but may be I have just missed something in manual? The problem is caused by ugly HTTP SMSC that cannot provide final delivery status but ESME waits for something and I want to provide Accepted instead of be silent. Thanks in advance :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua http://www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Problem with delivery reports
2/15/2012 11:30 AM, Valentyn wrote: I'm using Kannel(1.5.0) to work on SMPP. Report generating dlr-url on your script. The problem is, I get the status of the operator, they do not reach my script. Here is the log file operator: 2012-02-15 11:13:50 [7214] [6] DEBUG: DLR[mysql]: created DLR message for URL http:///report.php?messageID=2delivery=%dnid=11SMSId=%Isend=%trep=%A 2012-02-15 11:13:50 [7214] [6] DEBUG: removing DLR from database 2012-02-15 11:13:50 [7214] [6] DEBUG: sql: DELETE FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 Seems like DLR was sent to your report.php script. And then temporary record successfully deleted from dlr table. Do you see requests in your HTTP server access log files ? Why can not he write to the dlr table? This is not the time. Some of the statuses of reach. -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Opensmppbox and DLR states
Hello, Is it possible to request DLR messages to opensmppbox on temporary states like 8 (Delivered to SMSC) ? Seems like dlr-maks is not supported there but may be I have just missed something in manual? The problem is caused by ugly HTTP SMSC that cannot provide final delivery status but ESME waits for something and I want to provide Accepted instead of be silent. Thanks in advance :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Sending SMS from Asterisk using Kannel
1/20/2012 2:45 PM, termbsd wrote: I am new to both Kannel and Asterisk.I intend to send a SMS from my application (PHP script) in Asterisk to any mobile. Asterisk itself supports only fixed line SMS over ISDN if I understand it correctly. And I think it's not proper maillist to discuss Asterisk ;-) Could you please provide a sample program/example,so it would be better to understand further. Short example of AGI solution from our office PBX sending SMS notifications on missed calls: == AGI script == #!/bin/sh from=NetStylePBX # source SMS address to=38067xxx # destination SMS address (MSISDN) # Preparing SMS text from AGI request ($1 is CallerID) text=Missed%20call:%20from%20$1%20to%20NetStyle # Call Kannel via HTTP API GET http://sms.kannel.host:13013/cgi-bin/sendsms?user=pbxpassword=top-secretfrom=$fromto=%tocoding=0charset=asciitext=$text; == AGI call from Asterisk AEL == ... AGI(sms_annoyer.sh,${CALLERID(num)}); ... Michael Bochkaryov wrote: 1/20/2012 7:06 AM, termbsd wrote: Hi, I intend to send SMS from Asterisk using Kannel gateway on Ubuntu.I have Fargo Maestro 20 modem.Please let me know the procedure to do this. You can write AGI script that will make HTTP request to Kannel to send SMS. Or you can use Curl command to make request directly from Asterisk. http://www.voip-info.org/wiki/view/Asterisk+cmd+Curl Asterisk version- 1.6.2.0 Ubuntu version -10.10 Kannel gateway - 1.4.3 ( libxml2-2.7.8) Thanks, Shruthi -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Sending SMS from Asterisk using Kannel
1/20/2012 7:06 AM, termbsd wrote: Hi, I intend to send SMS from Asterisk using Kannel gateway on Ubuntu.I have Fargo Maestro 20 modem.Please let me know the procedure to do this. You can write AGI script that will make HTTP request to Kannel to send SMS. Or you can use Curl command to make request directly from Asterisk. http://www.voip-info.org/wiki/view/Asterisk+cmd+Curl Asterisk version- 1.6.2.0 Ubuntu version -10.10 Kannel gateway - 1.4.3 ( libxml2-2.7.8) Thanks, Shruthi -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: kannel SMPP and USSD
Hi Ahmed, I have tried to implement USSD service using Kannel. At least some simple USSD dialogue was working well on test. On other side it was Canvas USSD-C connected via SMPP v3.4. However for production I have switched to own SMPP-client that also managed USSD sessions. So I can't tell about any serious experience with Kannel as USSD-GW. -- Regards, Michael Bochkaryov www.rattler.kiev.ua 12/29/2011 11:51 AM, Ahmed Shabana wrote: Did any one worked before with USSD in kannel ?? Best Regards, * * *Ahmed Shabana * *From:*users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Anshu Sah *Sent:* Tuesday, December 27, 2011 9:08 AM *To:* users; Platinum 2010; Nikos Balkanas *Subject:* kannel SMPP and USSD Hi, I would like to understand more about USSD and Kannel. Will you guide me. Regards Anshu Sah
Stupid question: sending raw gsm 03.38 string
Hi all, First sorry for asking the same stupid question second time. Question: is it possible to send to smsbox raw GSM 03.38 encoded byte string (with or without UDH) for coding=0? The problem is that I need to send concatenated messages and take control on delivery of each part instead of first one. To handle this I use own code to split long messages and send with coding=0udh=$udh_string. It works with utf-8 charset but handling escape-sequences like ~ may become a problem if it appears between two parts (seems it's possible). Thanks in advance for help! -- Regards, Michael Bochkaryov
Re: Re[2]: Problem with MSISDN provisioning
2010/4/2 Nikos Balkanas nbalka...@gmail.com Please use the list so that others may benefir as well. Do not send me personals. I am not your unpaid personal consultant. By the way it may be useful to change maillist settings to set list address in Reply-To header. Seems like it's good practice for most of public mailing lists. - Original Message - From: Vladimir. Gonchar vladimir.gonc...@a-mobile.biz -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Concatenated SMS sending
Hello, Sergii. Yes, it's possible to send concatenated SM using Kannel. Kannel itself uses UDH for concatenation and it's enough to set the following parameters: group = sendsms-user name = user username = user password = topsecret max-messages = 3 concatenation = true Also it's possible to use SAR based concatenation using meta-data functionality (optional TLV). Below you can find part of Kannel configuration. group = smpp-tlv name = sar_msg_ref_num tag=0x020C type= integer length = 2 group = smpp-tlv name = sar_total_segments tag=0x020E type= integer length = 2 group = smpp-tlv name = sar_segment_seqnum tag=0x020F type= integer length = 2 -- Regards, Michael Bochkaryov www.rattler.kiev.ua On Fri, Mar 12, 2010 at 10:55 AM, Sergii Dryga s.dr...@gmsu.ua wrote: Hello! Please help me to find an answer on the question about concatenated SMS (long messages) sending. Does it possible to send concatenated SMS (long messages) via SMPP connection using Kannel software? If yes, then please tell me, Kannel software send long SMS message attribute using UDH header or SAR optional parameter? Thank you in advance! -- Best regards Sergii Dryga OM Engineer LLC Global Message Services Ukraine Tel.: +380 (44) 284-03-03 (ext.337) Mob.: +380 (50) 465-49-67 E-mail: s.dr...@gmsu.ua ICQ:343-867-653 MSN:s.dr...@gmsu.ua
Re: Failed to create new boxc connection-HELP!!!
2009/12/14 Rajeev Agarwal rajeev.agarw...@gmail.com: 2009-12-14 11:37:43 [6440] [5] INFO: Box connection tried from denied host 127.0.0.1, disconnected ... box-allow-ip = 137.0.0.1 Seems like typo - should be 127 instead of 137 ;-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Kannel Appliance CD - next release
Hello. I've made next version of Kannel Appliance CD intended for easy deployment of SMS services. As previous this version it's based on ALT Linux. Features: - ALT Linux 4.0/branch for i586 architecture - Kernel 2.6.27 with OpenVZ support - APT-RPM package management - Kannel built from CVS (2009-07-21) with PostgreSQL, MySQL and SQLite support (and some patches by Alejandro Guerrieri) - PostgreSQL 8.3.7 - SQLbox 0.7.2 - Perl API for Kannel - Preinstalled configuration - Some simple management utilities - Monit with preinstalled configuration - Date/time autoconfigured by NTP server - Set of diagnostics utilities: tcpdump, tcpflow, lsof, strace Installation CD image is available on this URL: http://rattler.kiev.ua/DL/server-kannel-i586-20091208.iso MD5SUM: 7dae9e22574aba7c9529662fb1af3f7f Installation available with english/russian/ukrainian languages. This is quite easy procedure takes about 5-10 minutes (checked by clock on the wall). Notes/Errata: - after installation passwordless root account available from local console - SQLbox doesn't work with PostgreSQL (not investigated this problem yet) - some translation messages broken in installer It's still not final release but may be used to decrease time for deployment of Kannel servers. That's all and thanks to Kannel development team for good product they make :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Kannel Appliance CD - next release
I heard about meta-data issue in sqlbox but I use external queue processor that allows load balancing between separate accounts and also allows me to integrate gateways incompatible with Kannel (SMTP, SOAP, etc). Seems like Alejandro planned SQLBox update that will fix compatibility. When it will be ready I'll make update. 2009/12/9 uYe sangpr...@gmail.com: Yes the installation and compilation should be ok, but if we launch bearerbox, sqlbox, smsbox and test them on bulk mode (let's say 100 MO) you will see that not all MO are received by SQLBox, this because of the meta-data is not compatible yet with SQLBox. Willy sangpr...@gmail.com On Dec 9, 2009, at 5:14 PM, Michael Bochkaryov wrote: Sorry but I can't tell about SQLBox because of I personally don't use this in production. It's compiled and installed successfully but need more functional and preformance testing. 2009/12/9 uYe sangpr...@gmail.com: Hi Michael, I see you use CVS 2009-07-21 and SQLBox 0.7.2, AFAIK SQLBox is not compatible yet. Have you test it with large number of MO and MT? Willy sangpr...@gmail.com On Dec 9, 2009, at 4:49 PM, Michael Bochkaryov wrote: Hello. I've made next version of Kannel Appliance CD intended for easy deployment of SMS services. As previous this version it's based on ALT Linux. Features: - ALT Linux 4.0/branch for i586 architecture - Kernel 2.6.27 with OpenVZ support - APT-RPM package management - Kannel built from CVS (2009-07-21) with PostgreSQL, MySQL and SQLite support (and some patches by Alejandro Guerrieri) - PostgreSQL 8.3.7 - SQLbox 0.7.2 - Perl API for Kannel - Preinstalled configuration - Some simple management utilities - Monit with preinstalled configuration - Date/time autoconfigured by NTP server - Set of diagnostics utilities: tcpdump, tcpflow, lsof, strace Installation CD image is available on this URL: http://rattler.kiev.ua/DL/server-kannel-i586-20091208.iso MD5SUM: 7dae9e22574aba7c9529662fb1af3f7f Installation available with english/russian/ukrainian languages. This is quite easy procedure takes about 5-10 minutes (checked by clock on the wall). Notes/Errata: - after installation passwordless root account available from local console - SQLbox doesn't work with PostgreSQL (not investigated this problem yet) - some translation messages broken in installer It's still not final release but may be used to decrease time for deployment of Kannel servers. That's all and thanks to Kannel development team for good product they make :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: meta-data TLV for USSD
Hello, I've tried to connect Kannel with USSD server. In my case it was enough to use ussd_service_op TLV (see SMPP 3.4 spec. p.5.3.2.44). Anyway Kannel is not good solution to implement USSD services because of: a) mostly USSD centers require data_sm instead of submit_sm/deliver_sm PDUs; b) Kannel includes some SMS-related logic (mostly exceptions processing) that doesn't suite for USSD I'll try to find configuration if nobody removed this yet. But I've personally switched to own small Net::SMPP based application. -- Regards, Michael Bochkaryov www.rattler.kiev.ua 2009/12/2 Elton Hoxha elt...@gmail.com Thanks Alex, Does anyone else has experience with USSD applications? Regards Elton On Wed, Dec 2, 2009 at 11:55 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Elton, I don't have much experience with USSD honestly, I don't know how is the session started/ended. Kannel's not really designed to work as an USSD gateway, so I'm not sure if you're stumbling with something needing a patch or not. Regarding tags, SMPP Spec 3.4 has a list of the standard values. However, there's a user defined segment (starting 0x1400) where vendors can implement their proprietary tags. There's a copy of the spec here: http://www.nowsms.com/discus/messages/1/SMPP_v3_4_Issue1_2-24857.pdf Hope it helps, Alex On Wed, Dec 2, 2009 at 11:45 AM, Elton Hoxha elt...@gmail.com wrote: Thanks Alex, Actually, for MT cases, Im calling the HTTP using the example in the guide; meta-data=%3Fsmpp%3Fmy-data%3DHello%2BWorld but I receive some SMSC returned errors like invalid destinations, which of course has not to do with kannel. I have two ambigous cases in my head; -How can I terminate the session initialized by MO request? When I throw a request, lets say by dialing *200#, I`m able to call my application sending there %D values, but it lasts many seconds until HLR terminates it by itself. Also If multiple requests in paralel are initialised, how Kannel can keep records of each session, so when I will reply back from cgi-bin, kannel will understand the respective session and drop it? - How can I find the related specifications for Tag parameter? I see many combinations in hexadecimal but withput understanding their meaning. Is there any explanations for each hexa code? Thank You, Elton On Wed, Dec 2, 2009 at 11:23 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: You need to pass the value on the meta-data field. For example: meta-data=?smpp?my-custom-var=1 (urlencoded of course) Regards, Alex On Wed, Dec 2, 2009 at 9:01 AM, Elton Hoxha elt...@gmail.com wrote: Hi guys, I`m trying to use kannel for sending ussd request and receiving back using SMPP. my conf for TLV is: group = smpp-tlv name = my-custom-var tag = 0x0501 type = integer length = 2 smsc-id = test Using this I`m able to call my application by dialing ussd shortcodes, but I`m not able to terminate the session immediately. Also the values of ussd parameters take place under the VALUE parameter of TLV itself which is not present in the above conf. How can I manipulate this parameter if its not configurable in kannel? P.S this is an example I found googling around; Field Size Octets Type Description Parameter Tag 2 Integer 0x0501 Length 2 Integer Length of value part in octets Value 1 Integer This value can be one of the following values: 0 = PSSD Indication 1 = PSSR Indication 2 = USSR Request 3 = USSN Request 4 to 15 = Reserved 16 = PSSD Response 17 = PSSR Response 18 = USSR Confirm 19 = USSN Confirm 20 to 31 = Reserved 32 to 255 = Vendor specific operations
Re: help with receiving message
Hi! Do not mix get-url and text in sms-service group. If you want to forward MO message to HTTP service, you need only get-url. 2009/9/15 rcong r_c...@hotmail.com [skip] group = sms-service keyword = default catch-all = yes get-url = http://192.168.10.173/test.php?smsvendor=kannelfrom=%Pto=%ptext=%b; assume-plain-text = true max-messages = 3 text = No service specified In this section you need to remove text parameter. -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Out of box kannel appliance (2nd alpha)
Hello, I've just prepared new version of ALT Linux based Kannel appliance. It's still in alpha stage and needs some work to became really out of box thing. However it works and ISO image is here: http://www.rattler.kiev.ua/DL/kannel-server-i586-20090913.iso Kannel build features: - version: CVS 21.07.09 - some patches by Alejandro Guerrieri - sqlbox 0.7.2 (w/o deafult config yet) - mysql, postgresql, sqlite support Other features: - kernel 2.6.27 - openvz virtualization support - apt-rpm package management - web administrative GUI TODO: - some cosmetics fixes (typos, texts, design) - ready sqlbox integration (depends on default config and DBMS ) - install some contribs as services (at least monitoring) - some DBMS (postgresql?) installation and initialization for DLR storage and SQLbox - switch off portmap and haldaemon by default - lot of tests and debugging :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Out of box kannel appliance (2nd alpha)
Hi Seik, Thanks for your offer. There are no problems with PostgreSQL itself. It's already packaged and is available in APT repo: apt-get install postgresql8.3-server More important things are: 1. default PostgreSQL settings (and possibly some autotuning in postinstall scripts) 2. update Kannel configuration to use PostgreSQL 3. default sqlbox settings (I'm not active sqlbox user so help is welcome) 4. out of box integration with monit (now it's ready for bearerbox and smsbox only) 5. administrative utilities for all components -- Regards, Michael Bochkaryov www.rattler.kiev.ua 2009/9/13 seik s...@4636.org If you want help with PostgreSQL I could help for ? Michael Bochkaryov wrote: Hello, I've just prepared new version of ALT Linux based Kannel appliance. It's still in alpha stage and needs some work to became really out of box thing. However it works and ISO image is here: http://www.rattler.kiev.ua/DL/kannel-server-i586-20090913.iso Kannel build features: - version: CVS 21.07.09 - some patches by Alejandro Guerrieri - sqlbox 0.7.2 (w/o deafult config yet) - mysql, postgresql, sqlite support Other features: - kernel 2.6.27 - openvz virtualization support - apt-rpm package management - web administrative GUI TODO: - some cosmetics fixes (typos, texts, design) - ready sqlbox integration (depends on default config and DBMS ) - install some contribs as services (at least monitoring) - some DBMS (postgresql?) installation and initialization for DLR storage and SQLbox - switch off portmap and haldaemon by default - lot of tests and debugging :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua http://www.rattler.kiev.ua
Re: Need help (Siemens C35 as GSM modem)
Hello Alvaro, Thanks for your help. I've changed init-string to the following: init-string = AT+CNMI=1,2,0,1,1;+CMEE=1 (then to +CMEE=2) However, nothing has changed in logs - just ERROR after AT+CMGS=lengthPDU. But I'm not sure this is correct way to set init-string with more than one command :) 2009/8/25 Alvaro Cornejo cornejo.alv...@gmail.com The error can come from a number of possibilities: add at+cmee=1 or 2 to the modem init string in order to get debug info about the error returned from modem and post results. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Tue, Aug 25, 2009 at 1:10 PM, Michael Bochkaryovmi...@rattler.kiev.ua wrote: Hello, Can anybody help with Kannel configuration for use with Siemens C35 phone as 'at' SMSC? Seems like it should support AT+CMGS command (if trust to Siemens docs) but response is ERROR :-( Configuration and part of log is below. Thanks in advance! Configuration (smsc and modem sections): == group = smsc smsc = at smsc-id = c35 allowed-smsc-id = c35 modemtype = siemens device = /dev/ttyS0 speed = 19200 sms-center = +38063901 #sim-buffering = true log-file = /var/log/kannel/siemens.log log-level = 0 group = modems id = siemens name = Siemens C35 detect-string = SIEMENS init-string = AT+CNMI=1,2,0,1,1 speed = 9600 enable-hwhs = AT\\Q3 keepalive-cmd = AT+CBC;+CSQ need-sleep = true Here is part of debug level log: == 2009-08-25 20:57:00 [4041] [7] DEBUG: AT2[c35]: -- ATZ^M 2009-08-25 20:57:04 [4041] [7] ERROR: AT2[c35]: Wrong or no answer to ATZ, ignoring 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATF^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATF 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATE0^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATE0 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT\Q3^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CPIN?^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- +CPIN: READY 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CSCA=+38063901^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CMGF=0^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CSMS=?^M 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- +CSMS: (0,1) 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:05 [4041] [7] INFO: AT2[c35]: Phase 2+ is supported 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- AT+CSMS=1^M 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- +CSMS: 1,1,1 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- AT+CNMI=1,2,0,1,1^M 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:05 [4041] [7] INFO: AT2[c35]: AT SMSC successfully opened. 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: TP-Validity-Period: 24.0 hours 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: -- AT+CMGS=21^M 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: -- 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: send command status: 1 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: -- 0011000B810876226077F0A708F4F29C0E1ACF6A 2009-08-25 20:57:17 [4041] [7] DEBUG: AT2[c35]: -- ^Z 2009-08-25 20:57:23 [4041] [7] DEBUG: AT2[c35]: -- 2009-08-25 20:57:23 [4041] [7] DEBUG: AT2[c35]: -- ERROR 2009-08-25 20:57:23 [4041] [7] ERROR: AT2[c35]: Generic error: ERROR 2009-08-25 20:57:23 [4041] [7] DEBUG: AT2[c35]: send command status: -1 -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: Need help (Siemens C35 as GSM modem)
Alvaro, Tried to use only AT+CMEE=N with N=1 and 2 without any effects. I've used this SIM card with Nokia 6230i before - everything was ok. Also I've just found the following forum thread and probably solution (hardware): http://forum.gsmhosting.com/vbb/archive/index.php/t-209402.html -- Regards, Michael Bochkaryov www.rattler.kiev.ua 2009/8/25 Alvaro Cornejo cornejo.alv...@gmail.com Michael yes, it should be something like init-string = AT+CNMI=1,2,0,1,0;+CMEE=1 It can be that you modem does not support CMEE command. Try the CMEE command alone. CNMI is only for incomming messges, so for this tests It will be ok Also, did you try sending messages from a normal phone with the siemens modem SIM card? Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Tue, Aug 25, 2009 at 1:48 PM, Michael Bochkaryovmi...@rattler.kiev.ua wrote: Hello Alvaro, Thanks for your help. I've changed init-string to the following: init-string = AT+CNMI=1,2,0,1,1;+CMEE=1 (then to +CMEE=2) However, nothing has changed in logs - just ERROR after AT+CMGS=lengthPDU. But I'm not sure this is correct way to set init-string with more than one command :) 2009/8/25 Alvaro Cornejo cornejo.alv...@gmail.com The error can come from a number of possibilities: add at+cmee=1 or 2 to the modem init string in order to get debug info about the error returned from modem and post results. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Tue, Aug 25, 2009 at 1:10 PM, Michael Bochkaryovmi...@rattler.kiev.ua wrote: Hello, Can anybody help with Kannel configuration for use with Siemens C35 phone as 'at' SMSC? Seems like it should support AT+CMGS command (if trust to Siemens docs) but response is ERROR :-( Configuration and part of log is below. Thanks in advance! Configuration (smsc and modem sections): == group = smsc smsc = at smsc-id = c35 allowed-smsc-id = c35 modemtype = siemens device = /dev/ttyS0 speed = 19200 sms-center = +38063901 #sim-buffering = true log-file = /var/log/kannel/siemens.log log-level = 0 group = modems id = siemens name = Siemens C35 detect-string = SIEMENS init-string = AT+CNMI=1,2,0,1,1 speed = 9600 enable-hwhs = AT\\Q3 keepalive-cmd = AT+CBC;+CSQ need-sleep = true Here is part of debug level log: == 2009-08-25 20:57:00 [4041] [7] DEBUG: AT2[c35]: -- ATZ^M 2009-08-25 20:57:04 [4041] [7] ERROR: AT2[c35]: Wrong or no answer to ATZ, ignoring 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATF^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATF 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATE0^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- ATE0 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT\Q3^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CPIN?^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- +CPIN: READY 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CSCA=+38063901^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CMGF=0^M 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:04 [4041] [7] DEBUG: AT2[c35]: -- AT+CSMS=?^M 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- +CSMS: (0,1) 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:05 [4041] [7] INFO: AT2[c35]: Phase 2+ is supported 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- AT+CSMS=1^M 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- +CSMS: 1,1,1 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35]: -- OK 2009-08-25 20:57:05 [4041] [7] DEBUG: AT2[c35
Re: NACK/69/Submit failed
Hi Hafez, Regarding to SMPP 3.4 specification (part 5.1.3) NACK/69 is ESME_RSUBMITFAIL error that doesn't describe reason for not accepting submit_sm. Seems better solution would be request to operator or SMSC vendor. -- Regards, Michael Bochkaryov www.rattler.kiev.ua 2009/7/23 hafez ahmad hafezad...@gmail.com Hi All, I am trying to send billing SMS to my users, but I get in the Acknowledgement report this NACK/69/Submit failed for all users, any Ideas what happened, I read about the NACK in general and there many reasons for that like: - The PDU is unrecognised - The PDU is malformed - Invalid Field Length - The PDU data is unexpected and deemed invalid - The PDU is not allowed in the current session state - The ESME or MC is restricting the use of certain PDUs or features How can I determine the reason? note: My operator reject the SMS if the user don't have enough credit. Regards, Hafez
Re: DCS UCS-2
Hi, If you send reply as UTF-8 string in the same HTTP session, set the following HTTP headers: Content-Type: text/html; charset=UTF-8 X-Kannel-Coding: 2 And dont forget to set the following to sms-service group: accept-x-kannel-headers = 1 --- For sendsms API just use the following parameters: coding=2charset=utf-8 2009/7/2 dhcmega dhcad...@gmail.com: Hi, thank you all!! I am using 1.4.2, I can try with 1.4.3 (and I think I will today) Mean while, with 1.4.2 and mclass hardcoded to 3 (otherwise it doesn´t work), when I receive váca o victoría I get this: 2009-07-02 11:07:15 Receive SMS [SMSC:connection_3] [SVC:] [ACT:] [BINF:] [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1] [msg:32:0056006900630074006F007200ED0061006F007200ED0061] [udh:0:] 2009-07-02 11:07:15 [4550] [4] INFO: MO message converted from UCS-2 to ISO-8859-1 2009-07-02 11:07:15 [4550] [4] INFO: Starting to service Victoría from 1234567890 to 1234 2009-07-02 11:07:15 [4550] [5] INFO: No reply sent, denied. 2009-07-02 11:07:15 SMS HTTP-request sender:1234567890 request: 'OK' url: 'http://localhost/index.php?coding=0charset=ISO-8859-1' reply: 200 ' successful ' 2009-07-02 11:07:15 Receive SMS [SMSC:connection_2] [SVC:] [ACT:] [BINF:] [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1] [msg:16:005600E10063006100630061] [udh:0:] 2009-07-02 11:07:15 [4550] [4] INFO: MO message converted from UCS-2 to ISO-8859-1 2009-07-02 11:07:15 [4550] [4] INFO: Starting to service Váca from 1234567890 to 1234 2009-07-02 11:07:15 [4550] [5] INFO: No reply sent, denied. 2009-07-02 11:07:15 SMS HTTP-request sender:1234567890 request: 'OK' url: 'http://localhost/index.php?coding=0charset=ISO-8859-1' reply: 200 ' successful ' I am still having problems. Thanks! dhcemga On Wed, Jul 1, 2009 at 6:44 PM, Michael Bochkaryov mi...@rattler.kiev.ua wrote: Oops, seems like list configured without rewriting Reply-To header. IMHO, it may be better to set replies to maillist as default behaviour. 2009/7/1 Michael Bochkaryov mi...@rattler.kiev.ua: Hi, 2009/7/1 dhcmega dhcad...@gmail.com: There is a lot of mails regarding how to send SMS to terminals using special chars, but not much about receiving. The operator tells me that when I receive a MO message with special chars I get it with coding DCS UCS2 UCS2-BE if more correctly. How should I configure kannel to interpret it OK? For Kannel itself no need to configure anything because of it's standard for Unicode messages. Just set transmission of text charset and SMS coding (%C and %c) in get-url. It should be something like this: get-url = http://127.0.0.1/my.service?coding=%ccharset=%C; I recommend also set mo-recode = 1 in smsbox group. In this case message will recoded to WINDOWS-1252 or UTF-8 by Kannel before sending to your service. Seems UTF-8 processing will be more suitable for development. It is a SMPP 3.4 connection. -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: DCS UCS-2
For MO you need just get text (%a) and charset (%C). Then you can convert text string to your preferred charset. Here is example for Perl: - # Kannel configuration part group = sms-service keyword = default get-url = http://127.0.0.1/smsc/life?type=momsisdn=%psn=%Ptext=%asmscid=%imsgid=%Icoding=%cmclass=%mcharset=%Cudh=%ubinmsg=%bmeta=%D; accept-x-kannel-headers = true - my $cgi = CGI::Fast-new(); my $msg_body = $cgi-param('text'); my $charset = $cgi-param('charset'); my $CV = Text::Iconv-new($charset, 'UTF-8//IGNORE'); $msg_body = $CV-convert($msg_body); # Now $msg_body contains utf-8 encoded MO message - 2009/7/2 dhcmega dhcad...@gmail.com: Michael Is this information for MOs? I not testing MTs at all yet, I will go there when I get MOs to work OK. Thanks again!! dhcmega On Thu, Jul 2, 2009 at 11:43 AM, Michael Bochkaryov mi...@rattler.kiev.ua wrote: Hi, If you send reply as UTF-8 string in the same HTTP session, set the following HTTP headers: Content-Type: text/html; charset=UTF-8 X-Kannel-Coding: 2 And dont forget to set the following to sms-service group: accept-x-kannel-headers = 1 --- For sendsms API just use the following parameters: coding=2charset=utf-8 2009/7/2 dhcmega dhcad...@gmail.com: Hi, thank you all!! I am using 1.4.2, I can try with 1.4.3 (and I think I will today) Mean while, with 1.4.2 and mclass hardcoded to 3 (otherwise it doesn´t work), when I receive váca o victoría I get this: 2009-07-02 11:07:15 Receive SMS [SMSC:connection_3] [SVC:] [ACT:] [BINF:] [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1] [msg:32:0056006900630074006F007200ED0061006F007200ED0061] [udh:0:] 2009-07-02 11:07:15 [4550] [4] INFO: MO message converted from UCS-2 to ISO-8859-1 2009-07-02 11:07:15 [4550] [4] INFO: Starting to service Victoría from 1234567890 to 1234 2009-07-02 11:07:15 [4550] [5] INFO: No reply sent, denied. 2009-07-02 11:07:15 SMS HTTP-request sender:1234567890 request: 'OK' url: 'http://localhost/index.php?coding=0charset=ISO-8859-1' reply: 200 ' successful ' 2009-07-02 11:07:15 Receive SMS [SMSC:connection_2] [SVC:] [ACT:] [BINF:] [from:1234567890] [to:1234] [flags:-1:2:-1:0:-1] [msg:16:005600E10063006100630061] [udh:0:] 2009-07-02 11:07:15 [4550] [4] INFO: MO message converted from UCS-2 to ISO-8859-1 2009-07-02 11:07:15 [4550] [4] INFO: Starting to service Váca from 1234567890 to 1234 2009-07-02 11:07:15 [4550] [5] INFO: No reply sent, denied. 2009-07-02 11:07:15 SMS HTTP-request sender:1234567890 request: 'OK' url: 'http://localhost/index.php?coding=0charset=ISO-8859-1' reply: 200 ' successful ' I am still having problems. Thanks! dhcemga On Wed, Jul 1, 2009 at 6:44 PM, Michael Bochkaryov mi...@rattler.kiev.ua wrote: Oops, seems like list configured without rewriting Reply-To header. IMHO, it may be better to set replies to maillist as default behaviour. 2009/7/1 Michael Bochkaryov mi...@rattler.kiev.ua: Hi, 2009/7/1 dhcmega dhcad...@gmail.com: There is a lot of mails regarding how to send SMS to terminals using special chars, but not much about receiving. The operator tells me that when I receive a MO message with special chars I get it with coding DCS UCS2 UCS2-BE if more correctly. How should I configure kannel to interpret it OK? For Kannel itself no need to configure anything because of it's standard for Unicode messages. Just set transmission of text charset and SMS coding (%C and %c) in get-url. It should be something like this: get-url = http://127.0.0.1/my.service?coding=%ccharset=%C; I recommend also set mo-recode = 1 in smsbox group. In this case message will recoded to WINDOWS-1252 or UTF-8 by Kannel before sending to your service. Seems UTF-8 processing will be more suitable for development. It is a SMPP 3.4 connection. -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: DCS UCS-2
And now you have MO text in ud XML tag as URI-encoded string ;-) udV%C3%A1ca%00c%00a/ud Just parse XML and convert string from URI encoding. 2009/7/2 dhcmega dhcad...@gmail.com: 2009-07-02 12:08:47 [5232] [4] DEBUG: XMLBuild: XML: ?xml version=1.0 encoding=UTF-8? message cid=1 submit oa number1234567890/number /oa da number1234/number /da udV%C3%A1ca%00c%00a/ud pid0/pid dcs coding0/coding alt-dcs0/alt-dcs compress0/compress /dcs -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: DCS UCS-2
Oops, seems like list configured without rewriting Reply-To header. IMHO, it may be better to set replies to maillist as default behaviour. 2009/7/1 Michael Bochkaryov mi...@rattler.kiev.ua: Hi, 2009/7/1 dhcmega dhcad...@gmail.com: There is a lot of mails regarding how to send SMS to terminals using special chars, but not much about receiving. The operator tells me that when I receive a MO message with special chars I get it with coding DCS UCS2 UCS2-BE if more correctly. How should I configure kannel to interpret it OK? For Kannel itself no need to configure anything because of it's standard for Unicode messages. Just set transmission of text charset and SMS coding (%C and %c) in get-url. It should be something like this: get-url = http://127.0.0.1/my.service?coding=%ccharset=%C; I recommend also set mo-recode = 1 in smsbox group. In this case message will recoded to WINDOWS-1252 or UTF-8 by Kannel before sending to your service. Seems UTF-8 processing will be more suitable for development. It is a SMPP 3.4 connection. -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Linux kannel appliance
Hi all, I've created small Linux distribution with preconfigured Kannel. We plan to use it for quick kannel based SMS gateways installations and hopefully it may be useful for someone else. Distribution is working but in alpha stage yet and will be updated. Most features: Based on ALT Linux distribution (http://en.altlinux.org) Kernel 2.6.18 with OpenVZ support Kannel built from CVS (2009-05-25) with MySQL, PostgreSQL, SQLite support Monit and logrotate configuration out of box Package management: apt-rpm System administration: web based (https on 8080 port) Ideas and bugreports are welcome :-) ISO image: ftp://ftp.linux.kiev.ua/pub/Linux/ALT/people/misha/kannel-server-i586-20090630.iso MD5 checksum: 1354e8230bda0383d0f5e6921edec4d0 Note: default language is russian but it's possible to switch to english language by pressing F2 when lilo started. -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Re: [Q] Kannel Wiki
Hi, As for me, trac is good as integrated solustion only (SCM + issue tracker + wiki). If we need only wiki, DokuWiki or MediaWiki seems better. I can install DokuWiki with necessary plugins on my server and make initial structure. Then we can move it to another server or just point DNS. Regards, -- Michael Bochkaryov www.netstyle.com.ua 2009/2/17 Alexander Malysh amal...@kannel.org: Hi, I thought about installing trac for kannel. Objections? Thanks, Alex Michael Bochkaryov schrieb: Hi dear All, I understand that this question discussed here at least two times last year. Anyway I'll try to suggest to launch wiki for Kannel related questions :-) There are a lot of typical questions discussed in mailing list for a long time and wiki may be more suitable way to explain such things. Also wiki may be used as structured storage for information about Kannel and related things like SMS, WAP, etc. Of course, I can help with wiki engine installation and configuration if necessary. AFAIR DokuWiki installation already was available on wiki.kannel.org, but now it's default page by nginx.
[Q] Kannel Wiki
Hi dear All, I understand that this question discussed here at least two times last year. Anyway I'll try to suggest to launch wiki for Kannel related questions :-) There are a lot of typical questions discussed in mailing list for a long time and wiki may be more suitable way to explain such things. Also wiki may be used as structured storage for information about Kannel and related things like SMS, WAP, etc. Of course, I can help with wiki engine installation and configuration if necessary. AFAIR DokuWiki installation already was available on wiki.kannel.org, but now it's default page by nginx. -- Michael Bochkaryov Net Style: VAS and IT solutions www.netstyle.com.ua www.rattler.kiev.ua
Re: SUBMIT_MULTI with kannel
Hi Hafez, As far as I know, kannel doesn't support submit_multi PDU in SMPP protocol. However you can try to applly necessary changes from patch mentioned here: http://www.kannel.org/pipermail/devel/2006-August/000136.html 2009/2/16 hafez ahmad hafezad...@gmail.com: Hi All, dose kannel support the SUBMIT_MULTI ?. Regards, Hafez -- Michael Bochkaryov Phone: +380 67 2206770 Net Style: VAS and IT solutions www.netstyle.com.ua
Re: Getting exact number of SMS splits sent via sendsms request
Hello Dmitry, 2009/2/9 Dmitry Pryanishnikov lynx.r...@gmail.com: [skip] So is there actually reliable way to get number of SMS splits sent via sendsms request? IMHO the most logical place for it could be DLR of type DLR_SMSC_SUCCESS - but I see no proper escape code to get the number of splits. I have solved this by implementing SMS splitting outside of Kannel. So I send parts within separate HTTP requests and get also DLRs for each one. Also I've got related question - am I understand correctly that for splitted SMS kannel requests DLR from SMSC only for the first split, and this cannot be changed via configuration parameters? Exactly. It was reason for me to implement own scripts for MO SM splitting. -- Michael Bochkaryov Phone: +380 67 2206770 Net Style: VAS and IT solutions www.netstyle.com.ua
Re: user_message_reference possible?
Rob Whyte wrote: First post to the list, and after searching long and far, I've only come up with only a few years old post on the topic. I'm running Kannel + meta data branch, and and struggling to figure out how one would set the user_message_reference field that I really would like to pass along with my SMPP request. Can anyone shed some light on this for me? First you read SMPP 3.4 specification (p. 5.3.1, 5.3.2.17). Then add the following section to Kannel configuration file: group = smpp-tlv name = user_message_reference tag = 0x204 type = integer length = 2 After this add the following parameter to sendsms API GET request: meta-data=%3Fsmpp%3Fuser_message_reference%3DXX where XX is value you want to set. -- Michael Bochkaryov (MB1-UANIC)
Senging raw GSM 03.38 string using sendsms
Hi, Can anyone tell is it possible to send raw GSM 03.38 data (coding=0) with or without UDH using sendsns HTTP API ? Thanks in advance! :) -- Michael Bochkaryov
Re: How to recevie Long sms's over kannel
Hi! Tharanga wrote: I need to enable long sms's to my kannel gateway. If someone sends a message greater than 160 characters it splits as two sms's and receive. is there any way to concatanate those 2 messages in to one in the receving process. this is applicable to sending but i need to know a way to receive long sms's. If you want to receive concatenated messages in combined state just place the following lines in core configuration group: sms-combine-concatenated-mo = 1 sms-combine-concatenated-mo-timeout = 1800 It works in CVS version but I'm not sure about stable release. -- Michael Bochkaryov
Re: SMS cannot be open when send with coding=1 and alt-dcs=1
Hi! As far as I remember coding=1 (8-bit) should be used for binary short messages only. Text messages with special characters should use coding=2 (UCS2) encoding. -- Regards, Michael Bochkaryov [EMAIL PROTECTED] wrote: Hi, I have this problem when i try to send sms with coding=1 and alt-dcs=1 in order to send out message with special character include like Greek character or Latin Character. It been working fine when i send to message to Sony Ericcson D900i phone, but when i send the message to Nokia 93i phone it stated Unable to open. Message format not supported.. http://xxx.xxx.x.xxx:x/cgi-bin/sendsms?username=xxpassword=xx from=xto=xxtext=testing%20123%20%10coding=1alt-dcs=1 Regards, SoNG
Re: Need Help, Sending 7bit default alphabet specified by GSM 03.38
[EMAIL PROTECTED] wrote: Hi, I would like to know how to send a full set of 7bit aphabet in kannel without the need of sending it in unicode character. [table skipped] The above table is a complete set of 7bit default alphabet specified by GSM 03.38 . Was this mean i would be able to send this alphabet by just setting coding=1? No. It's for binaries. Cost i been failed to do so in some of the aphabet above was is because of my encoding problem? i been using php urlencode function in encoding the text message b4 being send to kannel. Try to specify also charset of string you send to kannel. For example you can send coding=0charset=ISO-8859-1 parameters. AFAIK kannel uses windows-1252 charset as default for 7-bit. Regards, SoNG -- Michael Bochkaryov
Re: Kannel performance
Hi! First try to test only apache performance without kannel. At least you'll be sure if it's apache+php problem or something else. Some ideas (mostly about apache and php tuning): 1. Use eaccelerator to increase performance of PHP scripts. 2. Try to use some lightweight HTTP daemon (lighttpd or nginx). 3. Check if kannel uses keepalives for HTTP based services (I'm not sure if it's possible). Also question: are both kannel and apache running on the same server? Illimar Reinbusch - Telejazz.com wrote: Hi Im testing Kannel performance using fakesmsc. I have set-up three fake connections and im sending 20 000 SMS per connection and kannel receives them in speed 2000 SMS/sec per connection and stores the messages in Kannel buffer. Now i have Apache2 server with PHP scripts that do the SMS logic and reply to kannel. I get about 600 sms/min speed both Kannel-Apache and Apache-Kannel direction, theres no difference what PHP script does, just empty echo haha or big sql queries, i still get the same speed. Any advice how to speed up the process? Illimar -- Michael Bochkaryov