Everything you need to know about Voice Call
Find out all the important info about Voice Call API: from service specifications, via price lists to code examples and relevant links to documentation or application examples.

Voice Call Demo

You have to be logged in to use this voiceCall Service
NumberName
Subscriber-A:
Subscriber-B:
Alternative Subscriber-B
Maximum duration of voice Call (sec): 600


Suppress all telephone numbers
Suppress system telephone number
Suppress telephone number of subscriber-A
identify all telephone numbers


How it works

  1. function startVoiceCall() {
  2.  
  3. try {
  4.  
  5. $this->client = new VoiceCallClient($environment, $user, $password);
  6.  
  7. $this->newCallResponse = $this->client->newCall($phoneNr1, $phoneNr2, $expiration, $maxDur, $maxWait,$privacyA, $privacyB, $account);
  8.  
  9. if(!($this->newCallResponse->getStatus()->getStatusConstant() ==
  10. VoiceCallStatusConstants::SUCCESS)) {
  11.  
  12. $errorMessage = $this->newCallResponse->getStatus($this->newCallSessionID)->getStatusCode();
  13. throw new Exception($errorMessage);
  14. }
  15.  
  16. }
  17. catch(Exception $e){
  18. /*
  19. * Fehlerbehandlung
  20. */
  21. switch($e->getMessage()){
  22. .
  23. .
  24. .
  25. }
  26. }
  27. }