Based on the available sources, your 404 error is likely due to an incorrect API endpoint. The correct endpoint for creating phone calls is /v2/create-phone-call, not /v1/phone-calls(1).
For your Asterisk AGI integration with Retell, you should use the Dial to SIP URI method since you have a custom telephony setup(2). The Retell SIP server URI is sip:sip.retellai.com(2).
Regarding PSTN enablement - based on a similar case, inbound PSTN calling requires workspace-level permissions that may need to be enabled by Retell support(3).
For direct assistance with workspace-level PSTN enablement:
You should be able to see a ‘Phone Numbers’ tab on your account, which is typically enabled by default for everyone. If you can’t see it, please share a screenshot of what you can see.
We are currently implementing Retell AI Voice integration with Asterisk (PSTN + SIP) for a production deployment and have completed all technical integration steps successfully.
Current Status (Verified & Tested)
Retell Agent voice enabled
Agent ID verified
API v2 /create-phone-call tested
Python AGI scripts built and tested
Flask webhook + Ngrok bridge tested
Local TTS (pico2wave) verified
Monitoring & logs validated
API calls are successfully registered in Retell dashboard
Blocking Issue
Outbound calls to Pakistan (PK) numbers fail with the following error:
Call country not supported: PK
This occurs even though:
API request is correctly formed
from_number is a US DID
Retell agent and API are functioning correctly for US calls
This indicates a workspace-level / carrier-level policy restriction, not an implementation issue.
Request
We request enablement of outbound calling to Pakistan (PK) for our workspace.
Workspace / Project Context
Usage Type: Production (AI Voice Agent)
Architecture: Asterisk + Retell API v2 (Callback Model)
Business Use Case: AI-assisted inbound/outbound calls, PIN verification, ledger queries, WhatsApp follow-ups
Billing: Pay-As-You-Go (ready to upgrade if required)
Technical Proof Available
We can provide:
Curl API test logs
Asterisk AGI logs
Dashboard screenshots showing registered calls
Working US outbound call recordings (Telnyx + Retell)
Please advise:
Whether PK outbound can be enabled for our workspace
Any required plan upgrade, documentation, or carrier approval
Estimated timeline for enablement
This is the final blocker before going live.
Looking forward to your guidance.
Best regards, PAK SAAIBAAN Rolling Stones / AI Customer Support Workspace: PAK SAAIBAAN
Based on the available documentation, I can provide guidance on configuring international calling for Pakistan.
Geographic Restrictions Configuration
Retell AI allows you to control which countries your phone numbers can make outbound calls to through the Allowed Outbound Countries setting(1). This is a phone number-level configuration that restricts outbound calls to specific countries(1).
To enable outbound calls to Pakistan, you need to configure your phone number’s allowed outbound countries list. You can do this in two ways:
Dashboard Configuration
Navigate to Phone Numbers in your Retell dashboard(1)
Click on the phone number you want to configure(1)
Under Allowed Outbound Countries, add Pakistan (PK) to the list(1)
Use ISO 3166-1 alpha-2 country codes (e.g., “PK” for Pakistan)(1).
Important Notes
The documentation indicates that certain countries are always blocked regardless of your configuration(1). However, Pakistan is not listed among the sanctioned countries that are automatically blocked(1).
If you need to remove all restrictions, you can set the list to null(1):
Try configuring your phone number’s allowed outbound countries list to include “PK” using either the dashboard or API method. If you continue experiencing issues after configuration, you can:
“Thanks. Confirmed. Our question is limited to inbound PK calls via Telecard → Telnyx → Retell. We now understand PK outbound is not supported. We’ll share a Call ID if any inbound call fails.”
Yes, the absence of a call_id when a call is rejected at the validation stage due to country restrictions is expected behavior(1). When geographic restrictions block a call before it’s initiated, no call record is created in Retell’s system(1).
The geographic restrictions feature automatically rejects calls from or to countries not on your allowed list(1). Since Pakistan (PK) is being blocked at this validation stage, the call never reaches the point where a call_id would be generated(1).
Your approach to use custom telephony (Telecard + Asterisk) with Retell as the AI layer is the correct solution for handling calls to Pakistan(1)(2). With custom telephony, you’ll use the Register Phone Call API to connect your telephony provider to Retell’s AI capabilities(3)(2).
For reference, the sanctioned countries that are always blocked regardless of configuration include Cuba (CU), Iran (IR), North Korea (KP), Syria (SY), Russia (RU), Belarus (BY), and Venezuela (VE)(1). Pakistan is not on this sanctioned list, so it can be supported through custom telephony integration(1).