Hi all,
When pushing an SMS with several destination_addr, some strings seem to
lose their NULL terminating character. This causes a WARNING, but what is
worst is that the SMSC refuses to send the message claiming "Invalid Dest
Address". (I have to assume the dest_addr string has no NULL). Is there a
way to correct this from within Kannel?
Sending another message to the same group of destination_addr, results
OK. I'm running CVS20040910.
Thanks in advance.
Rodrigo.
smsbox.log:
2004-10-31 19:42:03 [64102] [3] INFO: sendsms sender:<mulder:337-12>
(10.1.10.13) to:<1140309595 1150270274 1150945375 1151250270 1151311026
1151416719 1151580490 1151610131 1151610321 1151610348> msg:<Gol de River.
Autor:Mareque a los 5" 2T.>
kannel.log (the message was delivered minutes later):
2004-10-31 20:00:52 [64093] [1390] DEBUG: SMPP[UNIFON]: Sending PDU:
2004-10-31 20:00:52 [64093] [1390] DEBUG: SMPP PDU 0x8181800 dump:
2004-10-31 20:00:52 [64093] [1390] DEBUG: type_name: submit_sm
2004-10-31 20:00:52 [64093] [1390] DEBUG: command_id: 4 = 0x00000004
2004-10-31 20:00:52 [64093] [1390] DEBUG: command_status: 0 = 0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: sequence_number: 2773 =
0x00000ad5
2004-10-31 20:00:52 [64093] [1390] DEBUG: service_type: NULL
2004-10-31 20:00:52 [64093] [1390] DEBUG: source_addr_ton: 5 = 0x00000005
2004-10-31 20:00:52 [64093] [1390] DEBUG: source_addr_npi: 0 = 0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: source_addr: "337-12"
2004-10-31 20:00:52 [64093] [1390] DEBUG: dest_addr_ton: 2 = 0x00000002
2004-10-31 20:00:52 [64093] [1390] DEBUG: dest_addr_npi: 1 = 0x00000001
2004-10-31 20:00:52 [64093] [1390] DEBUG: destination_addr: "1151610321"
2004-10-31 20:00:52 [64093] [1390] DEBUG: esm_class: 0 = 0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: protocol_id: 0 = 0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: priority_flag: 0 = 0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: schedule_delivery_time: NULL
2004-10-31 20:00:52 [64093] [1390] DEBUG: validity_period: NULL
2004-10-31 20:00:52 [64093] [1390] DEBUG: registered_delivery: 0 =
0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: replace_if_present_flag: 0 =
0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: data_coding: 0 = 0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: sm_default_msg_id: 0 =
0x00000000
2004-10-31 20:00:52 [64093] [1390] DEBUG: sm_length: 40 = 0x00000028
2004-10-31 20:00:52 [64093] [1390] DEBUG: short_message:
2004-10-31 20:00:52 [64093] [1390] DEBUG: Octet string at 0x8171cd0:
2004-10-31 20:00:52 [64093] [1390] DEBUG: len: 40
2004-10-31 20:00:52 [64093] [1390] DEBUG: size: 41
2004-10-31 20:00:52 [64093] [1390] DEBUG: immutable: 0
2004-10-31 20:00:52 [64093] [1390] DEBUG: data: 47 6f 6c 20 64 65 20 52
69 76 65 72 2e 20 41 75 Gol de River. Au
2004-10-31 20:00:52 [64093] [1390] DEBUG: data: 74 6f 72 3a 4d 61 72 65
71 75 65 20 61 20 6c 6f tor:Mareque a lo
2004-10-31 20:00:52 [64093] [1390] DEBUG: data: 73 20 35 22 20 32 54 2e
s 5" 2T.
2004-10-31 20:00:52 [64093] [1390] DEBUG: Octet string dump ends.
2004-10-31 20:00:52 [64093] [1390] DEBUG: SMPP PDU dump ends.
2004-10-31 20:00:52 [64093] [1390] WARNING: SMPP: PDU NULL terminated string
has no NULL.
2004-10-31 20:00:52 [64093] [1390] DEBUG: SMPP[UNIFON]: Got PDU:
2004-10-31 20:00:52 [64093] [1390] DEBUG: SMPP PDU 0x8181800 dump:
2004-10-31 20:00:52 [64093] [1390] DEBUG: type_name: submit_sm_resp
2004-10-31 20:00:52 [64093] [1390] DEBUG: command_id: 2147483652 =
0x80000004
2004-10-31 20:00:52 [64093] [1390] DEBUG: command_status: 11 = 0x0000000b
2004-10-31 20:00:52 [64093] [1390] DEBUG: sequence_number: 2764 =
0x00000acc
2004-10-31 20:00:52 [64093] [1390] DEBUG: message_id: NULL
2004-10-31 20:00:52 [64093] [1390] DEBUG: SMPP PDU dump ends.
2004-10-31 20:00:52 [64093] [1390] ERROR: SMPP[UNIFON]: SMSC returned error
code 0x0000000b (Invalid Dest Address) in response to submit_sm.
--
Este mensaje se dirige exclusivamente a su destinatario y puede contener
informaci�n CONFIDENCIAL sometida a secreto profesional o cuya divulgaci�n
est� prohibida en virtud de la legislaci�n vigente. Si ha recibido este
mensaje por error, le rogamos que nos lo comunique inmediatamente por esta
misma v�a o por tel�fono (54.11 5776-5000) y proceda a su destrucci�n.
N�tese que el correo electr�nico v�a Internet no permite asegurar ni la
confidencialidad de los mensajes que se transmiten ni la correcta recepci�n
de los mismos. En caso de que el destinatario de este mensaje no
consintiera la utilizaci�n de correo electr�nico v�a Internet rogamos lo
ponga en nuestro conocimiento de manera inmediata.