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.
from_number: Your Retell number in E.164 format (e.g., "+14157774444")(1)
to_number: The destination number in E.164 format (e.g., "+12137774445")(1)
override_agent_id: The agent ID to handle this call (e.g., "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD")(1)
Phone Numbers Tab:
The Phone Numbers tab should be visible in your dashboard by default.(2) If you’re not seeing it, there may be a configuration issue with your account.
Common Issues:
Ensure your from_number includes the “+” prefix in E.164 format(1)
Verify your phone number is properly connected in the dashboard(2)