Gang,
It appears that the new 1.2 function, DB_EXISTS returns an integer, not a string as the documentation states.
voip-info.org/wiki/index.php … +db_exists
[quote]Description: DB_EXISTS(/)
This function will check to see if a key exists in the Asterisk
database. If it exists, the function will return “1”. If not,
it will return “0”. Checking for existence of a database key will
also set the variable DB_RESULT to the key’s value if it exists.
Return value: Returns the resulting string. [/quote]
This works: (match return 0)
This does not work: (match return “0”)
Is there something special about how functions are matched on returns? a documentation error?
Thanks,
Lonnie