smppbox log

2013-08-28 10:02:15 [10850] [2] DEBUG: SMPP[kannel]: Got PDU:
2013-08-28 10:02:15 [10850] [2] DEBUG: SMPP PDU 0x12da5e0 dump:
2013-08-28 10:02:15 [10850] [2] DEBUG:   type_name: submit_sm
2013-08-28 10:02:15 [10850] [2] DEBUG:   command_id: 4 = 0x00000004
2013-08-28 10:02:15 [10850] [2] DEBUG:   command_status: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   sequence_number: 4 = 0x00000004
2013-08-28 10:02:15 [10850] [2] DEBUG:   service_type: NULL
2013-08-28 10:02:15 [10850] [2] DEBUG:   source_addr_ton: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   source_addr_npi: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   source_addr: "hello"
2013-08-28 10:02:15 [10850] [2] DEBUG:   dest_addr_ton: 1 = 0x00000001
2013-08-28 10:02:15 [10850] [2] DEBUG:   dest_addr_npi: 1 = 0x00000001
2013-08-28 10:02:15 [10850] [2] DEBUG:   destination_addr: "123456789"
2013-08-28 10:02:15 [10850] [2] DEBUG:   esm_class: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   protocol_id: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   priority_flag: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   schedule_delivery_time: NULL
2013-08-28 10:02:15 [10850] [2] DEBUG:   validity_period: NULL
2013-08-28 10:02:15 [10850] [2] DEBUG:   registered_delivery: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   data_coding: 8 = 0x00000008
2013-08-28 10:02:15 [10850] [2] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [2] DEBUG:   sm_length: 4 = 0x00000004
2013-08-28 10:02:15 [10850] [2] DEBUG:   short_message:
2013-08-28 10:02:15 [10850] [2] DEBUG:    Octet string at 0x12daa80:
2013-08-28 10:02:15 [10850] [2] DEBUG:      len:  4
2013-08-28 10:02:15 [10850] [2] DEBUG:      size: 5
2013-08-28 10:02:15 [10850] [2] DEBUG:      immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:      data: 4e ca 65 e5                   
                    N.e.
2013-08-28 10:02:15 [10850] [2] DEBUG:    Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG: SMPP PDU dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG: routed msg 'hello:kannel' to smsc 
'testapi'
2013-08-28 10:02:15 [10850] [2] DEBUG: Msg object at 0x12da810:
2013-08-28 10:02:15 [10850] [2] DEBUG:  type: sms
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.sender:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12d8500:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  5
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 6
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 68 65 6c 6c 6f                  
                  hello
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.receiver:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12d8530:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  10
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 1024
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 2b 31 32 33 34 35 36 37 38 39   
                  +123456789
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.udhdata:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.msgdata:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12daa80:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  4
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 5
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 4e ca 65 e5                     
                  N.e.
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.time: 1377655335
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.smsc_id:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12dab20:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  7
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 8
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 74 65 73 74 61 70 69            
                  testapi
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.smsc_number:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.foreign_id:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.service:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12da9b0:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  6
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 7
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 6b 61 6e 6e 65 6c               
                  kannel
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.account:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.id: 
bb87a164-696c-496b-89b2-acd70b81459b
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.sms_type: 2
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.mclass: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.mwi: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.coding: 2
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.compress: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.validity: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.deferred: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.dlr_mask: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.dlr_url:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.pid: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.alt_dcs: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.rpi: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.charset:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.boxc_id:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12daa10:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  6
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 7
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 6b 61 6e 6e 65 6c               
                  kannel
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.binfo:
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.msg_left: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.split_parts: (nil)
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.priority: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.resend_try: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.resend_time: -1
2013-08-28 10:02:15 [10850] [2] DEBUG:  sms.meta_data:
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string at 0x12d8560:
2013-08-28 10:02:15 [10850] [2] DEBUG:    len:  6
2013-08-28 10:02:15 [10850] [2] DEBUG:    size: 1024
2013-08-28 10:02:15 [10850] [2] DEBUG:    immutable: 0
2013-08-28 10:02:15 [10850] [2] DEBUG:    data: 3f 73 6d 70 70 3f               
                  ?smpp?
