I'm trying to log some data about ongoing conferences in my database by using conference statusCallbackEvent and statusCallback, however my statusCallback URL never gets called for the events specified in statusCallbackEvent.
For example, for an outgoing call I initiate the conference as such:
$response = new VoiceResponse();
$conferenceName = "agent_name";
$dial = $response->dial('');
$dial->conference(
$conferenceName,
[
'startConferenceOnEnter' => True,
'endConferenceOnExit' => True,
'statusCallback' => 'https://my.url.com/conferenceCallback',
'statusCallbackEvent' => 'start join end'
]
);
Then I add participants with:
$client->conferences($conferenceName)
->participants
->create()
I can see the events being triggered when I look at the Participant timeline in Insights, but the callback url is never called.
I'm using this doc as reference: https://www.twilio.com/docs/voice/twiml/conference
Really confused about why this is not working.