You can see whether 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)
Calls to blocked countries
API calls to blocked countries are rejected with HTTP response code 403 and the error message Calls to this destination country are barred.
Calls initiated with the Dial XML are dropped automatically. The hangup cause listed in the CDR for such calls is set to Destination Country Barred (Code 2030).
Learn more about Plivo hangup causes in our documentation.
Calls to blocked numbers
API calls to blocked numbers are rejected with HTTP response code 403 and the error message Calls to this destination number are barred.
Calls initiated with the Dial XML are dropped automatically. The hangup cause listed in the CDR for such calls is set to Destination Number Barred (Code 2040).
For more information on outbound voice geo permissions, see our reference documentation.