Mr Stark
10/18/2024, 5:26 AMMr Stark
10/18/2024, 5:27 AMVapi
10/18/2024, 5:28 AMend_call
or similar that you can call with the necessary parameters, such as the call ID.
If you need assistance with the specific function call or implementation, please provide more details or ask for support from the VAPI provider for more info on this.Vapi
10/18/2024, 5:28 AMMr Stark
10/18/2024, 5:29 AMVapi
10/18/2024, 5:29 AMVapi
10/18/2024, 5:30 AMMr Stark
10/18/2024, 5:30 AMVapi
10/18/2024, 5:30 AMShubham Bajaj
10/18/2024, 12:22 PMShubham Bajaj
10/18/2024, 12:22 PMMistermanu#000
02/11/2025, 5:46 PMShubham Bajaj
02/11/2025, 6:29 PMMistermanu#000
02/11/2025, 6:49 PMShubham Bajaj
02/11/2025, 8:55 PMsh
#!/bin/bash
CALL_ID="7400d"
CONTROL_URL="https://aws-us-west-2-production1-phone-call-websocket.vapi.ai/$CALL_ID/control"
# First send the message
curl -X POST "$CONTROL_URL" \
-H 'content-type: application/json' \
--data-raw '{
"type": "add-message",
"message": {
"role": "assistant",
"content": "Thank you for your time. I will end this call now. Goodbye!"
},
"triggerResponseEnabled": true
}'
# Wait for message to be spoken
sleep 2
# Then end the call
curl -X POST "$CONTROL_URL" \
-H 'content-type: application/json' \
--data-raw '{
"type": "end-call"
}'
Mistermanu#000
02/11/2025, 10:52 PM