AdeB
01/13/2025, 3:27 PM/twilio/inbound-call
on our server , which calls the /call
endpoint of vapi, like that:
response = await client.post(
"https://api.vapi.ai/call",
json={
"phoneNumber": {
"twilioAccountSid": "XXX",
"twilioAuthToken": s"XXX",
"twilioPhoneNumber": "XXX",
},
"phoneCallProviderBypassEnabled": True,
"customer": {"number": recipient_number},
"assistant": assistant_config,
"assistantOverrides": {
"server": {
"url": f"{api_url}/vapi-messages",
"secret": secrets.vapi_secret,
}
},
},
headers={
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": f"Bearer {secrets.vapi_api_key}",
},
timeout=10.0,
)
Also, I've noticed that, despite not specifying it in vapi_server_events
, our endpoint f"/vapi-messages"
gets a strange phone-call-control
that I ignore.
And I am not sure what phoneCallProviderBypassEnabled
does, but it seems required to make it work.
Thank you for your help!Vapi
01/13/2025, 3:29 PMAdeB
01/13/2025, 3:35 PMKachinni
01/13/2025, 3:36 PMAdeB
01/13/2025, 3:37 PMAdeB
01/13/2025, 4:00 PMbtbrtv
01/13/2025, 6:22 PMbtbrtv
01/14/2025, 6:26 AMbtbrtv
01/14/2025, 6:31 AMbtbrtv
01/14/2025, 6:34 AMbtbrtv
01/14/2025, 6:41 AMAdeB
01/14/2025, 11:59 AMShubham Bajaj
01/14/2025, 3:46 PMShubham Bajaj
01/14/2025, 3:49 PMphone-call-control
is used to manage and control how phone calls are transferred - ideally you don't need it as Vapi handles this for you. Regarding phoneCallProviderBypassEnabled
, this means you create and start all of the calls by yourself and then hook Vapi into the call.btbrtv
01/14/2025, 4:41 PMbtbrtv
01/14/2025, 4:42 PMbtbrtv
01/14/2025, 4:44 PMbtbrtv
01/14/2025, 4:44 PMAdeB
01/14/2025, 5:17 PMShubham Bajaj
01/14/2025, 7:40 PMAdeB
01/14/2025, 8:04 PMAdeB
01/14/2025, 8:08 PMShubham Bajaj
01/14/2025, 8:47 PMAdeB
01/14/2025, 8:51 PMAdeB
01/14/2025, 9:16 PMtranscriptionEndpointingPlan
would have any effect since
a) for many callers it works well
b) the assistant follows the endpointing well and clearly responds to the user (even when user doesn't hear it)Shubham Bajaj
01/15/2025, 8:24 PMShubham Bajaj
01/15/2025, 8:25 PMAdeB
01/16/2025, 12:45 AMShubham Bajaj
01/17/2025, 1:36 PMAdeB
01/18/2025, 10:55 PMShubham Bajaj
01/20/2025, 6:48 AM