I don’t think that opensmppbox supports send_multi_sm pdu’s.

You are out of luck.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Ivan Martinez
Sent: Tuesday, 28 June, 2011 18:37
To: users@kannel.org
Subject: RE: Invalid SMPP PDU received with opensmpp

 

Hi Rene,
 
Thanks for your answer...
 
I have a problem with the phpclasses software[1].
 
When i try send a multi destination sms trought opensmppbox with this methods
 
$smpp->SendMulti("31648072766,31651931985", "This is my PHP message Multi");
 
i have this error:
 
Bind Transmitter PDU: 117 115 117 97 114 105 111 0 99 108 97 118 101 0 115 98 
111 120 107 0 51 0 0 0 Sending PDU, len == 40 Sending PDU, header-len == 16 
Sending PDU, command_id == 2 Trying to read PDU. Reading PDU : 27 bytes. Stream 
len : 23 Command id : 2. Command status : 0. sequence_number : 1. Got 
CM_BIND_TRANSMITTER_RESP. system id : opensmppid. Received PDU: 
€(0)(0)(2)(0)(0)(0)(0)(0)(0)(0)(1)opensmppid(0) In split_message. One message: 
28 Multi PDU: ...31495595392.....31648072766....31651931985........ñ..This is 
my PHP message Multi Sending PDU, len == 100 Sending PDU, header-len == 16 
Sending PDU, command_id == 33 Trying to read PDU. Reading PDU : 16 bytes. 
Stream len : 12 Command id : 0. Command status : 3. sequence_number : 2. Got 
unknown SMPP pdu. Received PDU: €(0)(0)(0)(0)(0)(0)(3)(0)(0)(0)(2) SMPP server 
returned error 3. Sending PDU, len == 16 Sending PDU, header-len == 16 Sending 
PDU, command_id == 6 Trying to read PDU. Reading PDU : 16 bytes. Stream len : 
12 Command id : 6. Command status : 0. sequence_number : 3. Got CM_UNBIND_RESP. 
Received PDU: €(0)(0)(6)(0)(0)(0)(0)(0)(0)(0)(3)
 
