-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Callback doesn't work #8
Comments
There are a couple of problems with the XML from http://caringfarmer.ru/testing/answer.xml (copied below): <Response>
<Speak language="en-GB" voice="MAN">
This is a randomly generated text can be used in your layout
</Speak>
<Speak language="fr-FR">
Ce texte généré aléatoirement peut-être utilisé dans vos maquettes
</Speak>
<Speak language="ru-RU" voice="MAN">
Это случайно сгенерированный текст может быть использован в макете
</Speak>
</Response>
|
I simple copied code from example.
|
my code not working
|
Error i get Severity: Parsing Error Message: syntax error, unexpected 'use' (T_USE) Filename: helpers/plivo_helper.php Line Number: 37 Backtrace:` |
I use plivo for linked two telephone numbers by callback function.
'+7926*******', # The phone numer to which the all has to be placed 'from' => '+7925*******', # The phone number to be used as the caller id 'answer_url' => "http://caringfarmer.ru/testing/answer.xml", # The URL invoked by Plivo when the outbound call is answered 'answer_method' => "GET" # The method used to call the answer_url ); // $response = $p->make_call($params); // echo " "; ``` I use: "plivo/plivo-php": "^1.1", "guzzlehttp/guzzle": "^6.1" But when I started code in work, on my telephone arrived call from +7925, I take phone, but don't listen voice, and calling interrupted through 5 seconds. In debug on site plivo I found INFO - code 600 XML : response is empty from GET http://caringfarmer.ru/testing/answer.xml I use POST metod also. Did not help. What is it, and as I may resolve this problem?But code preview in example:
https://www.plivo.com/docs/getting-started/making-outbound-calls/
The text was updated successfully, but these errors were encountered: