I'm having the same problem here that was posted back on March 31st.
Running kannel 1.3.1, using an smsc setup with these three vars set:

    source-addr-autodetect = no
    source-addr-ton = 1
    dest-addr-ton = 1

Here is the full config for the SMSC:
    # SMSBOX SETUP
    group = smsbox
    smsbox-id = default
    bearerbox-host = localhost
    sendsms-port = 13013
    log-file = "/var/log/smsbox.log"
    log-level = 0
    access-log = "/var/log/sms-access.log"

    # SMSC CONNECTIONS
    group = smsc
    smsc = fake
    smsc-id = fake
    port = 10000
    #connect-allow-ip = 127.0.0.1

    # MobileWay SMPP gateway
    group = smsc
    smsc = smpp
    host = xx.xx.xxx.xxx
    port = xxxx
    receive-port = 0
    smsc-username = "username"
    smsc-password = "password"
    system-type = "VMA"
    address-range = ""
    enquire-link-interval = 120
    source-addr-autodetect = no
    source-addr-ton = 0x01
    dest-addr-ton = 0x01

(the 0x01 was a last ditch attempt to get it to set it as 1)

The failed SMS attempt:
2004-04-29 16:47:08 FAILED Send SMS [SMSC:SMPP:xx.xx.xxx.xxx:xxxx/xxxx:username:VMA] 
[SVC:tester] [ACT:] [from:703xxxxxxx] [to:571xxxxxxx] [flags:0:1:0:0:0] 
[msg:8:Testing3] [udh:0:]

Ideas on what I am doing wrong?

Beckman

This message was posted on March 31, 2004 by Jani Luukkanen and not answered:

> Hello list,
>
> I'm having issues of implementing special source_addr_ton which is required for 
> certain "Virtual SMSC" scenario.
>
> source_addr_ton should be 0x14 and dest_addr_ton 0x1
>
> When I set at kannel.conf:
>
> source-addr-ton = 14
> dest-addr-ton = 1
>
> result is this (The source address is correct, it should be in format
> <sender>0<certain idcode got from the received message>:
>
> 2004-03-31 12:22:16 [10] DEBUG: SMPP[lmt-v]: Sending PDU:
> 2004-03-31 12:22:16 [10] DEBUG: SMPP PDU 0x8122bb0 dump:
> 2004-03-31 12:22:16 [10] DEBUG: type_name: submit_sm
> 2004-03-31 12:22:16 [10] DEBUG: command_id: 4 = 0x00000004
> 2004-03-31 12:22:16 [10] DEBUG: command_status: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: sequence_number: 1 = 0x00000001
> 2004-03-31 12:22:16 [10] DEBUG: service_type: NULL
> 2004-03-31 12:22:16 [10] DEBUG: source_addr_ton: 2 = 0x00000002
> 2004-03-31 12:22:16 [10] DEBUG: source_addr_npi: 1 = 0x00000001
> 2004-03-31 12:22:16 [10] DEBUG: source_addr: "XXXXXXXX0102421255"
> 2004-03-31 12:22:16 [10] DEBUG: dest_addr_ton: 2 = 0x00000002
> 2004-03-31 12:22:16 [10] DEBUG: dest_addr_npi: 1 = 0x00000001
> 2004-03-31 12:22:16 [10] DEBUG: destination_addr: "371XXXXXX"
> 2004-03-31 12:22:16 [10] DEBUG: esm_class: 67 = 0x00000043
> 2004-03-31 12:22:16 [10] DEBUG: protocol_id: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: priority_flag: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: schedule_delivery_time: NULL
> 2004-03-31 12:22:16 [10] DEBUG: validity_period: NULL
> 2004-03-31 12:22:16 [10] DEBUG: registered_delivery: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: replace_if_present_flag: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: data_coding: 245 = 0x000000f5
> 2004-03-31 12:22:16 [10] DEBUG: sm_default_msg_id: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: sm_length: 0 = 0x00000000
> 2004-03-31 12:22:16 [10] DEBUG: SMPP PDU dump ends.
> 2004-03-31 12:22:16 [10] DEBUG: SMPP[lmt-v]: Got PDU:
> 2004-03-31 12:22:16 [10] DEBUG: SMPP PDU 0x8122bb0 dump:
> 2004-03-31 12:22:16 [10] DEBUG: type_name: submit_sm_resp
> 2004-03-31 12:22:16 [10] DEBUG: command_id: 2147483652 = 0x80000004
> 2004-03-31 12:22:16 [10] DEBUG: command_status: 10 = 0x0000000a
> 2004-03-31 12:22:16 [10] DEBUG: sequence_number: 1 = 0x00000001
> 2004-03-31 12:22:16 [10] DEBUG: message_id: NULL
> 2004-03-31 12:22:16 [10] DEBUG: SMPP PDU dump ends.
> 2004-03-31 12:22:16 [10] ERROR: SMPP[lmt-v]: SMSC returned error code 0x0000000a in 
> response to submit_sm.
>
> In short, source_addr_ton is set as 2(?) and therefor smsc rejects the
> request. Am I missing something on the configuration or why it isnt 14?
>
> Big appreciate for help,
>
> Regards,
>
> Jani

---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
[EMAIL PROTECTED]                             http://www.purplecow.com/
---------------------------------------------------------------------------

Reply via email to