Hey Peter --

Sorry nobody else wrote you back to help you out sooner.

I figured out what your problem was.  Mobileway wants source-addr-ton to be
1 or 5.  What is the acronym TON (it's definition) mean?  Type of Number.
What is NPI?  Numbering Plan Identifier.  Read more here, since these
abbreviations aren't in the Kannel Manual anywhere:
    http://www.dreamfabric.com/sms/type_of_address.html

So what was your final SMPP setup for Mobileway?

    # MobileWay SMPP gateway
    group = smsc
    smsc = smpp
    host = 62.80.xxx.xxx
    port = xxxx
    transceiver-mode = yes
    smsc-username = "username"
    smsc-password = "password"
    system-type = "VMA"
    address-range = ""
    enquire-link-interval=600
    reconnect-delay=10
    source-addr-autodetect = no
    source-addr-ton = 5
    source-addr-npi = 0

Very nice!  I guess Kannel figured when you were sending "12345" as the
source address, it thought the TON should be 2, or a "National Number"
which is really what you wrote.  Even when you tried "+17035551212" Kannel
thought this was also a TON of 2, defined as "National number. Prefix or
escape digits shall not be included."  I guess the +1 didn't make it an
"International Number."  Even when you tried doing a word, it thought it
was a 2:

    2004-05-03 10:43:55 [7] DEBUG:   source_addr_ton: 2 = 0x00000002
    2004-05-03 10:43:55 [7] DEBUG:   source_addr_npi: 1 = 0x00000001
    2004-05-03 10:43:55 [7] DEBUG:   source_addr: "mobileway"

Strange, eh?  Oh well.  That fixed it.  Oh and by the way, always prefix
your destination number with the country code for Mobileway.  +12125551212
because that will help.

Oh yeah, the Message ID returned after you submit an SMS:

    2004-05-03 14:16:00 [6] DEBUG:   message_id: "47550FE7"

It's in Hex -- convert it to decimal and you'll have what Mobileway calls
their "OrderID Number."

Hope that helps!  Good luck with Kannel Peter!

Peter

On Thu, 29 Apr 2004, Peter Beckman wrote:

> 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/
> ---------------------------------------------------------------------------
>

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

Reply via email to