Re: Validity patch
Hi Rene, I don't think that should be the issue because message fields are not int they are long. Does anybody has the same issue with the latest SVN version? Alex Am 28.02.2013 um 14:15 schrieb Rene Kluwen rene.klu...@chimit.nl: Could the difference between your situation where it works and (for example) my situation be the following: I am using a 32 bits processor. If you are using a 64 bits processor maybe the int size is different? Just a wild guess. Trying to solve this problem. == Rene
Re: Send non-GSM alphabet chars
Hi, could you please start with a description of your issue? Kannel supports and use GSM7Bit as default. Just call smsbox HTTP interface with UTF-8 coded message and Kannel will do the whole magic for you. If you would like to send non GSM chars then you have to know which charset you need and configure it in SMSC group, look at alt-charset in the manual. Alex Am 28.02.2013 um 12:27 schrieb Александр Николаев na...@mail.ru: Hello! Kannel 1.5.0 SMPP I need to send and receive binary chars (0x00..0x7F) using 7-bit (coding=0) I have patched source code in places: gwlib/charset.h void charset_gsm_to_utf8(Octstr *ostr) { /*empty body */ } void charset_utf8_to_gsm(Octstr *ostr) {/*empty body */ } void charset_gsm_to_latin1(Octstr *ostr) {/*empty body */ } void charset_latin1_to_gsm(Octstr *ostr) {/*empty body */ } int charset_gsm_truncate(Octstr *gsm, long max) { if (octstr_len(gsm) max) { /* If the last GSM character was an escaped character, * then chop off the escape as well as the character. */ octstr_truncate(gsm, max); return 1; } return 0; } My purpose is exclude mapping chars to GSM-alphabet and vice versa. It workes, but 3 chars mapped as before: 0x40 as 0x00 ('@') 0x24 as 0x02 ('$') 0x5f as 0x11 ('_') Please help me. Where I have to patch else?
Re: Send non-GSM alphabet chars
Alexander, thank you for reply. I do: group = smsc smsc = smpp smsc-id = Glosav-SPB host = 193.201.231.44 port = 2775 smsc-username = xxx smsc-password = xxx source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 system-type = throughput = 1000 reconnect-delay = 5 connection-timeout = 120 transceiver-mode = true connect-allow-ip = * allowed-smsc-id = Glosav-SPB preferred-smsc-id = Glosav-SPB *alt-charset = ASCII* alt-addr-charset = GSM interface-version = 34 #alt-dcs = true My send URL is http://10.0.5.37:13003/cgi-bin/sendsms?text=%40%24%5Fusername=xxxpassword=xxxcoding=0to=79254247283charset=ASCII Unfortunately, it doesn't take expected result. I still got %00%02%11 -- View this message in context: http://kannel.6189.n7.nabble.com/Send-non-GSM-alphabet-chars-tp28057p28062.html Sent from the Kannel - Dev mailing list archive at Nabble.com.
Re: Send non-GSM alphabet chars
Hi, just tested and it works as expected: 2013-03-01 14:28:14 [39437] [8] DEBUG: SMPP PDU 0x7fc811e03a10 dump: 2013-03-01 14:28:14 [39437] [8] DEBUG: type_name: submit_sm 2013-03-01 14:28:14 [39437] [8] DEBUG: command_id: 4 = 0x0004 2013-03-01 14:28:14 [39437] [8] DEBUG: command_status: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: sequence_number: 4 = 0x0004 2013-03-01 14:28:14 [39437] [8] DEBUG: service_type: NULL 2013-03-01 14:28:14 [39437] [8] DEBUG: source_addr_ton: 2 = 0x0002 2013-03-01 14:28:14 [39437] [8] DEBUG: source_addr_npi: 1 = 0x0001 2013-03-01 14:28:14 [39437] [8] DEBUG: source_addr: 123 2013-03-01 14:28:14 [39437] [8] DEBUG: dest_addr_ton: 2 = 0x0002 2013-03-01 14:28:14 [39437] [8] DEBUG: dest_addr_npi: 1 = 0x0001 2013-03-01 14:28:14 [39437] [8] DEBUG: destination_addr: 456 2013-03-01 14:28:14 [39437] [8] DEBUG: esm_class: 3 = 0x0003 2013-03-01 14:28:14 [39437] [8] DEBUG: protocol_id: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: priority_flag: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: schedule_delivery_time: NULL 2013-03-01 14:28:14 [39437] [8] DEBUG: validity_period: NULL 2013-03-01 14:28:14 [39437] [8] DEBUG: registered_delivery: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: replace_if_present_flag: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: data_coding: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: sm_default_msg_id: 0 = 0x 2013-03-01 14:28:14 [39437] [8] DEBUG: sm_length: 3 = 0x0003 2013-03-01 14:28:14 [39437] [8] DEBUG: short_message: @$_ 2013-03-01 14:28:14 [39437] [8] DEBUG: SMPP PDU dump ends. http://localhost:13003/cgi-bin/sendsms?username=testerpassword=foobarfrom=123to=456text=%40%24_ And the config: group = smsc smsc = smpp smsc-id = XXX allowed-smsc-id = XXX host = XXX port = 13345 smsc-username = bla smsc-password = blu system-type = WMA transceiver-mode = true alt-charset = ASCII Alex Am 01.03.2013 um 14:18 schrieb Alexander Nikolaev na...@mail.ru: Alexander, thank you for reply. I do: group = smsc smsc = smpp smsc-id = Glosav-SPB host = 193.201.231.44 port = 2775 smsc-username = xxx smsc-password = xxx source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 system-type = throughput = 1000 reconnect-delay = 5 connection-timeout = 120 transceiver-mode = true connect-allow-ip = * allowed-smsc-id = Glosav-SPB preferred-smsc-id = Glosav-SPB *alt-charset = ASCII* alt-addr-charset = GSM interface-version = 34 #alt-dcs = true My send URL is http://10.0.5.37:13003/cgi-bin/sendsms?text=%40%24%5Fusername=xxxpassword=xxxcoding=0to=79254247283charset=ASCII Unfortunately, it doesn't take expected result. I still got %00%02%11 -- View this message in context: http://kannel.6189.n7.nabble.com/Send-non-GSM-alphabet-chars-tp28057p28062.html Sent from the Kannel - Dev mailing list archive at Nabble.com.
Re: Send non-GSM alphabet chars
I send to myself. Then I got translated to GSM chars. :( Could you send test %40%24%5F to yourself address and then show what received? 2013-03-01 17:51:59 [27086] [6] DEBUG: SMPP[Glosav-SPB]: Got PDU: 2013-03-01 17:51:59 [27086] [6] DEBUG: SMPP PDU 0x7f5ebc004a20 dump: 2013-03-01 17:51:59 [27086] [6] DEBUG: type_name: deliver_sm 2013-03-01 17:51:59 [27086] [6] DEBUG: command_id: 5 = 0x0005 2013-03-01 17:51:59 [27086] [6] DEBUG: command_status: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: sequence_number: 1699 = 0x06a3 2013-03-01 17:51:59 [27086] [6] DEBUG: service_type: NULL 2013-03-01 17:51:59 [27086] [6] DEBUG: source_addr_ton: 1 = 0x0001 2013-03-01 17:51:59 [27086] [6] DEBUG: source_addr_npi: 1 = 0x0001 2013-03-01 17:51:59 [27086] [6] DEBUG: source_addr: 792542472XX 2013-03-01 17:51:59 [27086] [6] DEBUG: dest_addr_ton: 1 = 0x0001 2013-03-01 17:51:59 [27086] [6] DEBUG: dest_addr_npi: 1 = 0x0001 2013-03-01 17:51:59 [27086] [6] DEBUG: destination_addr: 792542472XX 2013-03-01 17:51:59 [27086] [6] DEBUG: esm_class: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: protocol_id: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: priority_flag: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: schedule_delivery_time: NULL 2013-03-01 17:51:59 [27086] [6] DEBUG: validity_period: NULL 2013-03-01 17:51:59 [27086] [6] DEBUG: registered_delivery: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: replace_if_present_flag: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: data_coding: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: sm_default_msg_id: 0 = 0x 2013-03-01 17:51:59 [27086] [6] DEBUG: sm_length: 3 = 0x0003 2013-03-01 17:51:59 [27086] [6] DEBUG: short_message: 2013-03-01 17:51:59 [27086] [6] DEBUG:Octet string at 0x7f5ebc000ab0: 2013-03-01 17:51:59 [27086] [6] DEBUG: len: 3 2013-03-01 17:51:59 [27086] [6] DEBUG: size: 4 2013-03-01 17:51:59 [27086] [6] DEBUG: immutable: 0 2013-03-01 17:51:59 [27086] [6] DEBUG: *data: 00 02 11* ... 2013-03-01 17:51:59 [27086] [6] DEBUG:Octet string dump ends. 2013-03-01 17:51:59 [27086] [6] DEBUG: SMPP PDU dump ends. -- View this message in context: http://kannel.6189.n7.nabble.com/Send-non-GSM-alphabet-chars-tp28057p28064.html Sent from the Kannel - Dev mailing list archive at Nabble.com.