<br><br><div class="gmail_quote">2009/4/8 Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tuesday 07 April 2009 23:38:08 Olivier wrote:<br>
> 2009/4/7 Mark Michelson <<a href="mailto:mmichelson@digium.com">mmichelson@digium.com</a>><br>
><br>
> > Philipp Kempgen wrote:<br>
</div><div class="im">> > > BTW (developer's question) is there a reason why SendText() resp.<br>
> > > sendtext_exec() refuses to send zero-length data?<br>
> ><br>
> > I can't point to any specific reason. I assume that whoever wrote the<br>
> > application probably thought that attempting to send zero-length data was<br>
> > pointless and that if no data were passed to the application, it likely<br>
> > was due<br>
> > to an error by the user.<br>
><br>
> The phone I'm working on (Thomson ST2030) would display in slow blinking,<br>
> inversed letters (white on black) any text received in SIP MESSAGE.<br>
> Display duration is unlimited.<br>
> To erase an old message, you must send a single carriage return (or maybe<br>
> an empty string).<br>
><br>
> I'm wondering how many phones behave like this ?<br>
><br>
> Maybe, sendtext should then be refactored to accommodate this.<br>
<br>
</div>What does the phone do when you send a single space?</blockquote><div> </div><div>It would display it as a black rectangle : as unfortunately, this phone displays text in inversed color (white letters on black background), a single space remains visible.<br>
<br>It seems I really need to send a carriage return ($0D in hexa) but I couldn't find a way to pass such string using SendText.<br><br>As suggested earlier, maybe an empty SIP MESSAGE would do the trick but as SendText rejects empty strings, I've not tested it yet. For that, maybe I could try to build my own custom SIP MESSAGE, faking a true SIP MESSAGE to double check if an empty string would be acceptable solution ?<br>
<br>(Note, that sending a carriage return must work as vendor handed to me a Wireshark capture for a "working SIP MESSAGE")<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
--<br>
<font color="#888888">Tilghman<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>