- new function alias_db_find("table","input_var","output_var") to lookup for a DB alias using as input whatever value from a Pseudo-Var and placing the result in a different Pseudo-Var;
Similar to alias_db_lookup(), but it does not use and affect the current SIP mesassge (source and desitnation for alias lookup may be whatsoever).
Based on the patch 2713792, submited by Vladimir Romanov.
- both alias_db_lookup() and alias_db_find() may take a third param, a list of flags (char based flags):
'd' - do not use domain part in the lookup (by default domain is used)
'r' - do revers lookup - the input is the ID URI and the result is alias URI (normally the input is the alias URI and the result is the ID URI)