CallerID Lookup Sources - caching?

Distro Version - 5.211.65-11
Asterisk - 11.8.1

Looks like caching enabled on the CallerID Lookup Sources puts the name/number in the AST database phonebook. Is there a way to tell it to not bother to lookup externally if the number is already in the phonebook? Or ideally, only lookup if the number hasn’t been checked in X days.


After playing with it a while, it would be best for me to not lookup and replace the number in the phonebook. It allows for override of bad callerid data centrally.

Found a superfecta solution. Didn’t work initially because curl calls were timing out. Turns out ipv6 was enabled when I built the box (won’t do that again) and slowing the lookup. All good now.