Hi all!

I'm trying to send sms via kannel sms-service, sms body is like "mail [EMAIL PROTECTED]".
Kannel get the SMS without any problems. The code for the '@' symbol is '40' (in 
Octetstr dump), but kannel substitutes it  with '%A1' code in url-get call :((
It is wrong! 

My sms-service:

group = sms-service
keyword = mail
accept-x-kannel-headers = true
get-url = "http://localhost/info/sms-mail?from=%p&to=%s&text=%r&coding=%c&charset=%C";
max-messages = 2
concatenation = true

Kannel gets this (SMS):
2002-11-12 17:40:59 [5] DEBUG: SMPP[SMPP_28]: Got PDU:
2002-11-12 17:40:59 [5] DEBUG: SMPP PDU 0x80cdaa8 dump:
2002-11-12 17:40:59 [5] DEBUG:   type_name: deliver_sm
2002-11-12 17:40:59 [5] DEBUG:   command_id: 5 = 0x00000005
2002-11-12 17:40:59 [5] DEBUG:   command_status: 0 = 0x00000000
2002-11-12 17:40:59 [5] DEBUG:   sequence_number: 251397 = 0x0003d605
2002-11-12 17:40:59 [5] DEBUG:   service_type: NULL
2002-11-12 17:40:59 [5] DEBUG:   source_addr_ton: 1 = 0x00000001
2002-11-12 17:40:59 [5] DEBUG:   source_addr_npi: 1 = 0x00000001
2002-11-12 17:40:59 [5] DEBUG:   source_addr: "792xxxxxxxx"
2002-11-12 17:40:59 [5] DEBUG:   dest_addr_ton: 1 = 0x00000001
2002-11-12 17:40:59 [5] DEBUG:   dest_addr_npi: 1 = 0x00000001
2002-11-12 17:40:59 [5] DEBUG:   destination_addr: "792xxxxxxxx"
2002-11-12 17:40:59 [5] DEBUG:   esm_class: 0 = 0x00000000
2002-11-12 17:40:59 [5] DEBUG:   protocol_id: 0 = 0x00000000
2002-11-12 17:40:59 [5] DEBUG:   priority_flag: 3 = 0x00000003
2002-11-12 17:40:59 [5] DEBUG:   schedule_delivery_time: NULL
2002-11-12 17:40:59 [5] DEBUG:   validity_period: NULL
2002-11-12 17:40:59 [5] DEBUG:   registered_delivery: 0 = 0x00000000
2002-11-12 17:40:59 [5] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2002-11-12 17:40:59 [5] DEBUG:   data_coding: 4 = 0x00000004
2002-11-12 17:40:59 [5] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2002-11-12 17:40:59 [5] DEBUG:   sm_length: 18 = 0x00000012
2002-11-12 17:40:59 [5] DEBUG:   short_message: "mail [EMAIL PROTECTED]"
2002-11-12 17:40:59 [5] DEBUG: SMPP PDU dump ends.

*FULL DUMP:*
2002-11-12 17:40:59 [5] DEBUG:  Octet string at 0x80ccb58:
2002-11-12 17:40:59 [5] DEBUG:    len:  69
2002-11-12 17:40:59 [5] DEBUG:    size: 70
2002-11-12 17:40:59 [5] DEBUG:    immutable: 0
2002-11-12 17:40:59 [5] DEBUG:    data: 00 00 00 05 00 00 00 00   ........
2002-11-12 17:40:59 [5] DEBUG:    data: 00 03 d6 05 00 01 01 37   .......7
2002-11-12 17:40:59 [5] DEBUG:    data: 39 32 xx xx xx xx xx xx   92xxxxxx
2002-11-12 17:40:59 [5] DEBUG:    data: xx xx 00 01 01 37 39 32   xx...792
2002-11-12 17:40:59 [5] DEBUG:    data: 38 xx xx xx xx xx xx xx   xxxxxxxx
2002-11-12 17:40:59 [5] DEBUG:    data: 00 00 00 03 00 00 00 00   ........
2002-11-12 17:40:59 [5] DEBUG:    data: 04 00 12 6d 61 69 6c 20   ...mail 
2002-11-12 17:40:59 [5] DEBUG:    data: 79 75 72 79 78 *40* 6d 61   yuryx@ma
--------------------------------------------------------^ (code '@' symbol)
2002-11-12 17:40:59 [5] DEBUG:    data: 69 6c 2e 72 75            il.ru
2002-11-12 17:40:59 [5] DEBUG:  Octet string dump ends.

And kannel sending reguest 
smsbox.log:
2002-11-12 17:40:59 [9] DEBUG: HTTP: Opening connection to `10.10.10.10:xxxx' (fd=33).
2002-11-12 17:40:59 [9] DEBUG: HTTP: Sending request:
2002-11-12 17:40:59 [9] DEBUG: Octet string at 0x809e948:
2002-11-12 17:40:59 [9] DEBUG:   len:  160
2002-11-12 17:40:59 [9] DEBUG:   size: 161
2002-11-12 17:40:59 [9] DEBUG:   immutable: 0
2002-11-12 17:40:59 [9] DEBUG:   data: 47 45 54 20 68 74 74 70   GET http
2002-11-12 17:40:59 [9] DEBUG:   data: 3a 2f 2f xx xx 2e xx xx   ://xx.xx
2002-11-12 17:40:59 [9] DEBUG:   data: 2e xx 2e xx xx xx 2f 69   .x.xxx/i
2002-11-12 17:40:59 [9] DEBUG:   data: 6e 66 6f 2f 73 6d 73 2d   nfo/sms-
2002-11-12 17:40:59 [9] DEBUG:   data: 6d 61 69 6c 3f 66 72 6f   mail?fro
2002-11-12 17:40:59 [9] DEBUG:   data: 6d 3d 37 39 32 xx xx xx   m=792xxx
2002-11-12 17:40:59 [9] DEBUG:   data: xx xx xx xx xx 26 74 6f   xxxxx&to
2002-11-12 17:40:59 [9] DEBUG:   data: 3d 79 75 72 79 78 25 41   =yuryx%A
------------------------------------------------------------^ (now '@' is 41 code :(( )
2002-11-12 17:40:59 [9] DEBUG:   data: 31 6d 61 69 6c 2e 72 75   1mail.ru
2002-11-12 17:40:59 [9] DEBUG:   data: 26 74 65 78 74 3d 26 63   &text=&c
2002-11-12 17:40:59 [9] DEBUG:   data: 6f 64 69 6e 67 3d 32 26   oding=2&
2002-11-12 17:40:59 [9] DEBUG:   data: 63 68 61 72 73 65 74 3d   charset=
2002-11-12 17:40:59 [9] DEBUG:   data: 62 69 6e 61 72 79 20 48   binary H
2002-11-12 17:40:59 [9] DEBUG:   data: 54 54 50 2f 31 2e 31 0d   TTP/1.1.
2002-11-12 17:40:59 [9] DEBUG:   data: 0a 48 6f 73 74 3a 20 xx   .Host: x
2002-11-12 17:40:59 [9] DEBUG:   data: xx 2e xx xx 2e xx 2e xx   x.xx.x.x
2002-11-12 17:40:59 [9] DEBUG:   data: xx xx 0d 0a 55 73 65 72   xx..User
2002-11-12 17:40:59 [9] DEBUG:   data: 2d 41 67 65 6e 74 3a 20   -Agent: 
2002-11-12 17:40:59 [9] DEBUG:   data: 4b 61 6e 6e 65 6c 2f 31   Kannel/1
2002-11-12 17:40:59 [9] DEBUG:   data: 2e 32 2e 31 0d 0a 0d 0a   .2.1....
2002-11-12 17:40:59 [9] DEBUG: Octet string dump ends.
2002-11-12 17:40:59 [8] DEBUG: HTTP: Status line: <HTTP/1.0 200 OK>
2002-11-12 17:40:59 [5] DEBUG: message length 43, sending 1 messages

Can anyone explain me where I'm wrong :) ?
Thanx.


-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

Reply via email to