Hi,
kannel works perfect. TON/NPI 5/0 is exactly what it has to set when
you use alphanum sender. TON/NPI 1/1 says e.164 number and "myservice"
is not really e.164 ;-)
So, looks like your service provider hasn't activated alphanum sender
for your account or doesn't support it for the target network.
Regards
Falko
Am 19.01.2009 um 13:19 schrieb Surya:
Dear List,
Is there anything wrong with my kannel configuration? Alphanumeric
doesn’t go.
The url is
http://localhost:13001/cgi-bin/sendsms?username=user1&password=pass1&from=myservice&to=123456789011&text=check%20sender&charset=UTF-16BE&mclass=2&coding=2&pid=0&priority=3&smsc=smsc1
also tried this url
http://localhost:13001/cgi-bin/sendsms?username=user1&password=pass1&from=myservice&to=123456789011&text=check%20sender
Here are the logs of a single request:
------------------------------------------------------
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP[BSNL]: Manually forced
source addr ton = 5, source add npi = 0
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP[BSNL]: Manually forced
dest addr ton = 1, dest add npi = 1
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP[BSNL]: Sending PDU:
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP PDU 0xafc00740 dump:
2009-01-19 16:23:57 [5387] [6] DEBUG: type_name: submit_sm
2009-01-19 16:23:57 [5387] [6] DEBUG: command_id: 4 = 0x00000004
2009-01-19 16:23:57 [5387] [6] DEBUG: command_status: 0 = 0x00000000
2009-01-19 16:23:57 [5387] [6] DEBUG: sequence_number: 35 =
0x00000023
2009-01-19 16:23:57 [5387] [6] DEBUG: service_type: NULL
2009-01-19 16:23:57 [5387] [6] DEBUG: source_addr_ton: 5 =
0x00000005
2009-01-19 16:23:57 [5387] [6] DEBUG: source_addr_npi: 0 =
0x00000000
2009-01-19 16:23:57 [5387] [6] DEBUG: source_addr: "myservice"
2009-01-19 16:23:57 [5387] [6] DEBUG: dest_addr_ton: 1 = 0x00000001
2009-01-19 16:23:57 [5387] [6] DEBUG: dest_addr_npi: 1 = 0x00000001
2009-01-19 16:23:57 [5387] [6] DEBUG: destination_addr:
"123456789011"
2009-01-19 16:23:57 [5387] [6] DEBUG: esm_class: 3 = 0x00000003
2009-01-19 16:23:57 [5387] [6] DEBUG: protocol_id: 0 = 0x00000000
2009-01-19 16:23:57 [5387] [6] DEBUG: priority_flag: 3 = 0x00000003
2009-01-19 16:23:57 [5387] [6] DEBUG: schedule_delivery_time: NULL
2009-01-19 16:23:57 [5387] [6] DEBUG: validity_period: NULL
2009-01-19 16:23:57 [5387] [6] DEBUG: registered_delivery: 0 =
0x00000000
2009-01-19 16:23:57 [5387] [6] DEBUG: replace_if_present_flag: 0 =
0x00000000
2009-01-19 16:23:57 [5387] [6] DEBUG: data_coding: 26 = 0x0000001a
2009-01-19 16:23:57 [5387] [6] DEBUG: sm_default_msg_id: 0 =
0x00000000
2009-01-19 16:23:57 [5387] [6] DEBUG: sm_length: 12 = 0x0000000c
2009-01-19 16:23:57 [5387] [6] DEBUG: short_message: "check sender"
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP PDU dump ends.
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP[BSNL]: Got PDU:
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP PDU 0xafc00758 dump:
2009-01-19 16:23:57 [5387] [6] DEBUG: type_name: submit_sm_resp
2009-01-19 16:23:57 [5387] [6] DEBUG: command_id: 2147483652 =
0x80000004
2009-01-19 16:23:57 [5387] [6] DEBUG: command_status: 10 =
0x0000000a
2009-01-19 16:23:57 [5387] [6] DEBUG: sequence_number: 35 =
0x00000023
2009-01-19 16:23:57 [5387] [6] DEBUG: message_id: NULL
2009-01-19 16:23:57 [5387] [6] DEBUG: SMPP PDU dump ends.
2009-01-19 16:23:57 [5387] [6] ERROR: SMPP[BSNL]: SMSC returned
error code 0x0000000a (Invalid Source Address) in response to
submit_sm.
Here is my configuration:
-------------------------------------
# SMSC SMPP
#my-number = xxxxx
group = smsc
smsc = smpp
smsc-id = smsc1
host = host-ip
port = port
log-file = "/kannel/log/kannel.log"
transceiver-mode = 0
alt-dcs = true
receive-port = port
smsc-username = ****
smsc-password = ****
system-type = ""
address-range = ""
source-addr-ton = 5
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
msg-id-type = 0x01
throughput = 30
max-pending-submits = 5
enquire-link-interval= 60
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13001
log-file = "/kannel/log/smsbox.log"
log-level = 0
access-log = "/kannel/log/access.log"
# SEND-SMS USERS
group = sendsms-user
username = user1
password = pass1
dlr-url = "http://localhost:5555/myservice/dlrstatus?oa=%p&da=
%P&smsc=%i&type=%d"
max-messages = 3
concatenation = true
The regular values for ton and npi are 1 and 1.
Any help would be appreciated.
TIA,
Regards,
Surya