Summary:ASTERISK-07213: Error in the math expressions with strings with non-standard characters
Reporter:Jon Brüel (jb)Labels:
Date Opened:2006-06-21 05:21:05Date Closed:2006-07-05 10:45:13
Versions:Frequency of
Description:Using e.g: GotoIf($["${callername}" != ""]?20:19) where callername includes non-standard characters, e.g. Scandinavian characters: "--TÆØÅæøå-718" gives an syntax error:

unexpected TOK_NE, expecting TOK_MINUS or TOK_COMPL or TOK_LP or TOKEN;
Input: "--TÆØÅæøå-718" != ""

Such characters cannot be avoided because the characters are often present in names i Europe - this is data entered by the users and cannot be controlled centrally.  
Comments:By: Joshua C. Colp (jcolp) 2006-06-21 11:19:52

We are aware that the text handling inside of Asterisk is not friendly with characters from other countries for example. An effort is being made to solve this, but thanks for your bug note anyway. Unfortunately I have no ideas myself on how to solve your problem immediately but you might try the users mailing list to see if others have had this problem and have solved it. Thanks!

By: Jon Brüel (jb) 2006-07-04 02:59:39

I'll like to know when the "effort is being made to solve this" is likeky the solve the problem?
As an alternative, we could assign resources to solve the problem, and you may have an opinion as to how difficult it is to solve? In other words, if you already know that the solution will require digging into several modules, it wouldn't worth while for us to put fresh and relatively unexperienced (w.r.t. Asterisk) resources into solving it.

By: Joshua C. Colp (jcolp) 2006-07-04 10:15:03

There is no set schedule and it's VERY hard. Asterisk is not international compatible when it comes to characters at all. You would have to totally change many things everywhere. There is even a mailing list for this, http://lists.digium.com/mailman/listinfo/asterisk-i18n

By: Jon Brüel (jb) 2006-07-04 10:40:57

Point taken. Still, though, it worked in Asterisk version 1.0.X. And it is really nasty, when new and rather trivial errors pop up in new vesions. Anyhow I'll contaxt the mailing list.

By: Joshua C. Colp (jcolp) 2006-07-04 10:43:29

If I can remember back that far the stuff responsible for gotoif and others was changed and became more strict, but don't quote me on that... it was awhile ago.