Question:

How do we find out the Circle and the Mobile Operator for a number that's calling in? There is a hack available that provides this in a webpage, but we need this as part of the Exotel API.


Answer:

If a human needs to find this on a browser, please use our phone number lookup page. or you can also check from this link.

If you have to do this inside an application, you could use our phone number lookup API. The DND tag in the response is what you are looking for. 


DND scrubbing:

You could also use this API to effectively do DND scrubbing. For all the numbers in your list, Repeatedly (with a time gap, say 3 seconds) query this API and based on the value of the DND tag, store it in a new list. The new list is now your list of DND-free phone numbers. 


Sample PHP code for this DND scrubber is available in Github. 



Contact us: 


If you have any questions or concerns, please connect with us using the chat widget on your Exotel Dashboard or Whatsapp us on 08088919888