[asterisk-users] OT - SIP MESSAGE, newline chars and formatting

Matt Riddell lists at venturevoip.com
Wed Apr 8 22:44:25 CDT 2009


On 7/04/2009 9:41 p.m., Olivier wrote:
> Hi,
>
> I'm using a SIP phone (Thomson ST2030) which is able to display text
> received though Asterisk's SendText() application.
>
> I'm using this to display from Asterisk "Forwarded to 0123456789" whenever a
> user forwards his calls to another number or extension.
> Test is displayed with white letters on black background.
>
> What I can't do at the moment is erasing this "Forwarded to 0123456789" text
> when user cancels previous forwarding.
> If I'm sending a string full of space chars, I've got an ugly string of
> black rectangles on LCD screen.
>
> Phone vendor says it can be done sending a "single carriage return" string
> to the phone (using usual SendText, I suppose) but either :
> A- I can't build correctly such "single carriage return" string,
> B- I can't send it (I shouldn't use SendText()),
> C- or I misunderstood vendor's advice.

Have you tried with \r\n, \n, or even maybe <br /> and <br>

-- 
Kind Regards,

Matt Riddell
Director
_______________________________________________

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)



More information about the asterisk-users mailing list