playSMS Forum

When sending SMS to Twilio with a content of more than 160 characters, SMS is not sent

(unoc_u34) #1

Hello Anton! The next problem I’ve cut is =). If you send an SMS from the Twilio dashboard that contains 160 or more characters, the SMS reaches the addressee. If the same SMS is sent from PlaySMS, the SMS does not reach

Log output:
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms # start uid:17 sender_id:[SMSd] smsc:[]
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L3 sendsms # maxlen:3672 footerlen:0 footer:[] msglen:276 message:[dasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasd]
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms_queue_create # saving queue_code:43db16a240e1f1df1adc0cf10422eb5e src:SMSd scheduled:2019-04-04 10:38:13
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms_queue_create # saved queue_code:43db16a240e1f1df1adc0cf10422eb5e id:54636
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L3 sendsms_manipulate_prefix # before prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L3 sendsms_manipulate_prefix # after prefix manipulation:[+998935217698]
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:276 unicode:0 to:+998935217698 enable_credit_unicode:0 count:2 rate:0.01 charge:0.02
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms # dst_count:1 sms_count:2 total_charges:0.02
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms_queue_push # saving queue_code:43db16a240e1f1df1adc0cf10422eb5e dst:+998935217698
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms_queue_push # saved queue_code:43db16a240e1f1df1adc0cf10422eb5e smslog_id:56540
192.168.100.216 smsd.uz 2019-04-04 10:38:13 PID5ca5de9599c58 tr7 L2 sendsms # end queue_code:43db16a240e1f1df1adc0cf10422eb5e queue_count:1 sms_count:2 failed_queue:0 failed_sms:0

    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L2 sendsmsd # start processing queue_code:43db16a240e1f1df1adc0cf10422eb5e chunk:0 queue_count:1 sms_count:2 scheduled:2019-04-04 10:38:13 uid:17 gpid:0 sender_id:SMSd
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L2 sendsmsd # sending queue_code:43db16a240e1f1df1adc0cf10422eb5e smslog_id:56540 to:+998935217698 sms_count:2 counter:1
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 sendsms_intercept # msgtemplate modified sms_sender:[SMSd] sms_footer:[] sms_to:[+998935217698] sms_msg:[dasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasd] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[43db16a240e1f1df1adc0cf10422eb5e] smsc:[]
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 outgoing_hook_sendsms_intercept # found SMSCs:[twilio]
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[twilio] uid:17 parent_uid:0 from:SMSd to:+998935217698
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 sendsms_intercept # outgoing modified sms_sender:[SMSd] sms_footer:[] sms_to:[+998935217698] sms_msg:[dasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasd] uid:[17] gpid:[0] sms_type:[text] unicode:[0] queue_code:[43db16a240e1f1df1adc0cf10422eb5e] smsc:[twilio]
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L2 sendsms_process # start
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 simplerate_hook_rate_getbyprefix # rate not found to:+998935217698 default_rate:0.01
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 simplerate_hook_rate_getcharges # uid:17 u:tr7 len:276 unicode:0 to:+998935217698 enable_credit_unicode:0 count:2 rate:0.01 charge:0.02
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L2 simplerate_hook_rate_cansend # allowed user uid:17 sms_to:+998935217698 adhoc_credit:0.03 count:2 rate:0.01 charge:0.02 adhoc_balance:0.01
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L2 sendsms # saving smslog_id:56540 u:17 parent_uid:0 g:0 gw:twilio smsc:twilio s:SMSd d:+998935217698 type:text unicode:0 status:0
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L2 sendsms_process # saved smslog_id:56540 id:54118
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 sendsms # final smslog_id:56540 gw:twilio smsc:twilio message:dasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasdasdasfsadfasdasd len:276
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 twilio_hook_sendsms # enter smsc:twilio smslog_id:56540 uid:17 to:+998935217698
    • 2019-04-04 10:38:14 PID5ca5de960fe88 - L3 twilio_hook_sendsms # sendsms start
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L2 twilio_hook_sendsms # sent smslog_id:56540 message_id: status:400 error:400|21605|The message body exceeds the 160 character limit. smsc:[twilio]
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L3 dlr # isdlrd:1 smslog_id:56540 p_status:2 uid:17
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L3 dlr # isdlrd:1 smslog_id:56540 p_status:2 uid:17
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L3 twilio_hook_sendsms # sendsms end
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L2 sendsms_process # fail no hook for sendsms
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L2 sendsms_process # end
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L2 sendsmsd # result queue_code:43db16a240e1f1df1adc0cf10422eb5e to:+998935217698 flag:2 smslog_id:56540
    • 2019-04-04 10:38:15 PID5ca5de960fe88 - L2 sendsmsd # finish processing queue_code:43db16a240e1f1df1adc0cf10422eb5e uid:17 sender_id:SMSd queue_count:1 sms_count:2
    • 2019-04-04 10:38:16 PID5ca50cd21b3d2 - L3 dlrd # id:104969 smslog_id:56540 p_status:2 uid:17
    • 2019-04-04 10:38:16 PID5ca50cd21b3d2 - L3 dlrd # id:104970 smslog_id:56540 p_status:2 uid:17
0 Likes

(Edilson Spessoto) #2

Look what twilio says

  • 2019-04-04 10:38:15 PID5ca5de960fe88 - L2 twilio_hook_sendsms # sent smslog_id:56540 message_id: status:400 error:400|21605|The message body exceeds the 160 character limit. smsc:[twilio]
0 Likes

(Anton Raharja) #3

You can find out from here, ask Twilio, there must be information somewhere, maybe on their API doc

Anton

0 Likes

(unoc_u34) #4

0 Likes

(unoc_u34) #5

as they say, according to ideas more than 160 characters should be sent by the second SMS, if I understand correctly

0 Likes

(Anton Raharja) #6

are you using free trial account ?

anton

0 Likes

(unoc_u34) #7

No, updated account

Regards,
Jamshid Tursunov

0 Likes

(Anton Raharja) #8

Maybe you can check from the usage menu in Twilio, and ask their support what happened. I read their latest doc, it should be able to send up to 1600 chars in one go as segmented SMS.

anton

0 Likes

(unoc_u34) #9

For information, copy the letter that I wrote to them.
Can someone help if he wants to opt for Twilio

I have a number of problems, please help.
Hello! I have a service that is associated with Twilio using an API.
I have a number of problems that try to fully consider Twilio as a potential partner.
If you help, I will cooperate with you most effectively.
By the way, the problems themselves:

  • does not work (not displayed) alphanumeric sender id
  • Chaser API turns out to send SMS more than 160 characters I get an error: The message body exceeds the 160 character limit.
  • When sending characters (both through the API and directly through the Twilio web interface), they are not interpreted correctly, ie:
    When sending: ~! @ # $% ^ & * () _ +} {| "?> <,. /; '\ []
    I get: -!a#S% 8*() +) (| (?) (,. /; \ ()
    Symbols:
    ^ _ ’ are interpreted to the space

Please help if there is a possibility to solve these problems. Thank.

0 Likes