10-02-2023 07:24 AM - last edited on 10-05-2023 02:40 AM by Shahzad_Ismail
I’m trying to make a phone-to-app call. On ICE event of incoming PSTN call I response SVAML :
{
"action": {
"name": "ConnectConf",
"conferenceId": "InAppToPSTN",
"moh": "ring"
}
}
Then I use the Voice / Calling API ConferenceCallout request to add the InApp client to the same conference:
$this->httpClient
->requestAsync('POST', 'https://calling.api.sinch.com/calling/v1/callouts', [
RequestOptions::HEADERS => [
'x-timestamp' => $now,
'Authorization' => "application {$appId}:{$authorizationSignature}",
],
RequestOptions::JSON => [
'method' => 'conferenceCallout',
'conferenceCallout' => [
'destination' => [
'type' => 'username',
'endpoint' => 'user-698',
],
'conferenceId' => 'InAppToPSTN',
'cli' => '+E.164',
'maxDuration' => 3600,
'enableAce' => true,
'enableDice' => true,
],
])
->then(function(ResponseInterface $response): ?array {
if ($response->getStatusCode() === 204) {
return null;
}
return json_decode($response->getBody()->getContents(), true);
});
I removed the generation of $authorizationSignature to save space.
The problem is that I am not receiving ACE and DICE callbacks of second call leg.
Solved! Go to Solution.
11-01-2023 02:54 AM
Hi
I have looked and
user-698-staging
Does not have any push token registered.
Please review
https://developers.sinch.com/docs/in-app-calling/ios/push-notifications-callkit/ and you can also inspect the sample applications with the SDK for this functionality.