[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Gerrit Jacobsen <g_jacobsen@y...>
 Subject :  Pleaaaase 0, 1 as boolean possible in Yate
 Date :  Fri, 2 Apr 2010 10:10:42 +0000 (GMT)
Hello Yate team,

it would be fabulous if yate would accept 0 and 1 as boolean values.

String.cpp
..
static const char* str_false[] = { "false", "no", "off", "disable", "f", "0", 0 };
static const char* str_true[] = { "true", "yes", "on", "enable", "t", "1", 0 };
...
would fix this

It makes it much easier to insert boolean parameters into yate messages with the register module as DBs provide 0 and 1 as boolean answers.

Thanks for considering this.

Gerry




      


Hello Yate team,

it would be fabulous if yate would accept 0 and 1 as boolean values.

String.cpp
..
static const char* str_false[] = { "false", "no", "off", "disable", "f", "0", 0 };
static const char* str_true[] = { "true", "yes", "on", "enable", "t", "1", 0 };
...
would fix this

It makes it much easier to insert boolean parameters into yate messages with the register module as DBs provide 0 and 1 as boolean answers.

Thanks for considering this.

Gerry