[asterisk-dev] Re: Unicode in Text frames - how to fix?

Benny Amorsen benny+usenet at amorsen.dk
Mon Apr 30 14:11:16 MST 2007


>>>>> "TP" == Tim Panton <tim at mexuar.com> writes:

TP> So should we alter the IAX spec to specify the null byte is
TP> mandatory in a text frame and drop any that don't have '\0' as the
TP> last byte? I.e. enforce C's choices on IAX, but only in a single
TP> message type ???? Or should the IAX channel driver silently add a
TP> '\0' ?

If the text frame has a length associated with it, the most consistent
is to not send the 0, ever. Having two different ways to determine the
length only leads to bugs.

Of course there is the small matter of installed base to consider.


/Benny




More information about the asterisk-dev mailing list