Hello,
  where is your allowed prefix in SMSC ?

Regards
Mesbah

On Mon, May 24, 2021 at 7:06 PM Web Min <meweb...@gmail.com> wrote:

> Hello,
>
> I've spent a significant amount of time around this issue. I couldn't find
> any solution or hint on why getting DISCARDED SMS as below:
>
> 2021-05-02 00:25:30 2021-05-02 00:25:30 DISCARDED SMS [SMSC:] [SVC:]
> [ACT:] [BINF:] [FID:26][from:SellerAJ] [to:1946873251]
> [flags:-1:2:-1:-1:31] [msg:0:] [udh:0:]
> 2021-05-02 00:25:30 2021-05-02 00:25:30 Receive DLR [SMSC:] [SVC:] [ACT:]
> [BINF:] [FID:26][from:SellerAJ] [to:1946873251] [flags:-1:-1:-1:-1:16]
> [msg:12:NACK/no SMSC] [udh:0:]
> 2021-05-02 00:26:30 2021-05-02 00:25:30 DISCARDED SMS [SMSC:MySMSC] [SVC:]
> [ACT:] [BINF:] [FID:25][from:SellerAJ] [to:1946873251]
> [flags:-1:2:-1:-1:31] [msg:0:] [udh:0:]
> 2021-05-02 00:26:30 2021-05-02 00:26:30 Receive DLR [SMSC:MySMSC] [SVC:]
> [ACT:] [BINF:] [FID:25][from:SellerAJ] [to:1946873251]
> [flags:-1:-1:-1:-1:16] [msg:21:NACK/Retries Exceeded] [udh:0:]
>
> It is straightforward and it was working well with the same configuration
> since the last incident in STRASBOURG
>
> I'm connecting to SMPP using MySQL database and routing to the defined SMSC
>
> Kannel --> sqlbox ->  bearerbox -> smsc
>
> Here is the configuration:
>
> kannel.conf
>
> # core
> group = core
> admin-port = 13000
> smsbox-port = 13001
> wapbox-port = 13002
> store-type = spool
> store-location = /var/spool/kannel/store
> dlr-storage = mysql
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> sms-resend-freq = 30
> sms-resend-retry = 2
> sms-incoming-queue-limit = "-1"
> sms-outgoing-queue-limit = 9999999
> smsbox-max-pending = 999
> log-level=0
> log-file = /var/log/kannel/core.log
> access-log = /var/log/kannel/access-core.log
> access-log-format="%t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B]
> [FID:%F][from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u]"
>
>
> ################################################################################
> # dlr setup
> group = mysql-connection
> id = mydlr
> host = localhost
> port = 3306
> username = root
> password = rootpassword
> database = my_db
> max-connections = 25
>
> # dlr table structure
> group = dlr-db
> id = mydlr
> table = dlr
> field-smsc=dlr_smsc
> field-timestamp=dlr_timestamp
> field-destination=dlr_destination
> field-source=dlr_source
> field-service=dlr_service
> field-url=dlr_url
> field-mask=dlr_mask
> field-status=dlr_status
> field-boxc-id=dlr_boxc_id
>
>
> ################################################################################
> # smsbox
> group = smsbox
> bearerbox-host = localhost
> bearerbox-port = 13001
> sendsms-port = 13301
> global-sender = 001
> sendsms-chars = "0123456789+ "
> mo-recode = true
> http-request-retry = 10
> http-queue-delay = 60
> immediate-sendsms-reply = true
> log-level = 0
> log-file = /var/log/kannel/smsbox.log
> access-log = /var/log/kannel/access-smsbox.log
>
>
> ################################################################################
> group = sendsms-user
> default-smsc = MySMSC
> forced-smsc = MySMSC
> username = user
> password = password
> max-messages = 1000
> concatenation = true
>
> ################################################################################
> # SMS-SERVICE
> group = sms-service
> keyword = default
> #accept-x-kannel-headers = true
> #concatenation = true
> #omit-empty = true
> #catch-all = true
> max-messages = 1000
> #text = "Galaxy ROBOT by Zaib"
> #get-url = "
> http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q&smsc=%i
> "
>
>
> ################################################################################
> # smsc
> group = smsc
> smsc = smpp
> smsc-id = MySMSC
> allowed-smsc-id = MySMSC
> preferred-smsc-id = MySMSC
> interface-version = 34
> allowed-prefix = 1
> host = xx.xx.xx.xx
> port = 9876
> receive-port = 0
> smsc-username = smscuser
> smsc-password = smscpass
> system-type = sysType
> source-addr-ton = 5
> source-addr-npi = 1
> dest-addr-ton = 0
> dest-addr-npi = 0
> keepalive = 600
> reconnect-delay = 3
> enquire-link-interval = 30
> max-pending-submits = 1
> log-level = 0
> log-file = /var/log/kannel/smsc-transmitter.log
> msg-id-type = 0x01
> throughput = 50
> wait-ack = 240
> wait-ack-expire = 0x00
>
> Any idea would be appearited.
>

Reply via email to