Posted by cssindhu on November 7, 2013 at 7:19pm
Hi,
I have configured VoIP Drupal to use Tropo by the book. when i dial the number i get a bust tone... Tropo logs says 301 redirect error... the support guy told me the error is in
Declaration of Call::__construct() must be compatible with BaseClass::__construct()
in /public_html/sites/all/modules/voipdrupal/modules/voiptropo/tropo_webapi/tropo.class.php
on line 845
FYI everything was working fine just few months back... has anything changed?
Comments
PHP version change?
Sounds like a PHP version problem. Did you recently upgrade to 5.4 or something? PHP changed some of the semantics of how the __construct function works.
The most recent version of the tropo.class.php library should solve this for you. You can get it from https://github.com/tropo/tropo-webapi-php
Thank you... Yes I did change
Thank you... Yes I did change the php version to 5.4.. I got the latest copy.. However now I am getting a different tropo error. Its adding #ef#bb#bf BOM characters to the JSON returned. Tropo is throwing an exception.. Can anyone help?
Received new TropoML document on Tropo-Thread-83ff3c95e187fdfd687e84a414aecea1: #ef#bb#bf{"tropo":[{"say":[{"value":"Welcome to my travel diary audio blog, where creating memories is just a phone call away.","voice":"allison"}]},{"on":[{"event":"hangup","next":"http://mytraveldiary.biz/voip/tropo/callhandler/process_hangup/305"}]},{"ask":
rest of JSON... did not paste the whole thing
TROPO#: Exception caught attempting to request TropoML document at http://mytraveldiary.biz/voip/tropo/callhandler on Tropo-Thread-83ff3c95e187fdfd687e84a414aecea1@T: org.codehaus.jackson.JsonParseException: Unexpected character ('#ef#bb#bf' (code 65279 / 0xfeff)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: j