**>Date: Wed, 02 Feb 2005 09:11:26 -0400
**>From: Pieter Natte <[EMAIL PROTECTED]>
**>To: users <[email protected]>
**>Subject: MO receiving problem
**>
**>Dear list,
**>
**>we just upgraded to Kannel 1.4 from 1.2.  Although the compilation and 
**>installation on Redhat 8 went smoothly we are encountering a problem 
**>with receiving MO SMS messages.  For one or another reason the new 
**>version refuses to receive the incoming messages.  Using the same 
**>configuration file with both versions 1.2 is working fine but 1.4 is 
**>not.  Binding to transmitter and receiver and sending messages is no 
**>problem. 
**>
**>What can be wrong? What may I have to add or change in the config file?  
**>I added already the smsbox-id and sms-route group to the 1.4 config but 
**>that did not solve the problem.  Below snippets from the config file and 
**>the log file. 
**>
**>Any help and/or suggestion is welcome.
**>
**>Pieter Natte
**>
**>CONFIG FILE
**>
**>group = core
**>admin-port = 13000
**>smsbox-port = 13001
**>admin-password = xxxxxx
**>status-password = xxxxx
**>admin-allow-ip = "127.0.0.1"
**>log-file = "/usr/local/smsgateway-1.4.0/logs/kannel.log"
**>log-level = 0
**>box-deny-ip = "*.*.*.*"
**>box-allow-ip = "xx.xx.xx.xx"
**>unified-prefix = "1"
**>access-log = "/usr/local/smsgateway-1.4.0/logs/access.log"
**>store-file = "/usr/local/smsgateway-1.4.0/logs/kannel.store"
**>
**># SMSC CONNECTIONS
**>
**># Prime account connect for receiving messages
**>group = smsc
**>smsc = smpp
**>smsc-id = kpn-nl
**>host = nlp.netsizeonline.com
**>port = xxxxxxx
**>receive-port = xxxxx
**>smsc-username = "xxxxxxxxxxxxxxx"
**>smsc-password = xxxxxxxxxxx
**>system-type = ""
**>keepalive = 5
**>address-range = ""
**>enquire-link-interval=290
**>allowed-smsc-id = kpn-nl
**>msg-id-type = 0x01
**>
**>
**># SMSBOX SETUP
**>
**>group = smsbox
**>smsbox-id = mobile-sms
**>bearerbox-host = localhost
**>sendsms-port = 13013
**>sendsms-chars = "0123456789 +-"
**>log-file = "/usr/local/smsgateway-1.4.0/logs/smsbox.log"
**>log-level = 0
**>access-log = "/usr/local/smsgateway-1.4.0/logs/sms_access.log"
**>
**>#  SMS ROUTING
**>group = smsbox-route
**>smsbox-id = mobile-sms
**>smsc-ids = kpn-nl
**>
**># SERVICES
**>
**># there should be default always
**># Home-XS is defined as the default service
**>group = sms-service
**>keyword = default
**>post-url = 
**>"http://xxxxxxxxxx.com/xxxxxxl/xxxxx/xxxxHandler?from=%p&to=%P&skey=%k&text=%r&smscid=%i&smscid_time=%t&service=%n&code=%c";
**>max-messages = 0
**>name = Home-XS
**>accepted-smsc = kpn-nl;dt-nl;ben-nl;telfort-nl;lib-nl
**>
**># SEND-SMS USERS
**>
**>group = sendsms-user
**>username = Home-XS
**>password = xxxxx
**>max-messages = 1
**>
**>
**>LOG FILE
**>
**>2005-02-01 14:59:57 [12983] [9] DEBUG: SMPP[kpn-nl]: Got PDU:
**>2005-02-01 14:59:57 [12983] [9] DEBUG: SMPP PDU 0x819b1e0 dump:
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   type_name: deliver_sm
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   command_id: 5 = 0x00000005
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   command_status: 0 = 0x00000000
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   sequence_number: 2 = 0x00000002
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   service_type: "20408"
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   source_addr_ton: 2 = 0x00000002
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   source_addr_npi: 3 = 0x00000003
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   source_addr: "+31622660160"
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   dest_addr_ton: 2 = 0x00000002
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   dest_addr_npi: 3 = 0x00000003
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   destination_addr: "4010"
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   esm_class: 0 = 0x00000000
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   protocol_id: 0 = 0x00000000
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   priority_flag: 1 = 0x00000001
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   schedule_delivery_time: NULL
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   validity_period: NULL
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   registered_delivery: 0 = 0x00000000
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   replace_if_present_flag: 0 = 
**>0x00000000
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   data_coding: 242 = 0x000000f2
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   sm_default_msg_id: 0 = 0x00000000
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   sm_length: 3 = 0x00000003
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   short_message: "XS5"
**>2005-02-01 14:59:57 [12983] [9] DEBUG: SMPP PDU dump ends.
**>2005-02-01 14:59:57 [12983] [9] DEBUG: SMPP[kpn-nl]: Sending PDU:
**>2005-02-01 14:59:57 [12983] [9] DEBUG: SMPP PDU 0x819aef8 dump:
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   type_name: deliver_sm_resp
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   command_id: 2147483653 = 0x80000005
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   command_status: 10 = 
**>0x0000000a                      (This value is 0x0000000 in 1.2)
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   sequence_number: 2 = 0x00000002
**>2005-02-01 14:59:57 [12983] [9] DEBUG:   message_id: NULL
**>2005-02-01 14:59:57 [12983] [9] DEBUG: SMPP PDU dump ends.

The SMSC is returning command_status = 0x0000000a which maps to
ESME_RINVSRCADDR: Invalid Source Address. Your system is setting
the Type Of Number (TON) to 2 which is a "National Number" but it
appears that you are trying to send it an "International Number"
as represented by the "+" in front of the "international-number"
formatted source address.

In additon, your Numbering Plan Identifier (NPI) is set to 3
which is "Data numbering plan (X.121)". But, I haven't seen an
X.121 number ever begin with a "+". This leads me to believe that
you source address is not using the X.121 addressing plan but it is
really using the ISDN/E.164 numbering plan.

Try either to remove the "+" from the source address or setting
the TON to 1 (international number) via:
  source-addr-ton = 1
and the NPI to 1 (ISDN/E.164) via:
  source-addr-npi = 1
in your "smsc = smpp" section of your configuration file.

You might be able to get away with the NPI still set to 3 (X.121)
since I've seen some operators use just the ISDN/E.164 number
as the data address (when the premium SMS service only had one price).

See ya...

d.c.

Reply via email to