[solved] SMS sending failed with Kannel getaway

Hi, @anton, How are you?
I am getting SMS sending failed. Can you please take this log and let me know what I miss? My Kannel and playSMS on the same server. Also, I have successfully added credit to my playSMS.

26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms # start uid:1 sender_id:[1] smsc:
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L3 sendsms # maxlen:1530 footerlen:7 footer:[ @admin] msglen:49 message:[Hello #Rakib#, please hurry up, boss summons us !]
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms_queue_create # saving queue_code:f21a8c332f597bf229a307d6c080f060 src:1 scheduled:2021-05-02 09:46:40
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms_queue_create # saved queue_code:f21a8c332f597bf229a307d6c080f060 id:13
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[+525541725761]
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+525541725761]
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+525541725761 default_rate:0.1
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:56 unicode:0 to:+525541725761 enable_credit_unicode:0 count:1 rate:0.1 charge:0.1
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0.1
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms_queue_push # saving queue_code:f21a8c332f597bf229a307d6c080f060 dst:+525541725761
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms_queue_push # saved queue_code:f21a8c332f597bf229a307d6c080f060 smslog_id:11
26.144.184.118 my.rakibulinux.com 2021-05-02 09:46:40 PID608e75000ae21 admin L2 sendsms # end queue_code:f21a8c332f597bf229a307d6c080f060 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsmsd # start processing queue_code:f21a8c332f597bf229a307d6c080f060 chunk:0 queue_count:1 sms_count:1 scheduled:2021-05-02 09:46:40 uid:1 gpid:0 sender_id:1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsmsd # sending queue_code:f21a8c332f597bf229a307d6c080f060 smslog_id:11 to:+525541725761 sms_count:1 counter:1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 sendsms_intercept # msgtemplate modified sms_sender:[1] sms_footer:[@admin] sms_to:[+525541725761] sms_msg:[Hello #Rakib#, please hurry up, boss summons us !] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[f21a8c332f597bf229a307d6c080f060] smsc:
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 outgoing_hook_sendsms_intercept # no SMSC found uid:1 parent_uid:0 from:1 to:+525541725761
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 recvsms_process # using default SMSC smsc:[smpp1]
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsms_process # start
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+525541725761 default_rate:0.1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:56 unicode:0 to:+525541725761 enable_credit_unicode:0 count:1 rate:0.1 charge:0.1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 simplerate_hook_rate_cansend # allowed user uid:1 sms_to:+525541725761 adhoc_credit:1000 count:1 rate:0.1 charge:0.1 adhoc_balance:999.9
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsms # saving smslog_id:11 u:1 parent_uid:0 g:0 gw:kannel smsc:smpp1 s:1 d:+525541725761 type:text unicode:0 status:0
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsms_process # saved smslog_id:11 id:11
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 sendsms # final smslog_id:11 gw:kannel smsc:smpp1 message:Hello #Rakib#, please hurry up, boss summons us ! @admin len:56
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 kannel_hook_sendsms # enter smsc:smpp1 smslog_id:11 uid:1 to:+525541725761
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 dlr # isdlrd:1 smslog_id:11 p_status:2 uid:1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 kannel__outgoing # end smslog_id:11 p_status:2
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 simplerate_hook_rate_deduct # enter smslog_id:11
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+525541725761 default_rate:0.1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:56 unicode:0 to:+525541725761 enable_credit_unicode:0 count:1 rate:0.1 charge:0.1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 simplebilling_hook_billing_post # saving smslog_id:11 rate:0.1 count:1 charge:0.1
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 simplebilling_hook_billing_post # saved smslog_id:11 id:3
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 simplerate_hook_rate_deduct # deduct successful uid:1 parent_uid:0 smslog_id:11
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsms_process # end
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 sendsms_throttle_count # throttle bucket exists start:2021-05-02 09:39:56 sum:1 limit:1000000000
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsmsd # result queue_code:f21a8c332f597bf229a307d6c080f060 to:+525541725761 flag:1 smslog_id:11
    • 2021-05-02 09:46:40 PID608e75009bc86 - L3 sendsms_throttle_isoverlimit # under quota not overlimit sum:2
    • 2021-05-02 09:46:40 PID608e75009bc86 - L2 sendsmsd # finish processing queue_code:f21a8c332f597bf229a307d6c080f060 uid:1 sender_id:1 queue_count:1 sms_count:1
    • 2021-05-02 09:46:41 PID608e71d3e7dfd - L3 dlrd # id:3 smslog_id:11 p_status:2 uid:1
    • 2021-05-02 09:46:41 PID608e71d3e7dfd - L2 simplerate_hook_rate_refund # start smslog_id:11
    • 2021-05-02 09:46:41 PID608e71d3e7dfd - L2 simplebilling__rollback # checking smslog_id:11
    • 2021-05-02 09:46:41 PID608e71d3e7dfd - L2 simplebilling__rollback # saving smslog_id:11 id:3
    • 2021-05-02 09:46:41 PID608e71d3e7dfd - L2 simplebilling__rollback # saved smslog_id:11

Kannel returns status failed. So check your Kannel log what happened.

Do tail -f.... kannel log while testing.

There are afew posts about how to debug in this forum, use tail command etc…

Anton

Hi, @anton, Thanks for the fast reply. Now i am getting a new log. Can you please told me what happens? I am not getting SMS on my phone.

26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms # start uid:1 sender_id:[1] smsc:[]
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L3 sendsms # maxlen:1530 footerlen:7 footer:[ @admin] msglen:46 message:[Hello Rakib, please hurry up, boss summons us!]
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms_queue_create # saving queue_code:1977f5bd4204cdd42a1f8353681a3268 src:1 scheduled:2021-05-02 14:02:26
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms_queue_create # saved queue_code:1977f5bd4204cdd42a1f8353681a3268 id:19
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[01704193708]
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+8801704193708]
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L3 simplerate_hook_rate_getbyprefix # rate not found to:+8801704193708 default_rate:0.1
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:53 unicode:0 to:+8801704193708 enable_credit_unicode:0 count:1 rate:0.1 charge:0.1
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms # dst_count:1 sms_count:1 total_charges:0.1
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms_queue_push # saving queue_code:1977f5bd4204cdd42a1f8353681a3268 dst:+8801704193708
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms_queue_push # saved queue_code:1977f5bd4204cdd42a1f8353681a3268 smslog_id:17
26.144.184.118 my.rakibulinux.com 2021-05-02 14:02:26 PID608eb0f220f91 admin L2 sendsms # end queue_code:1977f5bd4204cdd42a1f8353681a3268 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0

Hello, @anton, I see all SMS is going to View SMS queue. Also, it’s not sending to my number.

Your playsmsd is not running. Queues cleared ny playsms daemon.

Anton

Hi, @anton, How I can run playsmsd. You can see my playsmsd is ruinnning. But still SMS is going to View SMS queue.

It’s fixed, @anton Thanks

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.