Hi all

I'm using svn-r5039, and trying to send this text "Prueba con signo $".  If I 
send the message like this:

http://127.0.0.1:8002/cgi-bin/sendsms?username=X&password=X&from=X&to=X&text=Prueba+con+signo+%24&coding=2&charset=utf8&smsc=X&dlr-mask=31&dlr-url=http%3A%2F%2F127.0.0.1%2Fgeneric.php

Works fine.  This is the actual submit:

2013-12-18 22:18:43 [31675] [6] DEBUG: SMPP PDU 0x7bb040 dump:
2013-12-18 22:18:43 [31675] [6] DEBUG:   type_name: submit_sm
2013-12-18 22:18:43 [31675] [6] DEBUG:   command_id: 4 = 0x00000004
2013-12-18 22:18:43 [31675] [6] DEBUG:   command_status: 0 = 0x00000000
2013-12-18 22:18:43 [31675] [6] DEBUG:   sequence_number: 104 = 0x00000068
2013-12-18 22:18:43 [31675] [6] DEBUG:   service_type: NULL
2013-12-18 22:18:43 [31675] [6] DEBUG:   source_addr_ton: 0 = 0x00000000
2013-12-18 22:18:43 [31675] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
2013-12-18 22:18:43 [31675] [6] DEBUG:   source_addr: "X"
2013-12-18 22:18:43 [31675] [6] DEBUG:   dest_addr_ton: 2 = 0x00000002
2013-12-18 22:18:43 [31675] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001
2013-12-18 22:18:43 [31675] [6] DEBUG:   destination_addr: "X"
2013-12-18 22:18:43 [31675] [6] DEBUG:   esm_class: 3 = 0x00000003
2013-12-18 22:18:43 [31675] [6] DEBUG:   protocol_id: 0 = 0x00000000
2013-12-18 22:18:43 [31675] [6] DEBUG:   priority_flag: 0 = 0x00000000
2013-12-18 22:18:43 [31675] [6] DEBUG:   schedule_delivery_time: NULL
2013-12-18 22:18:43 [31675] [6] DEBUG:   validity_period: NULL
2013-12-18 22:18:43 [31675] [6] DEBUG:   registered_delivery: 1 = 0x00000001
2013-12-18 22:18:43 [31675] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2013-12-18 22:18:43 [31675] [6] DEBUG:   data_coding: 8 = 0x00000008
2013-12-18 22:18:43 [31675] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2013-12-18 22:18:43 [31675] [6] DEBUG:   sm_length: 36 = 0x00000024
2013-12-18 22:18:43 [31675] [6] DEBUG:   short_message:
2013-12-18 22:18:43 [31675] [6] DEBUG:    Octet string at 0x7b7540:
2013-12-18 22:18:43 [31675] [6] DEBUG:      len:  36
2013-12-18 22:18:43 [31675] [6] DEBUG:      size: 37
2013-12-18 22:18:43 [31675] [6] DEBUG:      immutable: 0
2013-12-18 22:18:43 [31675] [6] DEBUG:      data: 00 50 00 72 00 75 00 65 00 62 
00 61 00 20 00 63   .P.r.u.e.b.a. .c
2013-12-18 22:18:43 [31675] [6] DEBUG:      data: 00 6f 00 6e 00 20 00 73 00 69 
00 67 00 6e 00 6f   .o.n. .s.i.g.n.o
2013-12-18 22:18:43 [31675] [6] DEBUG:      data: 00 20 00 24                   
                    . .$
2013-12-18 22:18:43 [31675] [6] DEBUG:    Octet string dump ends.
2013-12-18 22:18:43 [31675] [6] DEBUG: SMPP PDU dump ends.


But, if I send it like this (I expect GSM coding)

http://127.0.0.1:8002/cgi-bin/sendsms?username=admin&password=janus123&from=85277&to=3004711881&text=Prueba+con+signo+%24&smsc=avantel2&dlr-mask=31&dlr-url=http%3A%2F%2F127.0.0.1%2Fgeneric.php


The '$' doesn't arrive to the handset, and this is the submit:

2013-12-18 22:20:59 [31675] [6] DEBUG: SMPP PDU 0x7bb040 dump:
2013-12-18 22:20:59 [31675] [6] DEBUG:   type_name: submit_sm
2013-12-18 22:20:59 [31675] [6] DEBUG:   command_id: 4 = 0x00000004
2013-12-18 22:20:59 [31675] [6] DEBUG:   command_status: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   sequence_number: 110 = 0x0000006e
2013-12-18 22:20:59 [31675] [6] DEBUG:   service_type: NULL
2013-12-18 22:20:59 [31675] [6] DEBUG:   source_addr_ton: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
2013-12-18 22:20:59 [31675] [6] DEBUG:   source_addr: "X"
2013-12-18 22:20:59 [31675] [6] DEBUG:   dest_addr_ton: 2 = 0x00000002
2013-12-18 22:20:59 [31675] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001
2013-12-18 22:20:59 [31675] [6] DEBUG:   destination_addr: "X"
2013-12-18 22:20:59 [31675] [6] DEBUG:   esm_class: 3 = 0x00000003
2013-12-18 22:20:59 [31675] [6] DEBUG:   protocol_id: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   priority_flag: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   schedule_delivery_time: NULL
2013-12-18 22:20:59 [31675] [6] DEBUG:   validity_period: NULL
2013-12-18 22:20:59 [31675] [6] DEBUG:   registered_delivery: 1 = 0x00000001
2013-12-18 22:20:59 [31675] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   data_coding: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2013-12-18 22:20:59 [31675] [6] DEBUG:   sm_length: 18 = 0x00000012
2013-12-18 22:20:59 [31675] [6] DEBUG:   short_message:
2013-12-18 22:20:59 [31675] [6] DEBUG:    Octet string at 0x7b0780:
2013-12-18 22:20:59 [31675] [6] DEBUG:      len:  18
2013-12-18 22:20:59 [31675] [6] DEBUG:      size: 19
2013-12-18 22:20:59 [31675] [6] DEBUG:      immutable: 0
2013-12-18 22:20:59 [31675] [6] DEBUG:      data: 50 72 75 65 62 61 20 63 6f 6e 
20 73 69 67 6e 6f   Prueba con signo
2013-12-18 22:20:59 [31675] [6] DEBUG:      data: 20 02                         
                     .
2013-12-18 22:20:59 [31675] [6] DEBUG:    Octet string dump ends.
2013-12-18 22:20:59 [31675] [6] DEBUG: SMPP PDU dump ends.

I don't understand the output:

50 72 75 65 62 61 20 63 6f 6e 20 73 69 67 6e 6f 20 02


Acording to some GSM encoders online, the encoded text should be something like 
this:

50 79 BD 2C 0E 83 C6 6F 37 68 9E 3E BB DF 20 01

The actual data it's just plain ASCII with the '$' converted to 0x02.  Why this 
is the only character that is correctly converted to GSM encoding ?  Thx for 
your help.

    E.

Reply via email to