opensmppbox.log: 
2011-06-28 16:29:34 [32074] [41] DEBUG: Thread 41 (opensmppbox.c:function) maps 
to pid 32074.
2011-06-28 16:29:34 [32074] [0] DEBUG: Started thread 41 
(opensmppbox.c:function)
2011-06-28 16:29:34 [32074] [41] INFO: Client connected from <192.168.1.187>
2011-06-28 16:29:34 [32074] [41] DEBUG: Connecting to <127.0.0.1>
2011-06-28 16:29:34 [32074] [41] INFO: Connected to bearerbox at localhost port 
13002.
2011-06-28 16:29:34 [32042] [5] INFO: Client connected from <127.0.0.1> 
2011-06-28 16:29:34 [32074] [41] DEBUG: Started thread 42 
(opensmppbox.c:smpp_to_bearerbox)
2011-06-28 16:29:34 [32042] [5] DEBUG: Started thread 62 (gw/bb_boxc.c:function)
2011-06-28 16:29:34 [32074] [42] DEBUG: Thread 42 
(opensmppbox.c:smpp_to_bearerbox) maps to pid 32074.
2011-06-28 16:29:34 [32042] [62] DEBUG: Thread 62 (gw/bb_boxc.c:function) maps 
to pid 32042.
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP[smppbox]: Got PDU:
2011-06-28 16:29:34 [32042] [62] DEBUG: Started thread 63 
(gw/bb_boxc.c:boxc_sender)
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU 0x87a48a0 dump:
2011-06-28 16:29:34 [32074] [42] DEBUG:   type_name: bind_transmitter
2011-06-28 16:29:34 [32042] [63] DEBUG: Thread 63 (gw/bb_boxc.c:boxc_sender) 
maps to pid 32042.
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_id: 2 = 0x00000002
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-28 16:29:34 [32074] [42] DEBUG:   system_id: "usuario"
2011-06-28 16:29:34 [32074] [42] DEBUG:   password: "clave"
2011-06-28 16:29:34 [32074] [42] DEBUG:   system_type: "sboxk"
2011-06-28 16:29:34 [32074] [42] DEBUG:   interface_version: 51 = 0x00000033
2011-06-28 16:29:34 [32074] [42] DEBUG:   addr_ton: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   addr_npi: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   address_range: NULL
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP[sboxk]: Sending PDU:
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU 0x878d830 dump:
2011-06-28 16:29:34 [32042] [62] DEBUG: boxc_receiver: got boxc_id <sboxk> from 
<127.0.0.1>
2011-06-28 16:29:34 [32074] [42] DEBUG:   type_name: bind_transmitter_resp
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_id: 2147483650 = 0x80000002
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-28 16:29:34 [32074] [42] DEBUG:   system_id: "opensmppid"
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:34 [32074] [41] DEBUG: Thread 41 (opensmppbox.c:function) maps 
to pid 32074.
2011-06-28 16:29:34 [32074] [0] DEBUG: Started thread 41 
(opensmppbox.c:function)
2011-06-28 16:29:34 [32074] [41] INFO: Client connected from <192.168.1.187>
2011-06-28 16:29:34 [32074] [41] DEBUG: Connecting to <127.0.0.1>
2011-06-28 16:29:34 [32074] [41] INFO: Connected to bearerbox at localhost port 
13002.
2011-06-28 16:29:34 [32074] [41] DEBUG: Started thread 42 
(opensmppbox.c:smpp_to_bearerbox)
2011-06-28 16:29:34 [32074] [42] DEBUG: Thread 42 
(opensmppbox.c:smpp_to_bearerbox) maps to pid 32074.
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP[smppbox]: Got PDU:
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU 0x87a48a0 dump:
2011-06-28 16:29:34 [32074] [42] DEBUG:   type_name: bind_transmitter
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_id: 2 = 0x00000002
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-28 16:29:34 [32074] [42] DEBUG:   system_id: "usuario"
2011-06-28 16:29:34 [32074] [42] DEBUG:   password: "clave"
2011-06-28 16:29:34 [32074] [42] DEBUG:   system_type: "sboxk"
2011-06-28 16:29:34 [32074] [42] DEBUG:   interface_version: 51 = 0x00000033
2011-06-28 16:29:34 [32074] [42] DEBUG:   addr_ton: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   addr_npi: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   address_range: NULL
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP[sboxk]: Sending PDU:
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU 0x878d830 dump:
2011-06-28 16:29:34 [32074] [42] DEBUG:   type_name: bind_transmitter_resp
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_id: 2147483650 = 0x80000002
2011-06-28 16:29:34 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:34 [32074] [42] DEBUG:   sequence_number: 1 = 0x00000001
2011-06-28 16:29:34 [32074] [42] DEBUG:   system_id: "opensmppid"
2011-06-28 16:29:34 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:35 [32074] [42] DEBUG: Optional parameter tag (0xf100)
2011-06-28 16:29:35 [32074] [42] DEBUG: Optional parameter length read as 7252
2011-06-28 16:29:35 [32074] [42] WARNING: SMPP: Unknown 
TLV(0xf100,0x1c54,686973206973206d7920504850206d657373616765204d756c7469) for 
PDU type (submit_multi) received!
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP[sboxk]: Got PDU:
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU 0x878d730 dump:
2011-06-28 16:29:35 [32074] [42] DEBUG:   type_name: submit_multi
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_id: 33 = 0x00000021
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   sequence_number: 2 = 0x00000002
2011-06-28 16:29:35 [32074] [42] DEBUG:   service_type: NULL
2011-06-28 16:29:35 [32074] [42] DEBUG:   source_addr_ton: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   source_addr_npi: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   source_addr: "31495595392"
2011-06-28 16:29:35 [32074] [42] DEBUG:   number_of_dests: 2 = 0x00000002
2011-06-28 16:29:35 [32074] [42] DEBUG:   dest_address_es:
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string at 0x87a4850:
2011-06-28 16:29:35 [32074] [42] DEBUG:      len:  14
2011-06-28 16:29:35 [32074] [42] DEBUG:      size: 15
2011-06-28 16:29:35 [32074] [42] DEBUG:      immutable: 0
2011-06-28 16:29:35 [32074] [42] DEBUG:      data: 01 01 01 33 31 36 34 38 30 
37 32 37 36 36         ...31648072766
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string dump ends.
2011-06-28 16:29:35 [32074] [42] DEBUG:   esm_class: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   protocol_id: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   priority_flag: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   schedule_delivery_time: "31651931985"
2011-06-28 16:29:35 [32074] [42] DEBUG:   validity_period:
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string at 0x879c4e0:
2011-06-28 16:29:35 [32074] [42] DEBUG:      len:  1
2011-06-28 16:29:35 [32074] [42] DEBUG:      size: 2
2011-06-28 16:29:35 [32074] [42] DEBUG:      immutable: 0
2011-06-28 16:29:35 [32074] [42] DEBUG:      data: 03                           
                     .
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string dump ends.
2011-06-28 16:29:35 [32074] [42] DEBUG:   registered_delivery: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   replace_if_present_flag: 0 = 
0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   data_coding: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   sm_length: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   short_message: ""
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:35 [32074] [42] ERROR: SMPP[sboxk]: Unknown PDU type 
0x00000021, ignored.
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP[sboxk]: Sending PDU:
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU 0x87a48a0 dump:
2011-06-28 16:29:35 [32074] [42] DEBUG:   type_name: generic_nack
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_id: 2147483648 = 0x80000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_status: 3 = 0x00000003
2011-06-28 16:29:35 [32074] [42] DEBUG:   sequence_number: 2 = 0x00000002
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:35 [32074] [42] DEBUG: Optional parameter tag (0xf100)
2011-06-28 16:29:35 [32074] [42] DEBUG: Optional parameter length read as 7252
2011-06-28 16:29:35 [32074] [42] WARNING: SMPP: Unknown 
TLV(0xf100,0x1c54,686973206973206d7920504850206d657373616765204d756c7469) for 
PDU type (submit_multi) received!
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP[sboxk]: Got PDU:
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU 0x878d730 dump:
2011-06-28 16:29:35 [32074] [42] DEBUG:   type_name: submit_multi
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_id: 33 = 0x00000021
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   sequence_number: 2 = 0x00000002
2011-06-28 16:29:35 [32074] [42] DEBUG:   service_type: NULL
2011-06-28 16:29:35 [32074] [42] DEBUG:   source_addr_ton: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   source_addr_npi: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   source_addr: "31495595392"
2011-06-28 16:29:35 [32074] [42] DEBUG:   number_of_dests: 2 = 0x00000002
2011-06-28 16:29:35 [32074] [42] DEBUG:   dest_address_es:
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string at 0x87a4850:
2011-06-28 16:29:35 [32074] [42] DEBUG:      len:  14
2011-06-28 16:29:35 [32074] [42] DEBUG:      size: 15
2011-06-28 16:29:35 [32074] [42] DEBUG:      immutable: 0
2011-06-28 16:29:35 [32074] [42] DEBUG:      data: 01 01 01 33 31 36 34 38 30 
37 32 37 36 36         ...31648072766
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string dump ends.
2011-06-28 16:29:35 [32074] [42] DEBUG:   esm_class: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   protocol_id: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   priority_flag: 1 = 0x00000001
2011-06-28 16:29:35 [32074] [42] DEBUG:   schedule_delivery_time: "31651931985"
2011-06-28 16:29:35 [32074] [42] DEBUG:   validity_period:
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string at 0x879c4e0:
2011-06-28 16:29:35 [32074] [42] DEBUG:      len:  1
2011-06-28 16:29:35 [32074] [42] DEBUG:      size: 2
2011-06-28 16:29:35 [32074] [42] DEBUG:      immutable: 0
2011-06-28 16:29:35 [32074] [42] DEBUG:      data: 03                           
                     .
