Re: send-sms user: getting wrong SMSC

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Centrium GmbH
Message-ID <[email protected]>
Hi, 

it's simple , because bearerbox make "load balancing" :)

just add allowed-smsc-id or denied-smsc-id for each smsc group...

hope this help...

On Friday 28 March 2003 15:47, Rory Campbell-Lange wrote:
> I have two send-sms user accounts, each sending to a different SMSC (the
> same remote SMSC with different ton settings for each).
>
> Help gratefull received!
> Rory
>
> Kannel version 1.3.1
>
> smsbox shows the corrent send-sms account registered:
>     INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
>     INFO: sendsms used by <seas>
>     INFO: sendsms sender:<seas:87262> (127.0.0.1) to:< 447939150693>
> msg:<kannel short10> DEBUG: message length 14, sending 1 messages
>     DEBUG: Status: 202 Answer: <Sent.>
>
> However this doesn't get passed to the correct smsc group:
>     [7] DEBUG: SMPP[orangelong]: Manually forced source addr ton = 1,
> source add npi = 1 [7] DEBUG: SMPP[orangelong]: Manually forced dest addr
> ton = 1, dest add npi = 1 [7] DEBUG: SMPP[orangelong]: Sending PDU:
>     [7] DEBUG: SMPP PDU 0x8125d68 dump:
>     [7] DEBUG:   type_name: submit_sm
>     [7] DEBUG:   command_id: 4 = 0x00000004
>     [7] DEBUG:   command_status: 0 = 0x00000000
>     [7] DEBUG:   sequence_number: 2 = 0x00000002
>     [7] DEBUG:   service_type: NULL
>     [7] DEBUG:   source_addr_ton: 1 = 0x00000001
>     [7] DEBUG:   source_addr_npi: 1 = 0x00000001
>     [7] DEBUG:   source_addr: "87262"
>     [7] DEBUG:   dest_addr_ton: 1 = 0x00000001
>     [7] DEBUG:   dest_addr_npi: 1 = 0x00000001
>     [7] DEBUG:   destination_addr: "447939150693"
>     [7] DEBUG:   esm_class: 3 = 0x00000003
>     [7] DEBUG:   protocol_id: 0 = 0x00000000
>     [7] DEBUG:   priority_flag: 0 = 0x00000000
>     [7] DEBUG:   schedule_delivery_time: NULL
>     [7] DEBUG:   validity_period: NULL
>     [7] DEBUG:   registered_delivery: 0 = 0x00000000
>     [7] DEBUG:   replace_if_present_flag: 0 = 0x00000000
>     [7] DEBUG:   data_coding: 0 = 0x00000000
>     [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000
>     [7] DEBUG:   sm_length: 14 = 0x0000000e
>     [7] DEBUG:   short_message: "kannel short10"
>     [7] DEBUG: SMPP PDU dump ends.
>     [7] WARNING: SMPP: PDU NUL terminated string has no NUL.
>     [7] DEBUG: SMPP[orangelong]: Got PDU:
>     [7] DEBUG: SMPP PDU 0x8126328 dump:
>     [7] DEBUG:   type_name: submit_sm_resp
>     [7] DEBUG:   command_id: 2147483652 = 0x80000004
>     [7] DEBUG:   command_status: 10 = 0x0000000a
>     [7] DEBUG:   sequence_number: 2 = 0x00000002
>     [7] DEBUG:   message_id: NULL
>     [7] DEBUG: SMPP PDU dump ends.
>     [7] ERROR: SMPP[orangelong]: SMSC returned error code 0x0000000a in
> response to submit_sm.
>
>
> ########################################################################
> # CORE
> ########################################################################
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> wdp-interface-name = "*"
> log-file = "/tmp/bearerbox.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> access-log = "/tmp/access.log"
> store-file = "/tmp/kannel.store"
>
> ########################################################################
> # SMSC
> ########################################################################
> # SMSC
> group = smsc
> smsc-id = orangeshort
> smsc = smpp
> host = xxxxxx
> port = 8000
> smsc-username = "xxxxx"
> smsc-password = xxxxx
> system-type = "SMPP"
> dest-addr-ton = 1
> dest-addr-npi = 1
> source-addr-ton = 3
> source-addr-npi = 1
> # receive-port = 8000
>
> group = smsc
> smsc-id = orangelong
> smsc = smpp
> host = 193.36.81.53
> port = 8000
> smsc-username = "xxxxx"
> smsc-password = xxxxx
> system-type = "SMPP"
> dest-addr-ton = 1
> dest-addr-npi = 1
> source-addr-ton = 1
> source-addr-npi = 1
> # receive-port = 8000
>
> ########################################################################
> # SMSBOX
> ########################################################################
> group = smsbox
> bearerbox-host = localhost
> sendsms-port =  13002
> log-file = "/tmp/smsbox.log"
> log-level = 0
>
> ########################################################################
> # SMS SERVICE
> ########################################################################
>
> group = sms-service
> keyword = default
> get-url =
> "http://localhost/sms/receive.php?all=%a&time=%t&source=%p&receiver=%P&deli
>very=%d" max-messages = 1
>
> ########################################################################
> # SMS USER
> ########################################################################
>
> group = sendsms-user
> username  = seas
> password = seas
> forced-smsc = orangeshort
> # default-smsc = orangeshort
>
> group = sendsms-user
> username  = seal
> password = seal
> forced-smsc = orangelong
> # default-smsc = orangelong

-- 
Best Regards / Mit besten Grüßen aus Köln

Dipl.-Ing.
Alexander Malysh
___________________________________

Centrium GmbH
Ehrenstrasse 2
50672 Köln

Fon: +49 (0221) 277 49 240
Fax: +49 (0221) 277 49 109

email: [email protected]
web: http://www.centrium.de
msn: [email protected]
smime.p7s (application/pkcs7-signature, 2.5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.