Try using \n as newline char.
Consider that you need to url-encode the text on sendsms api url

BR

Sent from my BlackBerry 10 smartphone.
From: Amir Mahmoud
Sent: Κυριακή, 30 Ιουλίου 2017 - 14:36
To: users
Subject: Re: Unable to render line break [generic SMSC type]


Hello,

Had anyone encountered this issue ? is it bug in rendering the line break while 
using generic SMSC type ?

Regards,
Amir

On 25 July 2017 at 21:32, Amir Mahmoud 
<amir.mahm...@egyptlinx.com<mailto:amir.mahm...@egyptlinx.com>> wrote:
Hello dears,

My kannel GW is configured with generic system-type directive in the SMSC group 
to propagate the submitted SMSs to HTTP server.

It works properly but seems having problem in propagating the SMSs that contain 
line break chars.

I'm trying to send this sms
"test1
test2
test3"

The bearerbox log shows that the sms received properly,
2017-07-25 20:36:35 FAILED Send SMS [SMSC:generic1] [SVC:vf9999bulk] [ACT:] 
[BINF:] [FID:] [META:] [from:Test1] [to:201xxxxxxxxx] [flags:-1:2:-1:-1:-1] 
[msg:38:00740065007300740031000D000A00740065007300740032000D000A00740065007300740033]
 [udh:0:]


But the access log of my HTTP server shows that the propagated SMS from kannel 
is,
"%00t%00e%00s%00t%001%00+%00+%00t%00e%00s%00t%002%00+%00+%00t%00e%00s%00t%003"

I have no idea why kannel replaces line break chars with space chars, Do you 
have any insights about what may cause this issus ?

Regards,
Amir

Reply via email to