hey everyone ,
i am new to asterisk so forgive me for the silly question
i am building a voip solution , so i saw astrisk ASI can help me in this
i need guidence to build this endpoint using asterisk asi
Create a Call
Endpoint: https://localhost.com/v1/api/create-call
Parameters:
- to_ (required): The phone number to call.
- from_ (required): The caller ID to display.
- callbackurl (required): The URL to receive call status updates.
- apikey (required): Your API key for authentication.
- amd (optional): True/False answering machine detection (boolean).
Play Audio
Endpoint: https://localhost.com/v1/api/play-audio
Parameters:
- audiourl (required): The URL of the audio file to play.
- uuid (required): The unique identifier of the call.
Gather Audio
Endpoint: https://localhost.com/v1/api/gather-audio
Parameters:
- audiourl (required): The URL of the audio file to play.
- maxdigits (required): The maximum number of digits to collect (string).
- uuid (required): The unique identifier of the call.
Play Text
Endpoint: https://localhost.com/v1/api/play-text
Parameters:
- text (required): The text to convert to speech.
- voice (required): The voice to use for text-to-speech.
- uuid (required): The unique identifier of the call.
Gather Text
Endpoint: https://localhost.com/v1/api/gather-text
Parameters:
- text (required): The text to convert to speech.
- voice (required): The voice to use for text-to-speech.
- maxdigits (required): The maximum number of digits to collect.
- uuid (required): The unique identifier of the call.
Transfer Call
Endpoint: https://localhost.com/v1/api/transfer
Parameters:
- to_ (required): The phone number to transfer the call to.
- uuid (required): The unique identifier of the call.
Hangup Call
Endpoint: https://localhost.com/v1/api/hangup
Parameters:
- uuid (required): The unique identifier of the call.
Hold Call
Endpoint: https://localhost.com/v1/api/hold
Parameters:
- uuid (required): The unique identifier of the call.
Unhold Call
Endpoint: https://localhost.com/v1/api/unhold
Parameters:
- uuid (required): The unique identifier of the call.
Send DTMF
Endpoint: https://localhost.com/v1/api/send-dtmf
Parameters:
- input (required): The DTMF digits to send.
- uuid (required): The unique identifier of the call.
Call Status Updates
The API will send status updates to the specified callbackurl .
thanks in advance