Picture of Khalil 5054
Registered 4 years 322 days
Khalil 5054 Friday, 24 July 2020, 09:33 AM
Make a call with php script using RCC api
Hi,

The documentation for RCC api says that one can use UserCall to "Initiate an outgoing call, but it doesn't say how.

In the rccapi.php sample code they use an operation called initialize/initializeResult:

public function ReceiveInitialStart(\AppPlatform\Message $msg) {
 $this->sendMessage(new AppPlatform\Message("Initialize", "api", "RCC"));
}

What I tried was changing the Initialize here to UserCall but it returns with an error and call 0. How do I use this operation properly as there isn't really any example for this. How do I add the correct properties needed to the mt when using UserCall?

Best regards,
Khalil
Andreas Fink
Moderator Registered 13 years 110 days
Andreas Fink (innovaphone) Friday, 24 July 2020, 09:50 AM
1 of 1 users consider this post helpful
Re: Make a call with php script using RCC api
Hello Khalil,

the flow to setup an RCC session is following:

  • Initialize - to setup a session
  • Devices - on specific User Object to get the list of Devices (in your case it will be Softwarephone hw)
  • UserInitilize - on this User Object, with provided hw, that was devlivered by previous Devices command. UserInitilize will deliver an id for User session
  • UserCall with id delivered by UserInitilize
I will add this to the PHP example, hopefully today.

Best Regards
Andreas Fink
Picture of Khalil 5054
Registered 4 years 322 days
Khalil 5054 Friday, 31 July 2020, 09:05 AM
Re: Make a call with php script using RCC api
Hi again,

Did you update the php example? I can't seem to find it..

Best Regards,
Khalil
Picture of Khalil 5054
Registered 4 years 322 days
Khalil 5054 Monday, 3 August 2020, 11:05 AM in response to Andreas Fink (innovaphone)
Re: Make a call with php script using RCC api
Hi Andreas,

I was wondering if you have added the php example?

Best regards,
Khalil
← You can define your color theme preference here