Just comment the source-addr-ton config, for use default value.
Look what says the userguide below:
...
source-addr-ton number Optional, source address TON setting for the link. (Defaults to 0).
source-addr-npi number Optional, source address NPI setting for the link. (Defaults to 1).
...
[]s
Allison Almeida.
2006/8/3, Bas A. Schulte <[EMAIL PROTECTED]>:
Hi all,
I'm a bit confused... in my smpp connection configuration, I've got this:
source-addr-ton = 0
Now, with some submit_sm operations, I get an error from the sms-c
that the source address ton (type of number) is invalid. Somehow, the
pdu still contains a non-0 ton, it contains a 1.
Here's a dump:
2006-08-03 15:59:28 [6534] [6] DEBUG: SMPP[informatel-au]: Manually
forced source addr ton = 0, source add npi = 9
2006-08-03 15:59:28 [6534] [6] DEBUG: SMPP[informatel-au]: Manually
forced dest addr ton = 1, dest add npi = 1
2006-08-03 15:59:28 [6534] [6] DEBUG: SMPP[informatel-au]: Sending PDU:
2006-08-03 15:59:28 [6534] [6] DEBUG: SMPP PDU 0x81a3ed0 dump:
2006-08-03 15:59:28 [6534] [6] DEBUG: type_name: submit_sm
2006-08-03 15:59:28 [6534] [6] DEBUG: command_id: 4 = 0x00000004
2006-08-03 15:59:28 [6534] [6] DEBUG: command_status: 0 = 0x00000000
2006-08-03 15:59:28 [6534] [6] DEBUG: sequence_number: 259 = 0x00000103
2006-08-03 15:59:28 [6534] [6] DEBUG: service_type: NULL
2006-08-03 15:59:28 [6534] [6] DEBUG: source_addr_ton: 1 = 0x00000001
2006-08-03 15:59:28 [6534] [6] DEBUG: source_addr_npi: 9 = 0x00000009
2006-08-03 15:59:28 [6534] [6] DEBUG: source_addr: "19794648"
2006-08-03 15:59:28 [6534] [6] DEBUG: dest_addr_ton: 1 = 0x00000001
2006-08-03 15:59:28 [6534] [6] DEBUG: dest_addr_npi: 1 = 0x00000001
2006-08-03 15:59:28 [6534] [6] DEBUG: destination_addr: "61438505211"
Other messages are ok though:
2006-08-03 07:13:26 [16664] [6] DEBUG: SMPP[informatel-au]: Manually
forced source addr ton = 0, source add npi = 9
2006-08-03 07:13:26 [16664] [6] DEBUG: SMPP[informatel-au]: Manually
forced dest addr ton = 1, dest add npi = 1
2006-08-03 07:13:26 [16664] [6] DEBUG: SMPP[informatel-au]: Sending PDU:
2006-08-03 07:13:26 [16664] [6] DEBUG: SMPP PDU 0x81a72f8 dump:
2006-08-03 07:13:26 [16664] [6] DEBUG: type_name: submit_sm
2006-08-03 07:13:26 [16664] [6] DEBUG: command_id: 4 = 0x00000004
2006-08-03 07:13:26 [16664] [6] DEBUG: command_status: 0 = 0x00000000
2006-08-03 07:13:26 [16664] [6] DEBUG: sequence_number: 38871 = 0x000097d7
2006-08-03 07:13:26 [16664] [6] DEBUG: service_type: NULL
2006-08-03 07:13:26 [16664] [6] DEBUG: source_addr_ton: 0 = 0x00000000
2006-08-03 07:13:26 [16664] [6] DEBUG: source_addr_npi: 9 = 0x00000009
In this case, source_addr_ton is correctly set to 0.
Any ideas why this is happening?
Cheers,
Bas.
--
Abraços.
Allison Almeida.
------------------------------------------
[EMAIL PROTECTED]
Analista Infra-Estrutura
Prill Tecnologia.
