How do I know if a call was blocked due to geo-permissions?

See if a call was blocked due to voice geo-permissions by checking the hangup cause in your voice logs. You can filter logs using the following hangup causes:

  • Destination Country Barred (Code 2030)
  • Destination Number Barred (Code 2040)

Screenshot.png

Calls to blocked countries:

API calls to blocked countries will be rejected with HTTP response code 403 and the error message "Calls to this destination country are barred".

Calls initiated with the Dial XML will be dropped automatically. The hangup cause (in CDR) for such calls will be set to "Destination Country Barred" (Code 2030).

Learn more about Plivo hangup causes here.

Calls to blocked numbers

API calls to blocked numbers will be rejected with HTTP response code 403 and the error message "Calls to this destination number are barred".

Calls initiated with the Dial XML will be dropped automatically. The hangup cause (listed in the CDR) for such calls will be set to "Destination Number Barred" (Code 2040). 

For more information, see our detailed reference document.

Was this article helpful?
0 out of 0 found this helpful
Didn’t find what you are looking for? Create new ticket