cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I have an issue with conferenceCallout. enableAce and enableDice params don't work

valentinpazushko
Contributor

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.

10 REPLIES 10

Roland_Ian
Employee
Employee

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. 

Roland-Ian Clothier, Developer Support Engineer