SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu Mar 28, 2024 12:19
SMSTools3 Community » Help and support Bottom

[answered] sms message with line break

  This topic is locked

Page:  1

Author Post
Member
Registered:
May 2010
Location: United Kingdom
Operating system name and version: debian 5
Version of smsd: 3.1.8
Smsd installed from: sources
Name and model of a modem / phone: siemens M55
Interface: USB

Hi..
my smstools3 is working fine, but I'm desperate how to add line break support on it.
been read couple guide on google to add 0x0A on the message don't solve the problem.

so maybe any one can help me, maybe theres configuration that I need to add?
thanks..

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Sorry, but I did not understand your question... :(

There is a support for line breaks, as the character LF (0x0A) and CR (0x0D) is included in the GSM 03.38 character set. For example:
# hexdump -C < /tmp/sms
00000000 54 6f 3a 20 33 35 38 34 30 31 32 33 34 35 36 37 |To: 358401234567|
00000010 0a 0a 46 69 72 73 74 20 6c 69 6e 65 2e 0a 53 65 |..First line..Se|
00000020 63 6f 6e 64 20 6c 69 6e 65 2e 0a 0a 46 6f 75 72 |cond line...Four|
00000030 74 68 20 6c 69 6e 65 2e |th line.|
Or did you mean that your handset does not show line breaks, even when they are included in the message? In this case nothing can be done.

Member
Registered:
May 2010
Location: United Kingdom
Topic owner
thank you for your reply keke,
yes thats what I mean, how to add line break on sms??
is it just add 0a char inside sms?? cause when I try it
it doesn't add line break.

I'm using playsms to send the sms..
thanks..

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Ok, it's a feature of playSMS...

In the file lib/fn_sendsms.php there are lines:
$sms_msg = str_replace("\r","",$sms_msg);
$sms_msg = str_replace("\n","",$sms_msg);


I do not know why it is designed to remove line breaks. If those characters are not removed, the SMS is sent correctly.

Member
Registered:
May 2010
Location: United Kingdom
Topic owner
Hi keke,
I try it and it works..
But how can I send sms via 'sendsms' tool (command line) with line break support??

thanks..

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Write a text as a command line argument and use quotation marks. Then just press Enter when a line break is required:

# sendsms 358401234567 "First line.
> Second line.
>
> Fourth line."

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.