2011-06-28 16:29:35 [32074] [42] DEBUG:    Octet string dump ends.
2011-06-28 16:29:35 [32074] [42] DEBUG:   registered_delivery: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   replace_if_present_flag: 0 = 
0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   data_coding: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   sm_length: 0 = 0x00000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   short_message: ""
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:35 [32074] [42] ERROR: SMPP[sboxk]: Unknown PDU type 
0x00000021, ignored.
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP[sboxk]: Sending PDU:
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU 0x87a48a0 dump:
2011-06-28 16:29:35 [32074] [42] DEBUG:   type_name: generic_nack
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_id: 2147483648 = 0x80000000
2011-06-28 16:29:35 [32074] [42] DEBUG:   command_status: 3 = 0x00000003
2011-06-28 16:29:35 [32074] [42] DEBUG:   sequence_number: 2 = 0x00000002
2011-06-28 16:29:35 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP[sboxk]: Got PDU:
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU 0x87a48a0 dump:
2011-06-28 16:29:36 [32074] [42] DEBUG:   type_name: unbind
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_id: 6 = 0x00000006
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:36 [32074] [42] DEBUG:   sequence_number: 3 = 0x00000003
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP[sboxk]: Sending PDU:
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU 0x878d730 dump:
2011-06-28 16:29:36 [32074] [42] DEBUG:   type_name: unbind_resp
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_id: 2147483654 = 0x80000006
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:36 [32074] [42] DEBUG:   sequence_number: 3 = 0x00000003
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:36 [32074] [42] DEBUG: Thread 42 
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP[sboxk]: Got PDU:
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU 0x87a48a0 dump:
2011-06-28 16:29:36 [32074] [42] DEBUG:   type_name: unbind
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_id: 6 = 0x00000006
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:36 [32074] [42] DEBUG:   sequence_number: 3 = 0x00000003
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP[sboxk]: Sending PDU:
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU 0x878d730 dump:
2011-06-28 16:29:36 [32074] [42] DEBUG:   type_name: unbind_resp
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_id: 2147483654 = 0x80000006
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_status: 0 = 0x00000000
2011-06-28 16:29:36 [32074] [42] DEBUG:   sequence_number: 3 = 0x00000003
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:36 [32074] [42] DEBUG: Thread 42 
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-28 16:29:37 [32042] [62] INFO: Connection closed by the box <127.0.0.1>
2011-06-28 16:29:37 [32074] [41] DEBUG: Thread 41 (opensmppbox.c:function) 
terminates.
2011-06-28 16:29:37 [32042] [63] DEBUG: send_msg: sending msg to boxc: <sboxk>
2011-06-28 16:29:37 [32042] [63] DEBUG: Thread 63 (gw/bb_boxc.c:boxc_sender) 
terminates.
2011-06-28 16:29:37 [32042] [62] DEBUG: Thread 62 (gw/bb_boxc.c:function) 
terminates.
2011-06-28 16:29:37 [32074] [41] DEBUG: Thread 41 (opensmppbox.c:function) 
terminates.
 
 
I'm try with this methot too:
$smpp->SendMulti("31648072766+31651931985", "This is my PHP message Multi");
$smpp->SendMulti("31648072766 31651931985", "This is my PHP message Multi");
 
any idea?
 
With the single mensaje work fine!
 
$smpp->Send("31651931985", "This is my PHP message");
 
 
Thanks for your help...
 
[1] 
http://www.phpclasses.org/package/1373-PHP-Sends-SMS-messages-via-an-SMPP-server.html
 
 
El 28/06/11 11:04, Rene Kluwen escribió:
>
> [1]: I know that software and I know it works.
>
> [2]: I don’t know this software, contact it’s author.
>
>  
>
> == Rene
>
>  

Reply via email to