2013-08-28 10:02:15 [10850] [2] DEBUG:  Octet string dump ends.
2013-08-28 10:02:15 [10850] [2] DEBUG: Msg object ends.
2013-08-28 10:02:15 [10850] [1] DEBUG: SMPP[kannel]: Sending PDU:
2013-08-28 10:02:15 [10850] [1] DEBUG: SMPP PDU 0x12df450 dump:
2013-08-28 10:02:15 [10850] [1] DEBUG:   type_name: submit_sm_resp
2013-08-28 10:02:15 [10850] [1] DEBUG:   command_id: 2147483652 = 0x80000004
2013-08-28 10:02:15 [10850] [1] DEBUG:   command_status: 0 = 0x00000000
2013-08-28 10:02:15 [10850] [1] DEBUG:   sequence_number: 4 = 0x00000004
2013-08-28 10:02:15 [10850] [1] DEBUG:   message_id:
2013-08-28 10:02:15 [10850] [1] DEBUG:    Octet string at 0x12df6b0:
2013-08-28 10:02:15 [10850] [1] DEBUG:      len:  36
2013-08-28 10:02:15 [10850] [1] DEBUG:      size: 37
2013-08-28 10:02:15 [10850] [1] DEBUG:      immutable: 0
2013-08-28 10:02:15 [10850] [1] DEBUG:      data: 62 62 38 37 61 31 36 34 2d 36 
39 36 63 2d 34 39   bb87a164-696c-49
2013-08-28 10:02:15 [10850] [1] DEBUG:      data: 36 62 2d 38 39 62 32 2d 61 63 
64 37 30 62 38 31   6b-89b2-acd70b81
2013-08-28 10:02:15 [10850] [1] DEBUG:      data: 34 35 39 62                   
                    459b
2013-08-28 10:02:15 [10850] [1] DEBUG:    Octet string dump ends.
2013-08-28 10:02:15 [10850] [1] DEBUG: SMPP PDU dump ends.
2013-08-28 10:02:16 [10850] [2] DEBUG: SMPP[kannel]: Got PDU:
2013-08-28 10:02:16 [10850] [2] DEBUG: SMPP PDU 0x12df450 dump:
2013-08-28 10:02:16 [10850] [2] DEBUG:   type_name: query_sm
2013-08-28 10:02:16 [10850] [2] DEBUG:   command_id: 3 = 0x00000003
2013-08-28 10:02:16 [10850] [2] DEBUG:   command_status: 0 = 0x00000000
2013-08-28 10:02:16 [10850] [2] DEBUG:   sequence_number: 5 = 0x00000005
2013-08-28 10:02:16 [10850] [2] DEBUG:   message_id:
2013-08-28 10:02:16 [10850] [2] DEBUG:    Octet string at 0x12daac0:
2013-08-28 10:02:16 [10850] [2] DEBUG:      len:  36
2013-08-28 10:02:16 [10850] [2] DEBUG:      size: 37
2013-08-28 10:02:16 [10850] [2] DEBUG:      immutable: 0
2013-08-28 10:02:16 [10850] [2] DEBUG:      data: 62 62 38 37 61 31 36 34 2d 36 
39 36 63 2d 34 39   bb87a164-696c-49
2013-08-28 10:02:16 [10850] [2] DEBUG:      data: 36 62 2d 38 39 62 32 2d 61 63 
64 37 30 62 38 31   6b-89b2-acd70b81
2013-08-28 10:02:16 [10850] [2] DEBUG:      data: 34 35 39 62                   
                    459b
2013-08-28 10:02:16 [10850] [2] DEBUG:    Octet string dump ends.
2013-08-28 10:02:16 [10850] [2] DEBUG:   source_addr_ton: 0 = 0x00000000
2013-08-28 10:02:16 [10850] [2] DEBUG:   source_addr_npi: 0 = 0x00000000
2013-08-28 10:02:16 [10850] [2] DEBUG:   source_addr: "hello"
2013-08-28 10:02:16 [10850] [2] DEBUG: SMPP PDU dump ends.
2013-08-28 10:02:16 [10850] [2] ERROR: SMPP[kannel]: Unknown PDU type 
0x00000003, ignored.
2013-08-28 10:02:16 [10850] [2] DEBUG: SMPP[kannel]: Sending PDU:
2013-08-28 10:02:16 [10850] [2] DEBUG: SMPP PDU 0x12da5e0 dump:
2013-08-28 10:02:16 [10850] [2] DEBUG:   type_name: generic_nack
2013-08-28 10:02:16 [10850] [2] DEBUG:   command_id: 2147483648 = 0x80000000
2013-08-28 10:02:16 [10850] [2] DEBUG:   command_status: 3 = 0x00000003
2013-08-28 10:02:16 [10850] [2] DEBUG:   sequence_number: 5 = 0x00000005
2013-08-28 10:02:16 [10850] [2] DEBUG: SMPP PDU dump ends.



