Re: [Smslink-users] Newline character in SMS message
Status: Beta
Brought to you by:
panderss
|
From: Jeff M. <je...@te...> - 2008-06-03 17:23:48
|
Hi Philippe, Thanks for your continued efforts on this. Using 0.56b-4pre, it works great using a file and the -f option and with the -m command line option. One note is that with the 2 cell carriers I tested with, you only need \r or \n. \r\n works too, but either one by itself will get both a carriage return and a newline. I will keep an eye out for your next email about the stdin input method. Thanks! Jeff ----- Original Message ----- From: "Philippe Andersson" <pa...@ib...> To: "Jeff Meek" <je...@te...> Cc: <sms...@li...> Sent: Tuesday, June 03, 2008 3:07 AM Subject: Re: [Smslink-users] Newline character in SMS message Hello again, Jeff, A new pre-release version of 0.56b-4 is available for you to test in the developers section of the web site: <http://smslink.sourceforge.net/archive/devel/> The README file available in the same directory lists the changes since the last official release. The server will now properly translate special characters embedded in outgoing messages, using the "C" syntax (i.e. \n, \r, \t, etc.). The command-line client will also support those in 2 ways: - a message specified on the command-line (the '-m' option) is sent as-is. If you want a newline in it, put a "\r\n" sequence. - a message read from file (the '-f' option) will be converted: all newline characters will be replaced with a "\r\n" sequence. I remember that you would have liked to be able to pipe your message into "sendsms". This feature is not available yet, but I'll start working on this while you test the new release. Reading from stdin will behave as reading from file where special characters are concerned. HTH Cheers. Bye. Ph. A. Jeff Meek wrote: > Hi Philippe, > > We definitely need to be able to format the message that we are sending. A > version of SMSLink that supports a newline would be terrific. Let me know > when you have one ready to test and I'll give it a go. > > Thanks, > Jeff > > ----- Original Message ----- > From: "Philippe Andersson" <pa...@ib...> > To: "Jeff Meek" <je...@te...> > > Hello again, Jeff, > > I think I have a working solution. I'll prepare a new "pre-release" tar > file for 0.56b-4 this evening and make it available on the site > tomorrow. I'll let you know when the file is available and you can test it. > > HTH > > Cheers. Bye. > > Ph. A. > > > Jeff Meek wrote: >> Hi Philippe, >> >> It is specific to SMSLink. If I talk to the modem directly, I can do: >> AT+CMGS="123456789" <cr> >> first line<cr> >> 2nd line<cr> >> 3rd line<cr><ctrl-Z> >> When the SMS is received, it will properly show up as >> first line >> 2nd line >> 3rd line >> >> I can't find any way to do the same thing with SMSLink. I would prefer to >> use stdin (i.e. sendsms -f -), but I can't get it to work anyway I have >> tried it. SMSLink changes any special characters to a space, so a "/r" >> turns into just " r". >> >> Thanks, >> Jeff >> >> ----- Original Message ----- >> From: "Philippe Andersson" <pa...@ib...> >> To: "Jeff Meek" <je...@te...> >> Cc: <sms...@li...> >> Sent: Friday, May 30, 2008 10:34 AM >> Subject: Re: [Smslink-users] Newline character in SMS message >> >> Hello Jeff, >> >> Jeff Meek wrote: >>> This seems like an easy question, but I didn't find it anywhere in the >> docs, >>> email archives or google. >>> >>> How do I insert a newline or line break into the sms message? >>> I have tried sending a plain text file with the line breaks, backslash-n, >>> %-n, ^n, ctrl-n, etc. >>> The message always gets concatenated into a single line of text. >>> >>> The docs for the AT+CMGS command says any ascii character can be sent >> except >>> for ctrl-z. How do I send a line break? >> Is your question specific to SMSLink (i.e. "how will SMSLink treat >> embedded newline characters") or is this a generic question about the >> SMS protocol ? >> >> Ph. A. >> >> > -- *Philippe Andersson* Unix System Administrator IBA Particle Therapy | Tel: +32-10-475.983 Fax: +32-10-487.707 eMail: pa...@ib... <http://www.iba-worldwide.com> |