[sr-dev] [kamailio/kamailio] alias_db_lookup is returning `-1` if result is not found. Documentation implies it should return false. (#2517)

Fred Posner notifications at github.com
Mon Oct 19 21:14:26 CEST 2020


```
if (alias_db_lookup("DbAliases")) {
   # alias found / r-uri changed
} else {
   # not found
}
```

You could also use case or other methods as well... but in essence you're setting the $vn(alias_found) to the value... so there will be a value in most cases... positive or negative.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2517#issuecomment-712385906
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201019/a3dd6cb3/attachment.htm>


More information about the sr-dev mailing list