bearer box log

2013-08-28 10:00:00 [10832] [5] INFO: Client connected from <127.0.0.1>
2013-08-28 10:00:00 [10832] [5] DEBUG: Started thread 18 (gw/bb_boxc.c:function)
2013-08-28 10:00:00 [10832] [18] DEBUG: Thread 18 (gw/bb_boxc.c:function) maps 
to pid 10832.
2013-08-28 10:00:00 [10832] [18] DEBUG: Started thread 19 
(gw/bb_boxc.c:boxc_sender)
2013-08-28 10:00:00 [10832] [19] DEBUG: Thread 19 (gw/bb_boxc.c:boxc_sender) 
maps to pid 10832.
2013-08-28 10:00:01 [10832] [18] DEBUG: boxc_receiver: got boxc_id <kannel> 
from <127.0.0.1>
2013-08-28 10:02:15 [10832] [18] DEBUG: boxc_receiver: sms received
2013-08-28 10:02:15 [10832] [18] DEBUG: send_msg: sending msg to boxc: <kannel>
2013-08-28 10:02:15 [10832] [21] DEBUG: Thread 21 
(gwlib/http.c:write_request_thread) maps to pid 10832.
2013-08-28 10:02:15 [10832] [21] DEBUG: Queue contains 0 pending requests.
2013-08-28 10:02:15 [10832] [21] DEBUG: Parsing URL 
`http://api.accessyou.com/sms/smpp-test.php?from=hello&to=%2B123456789&text=N%CAe%E5':
2013-08-28 10:02:15 [10832] [21] DEBUG:   Scheme: http://
2013-08-28 10:02:15 [10832] [21] DEBUG:   Host: api.accessyou.com
2013-08-28 10:02:15 [10832] [21] DEBUG:   Port: 80
2013-08-28 10:02:15 [10832] [21] DEBUG:   Username: (null)
2013-08-28 10:02:15 [10832] [21] DEBUG:   Password: (null)
2013-08-28 10:02:15 [10832] [21] DEBUG:   Path: /sms/smpp-test.php
2013-08-28 10:02:15 [10832] [21] DEBUG:   Query: 
from=hello&to=%2B123456789&text=N%CAe%E5
2013-08-28 10:02:15 [10832] [21] DEBUG:   Fragment: (null)
2013-08-28 10:02:15 [10832] [20] DEBUG: Thread 20 (gwlib/fdset.c:poller) maps 
to pid 10832.
2013-08-28 10:02:15 [10832] [21] DEBUG: Connecting nonblocking to <59.188.17.15>
2013-08-28 10:02:15 [10832] [21] DEBUG: HTTP: Opening connection to 
`api.accessyou.com:80' (fd=57).
2013-08-28 10:02:15 [10832] [21] DEBUG: Socket connecting
2013-08-28 10:02:15 [10832] [20] DEBUG: Get info about connecting socket
2013-08-28 10:02:15 [10832] [20] DEBUG: HTTP: Sending request:
2013-08-28 10:02:15 [10832] [20] DEBUG: Octet string at 0x1098a30:
2013-08-28 10:02:15 [10832] [20] DEBUG:   len:  125
2013-08-28 10:02:15 [10832] [20] DEBUG:   size: 1024
2013-08-28 10:02:15 [10832] [20] DEBUG:   immutable: 0
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 47 45 54 20 2f 73 6d 73 2f 73 
6d 70 70 2d 74 65   GET /sms/smpp-te
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 73 74 2e 70 68 70 3f 66 72 6f 
6d 3d 68 65 6c 6c   st.php?from=hell
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 6f 26 74 6f 3d 25 32 42 31 32 
33 34 35 36 37 38   o&to=%2B12345678
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 39 26 74 65 78 74 3d 4e 25 43 
41 65 25 45 35 20   9&text=N%CAe%E5
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 48 54 54 50 2f 31 2e 31 0d 0a 
48 6f 73 74 3a 20   HTTP/1.1..Host:
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 61 70 69 2e 61 63 63 65 73 73 
79 6f 75 2e 63 6f   api.accessyou.co
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 6d 0d 0a 43 6f 6e 6e 65 63 74 
69 6f 6e 3a 20 6b   m..Connection: k
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 65 65 70 2d 61 6c 69 76 65 0d 
0a 0d 0a            eep-alive....
2013-08-28 10:02:15 [10832] [20] DEBUG: Octet string dump ends.
2013-08-28 10:02:15 [10832] [20] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>
2013-08-28 10:02:15 [10832] [20] DEBUG: HTTP: Received response:
2013-08-28 10:02:15 [10832] [20] DEBUG: Octet string at 0x1098bb0:
2013-08-28 10:02:15 [10832] [20] DEBUG:   len:  183
2013-08-28 10:02:15 [10832] [20] DEBUG:   size: 1024
2013-08-28 10:02:15 [10832] [20] DEBUG:   immutable: 0
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 44 61 74 65 3a 20 57 65 64 2c 
20 32 38 20 41 75   Date: Wed, 28 Au
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 67 20 32 30 31 33 20 30 32 3a 
30 32 3a 31 35 20   g 2013 02:02:15
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 47 4d 54 0d 0a 53 65 72 76 65 
72 3a 20 41 70 61   GMT..Server: Apa
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 63 68 65 2f 32 2e 32 2e 33 20 
28 43 65 6e 74 4f   che/2.2.3 (CentO
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 53 29 0d 0a 58 2d 50 6f 77 65 
72 65 64 2d 42 79   S)..X-Powered-By
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 3a 20 50 48 50 2f 35 2e 31 2e 
36 0d 0a 43 6f 6e   : PHP/5.1.6..Con
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 74 65 6e 74 2d 4c 65 6e 67 74 
68 3a 20 32 34 0d   tent-Length: 24.
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 0a 43 6f 6e 6e 65 63 74 69 6f 
6e 3a 20 63 6c 6f   .Connection: clo
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 73 65 0d 0a 43 6f 6e 74 65 6e 
74 2d 54 79 70 65   se..Content-Type
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 3a 20 74 65 78 74 2f 68 74 6d 
6c 0d 0a 0d 0a 7d   : text/html....}
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 93 6f df 65 e5 58 31 5c 08 8a 
0a 00 0d 00 0a 00   .o.e.X1\........
2013-08-28 10:02:15 [10832] [20] DEBUG:   data: 0d 00 0a 0a e9 8d bd            
                  .......
