Fetch contact name from phone number

Hello,

I’ve a custom doctype with a field name phone number that’s populated from external source. How can I fetch the contact name associated with this phone number?

Thank you.