2013-08-28 10:02:15 [10832] [20] DEBUG: Octet string dump ends.
2013-08-28 10:02:32 [10832] [18] INFO: Connection closed by the box <127.0.0.1>



________________________________
 寄件人︰ Rene Kluwen <[email protected]>
收件人︰ 'Qqblog Qqblog' <[email protected]>; [email protected] 
傳送日期︰ 2013年08月27日 (週二) 7:02 PM
主題︰ RE: opensmppbox  - unicode problem
 


Could you provide some logs of the message in question?
So we can see if the problem is either with opensmppbox or with your http smsc.
 
From:users [mailto:[email protected]] On Behalf Of Qqblog Qqblog
Sent: dinsdag 27 augustus 2013 12:25
To: [email protected]
Subject: opensmppbox - unicode problem
 
Our message flow is 

SMPP Client  ----> Opensmppbox ---> bearerbox ---> HTTP SMSC

message is unicode. message received from http is garbled. pls advise.
 
my configuration on opensmsppbox 
 
group = opensmppbox
opensmppbox-id = SMPP
opensmppbox-port = 2775
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
our-system-id = opensmppbox
smpp-logins = /etc/kannel/smpplogins.txt
use-systemid-as-smsboxid = true
route-to-smsc = testapi
log-file = /var/log/kannel/smppbox.log

Reply via email to