Trouble Configuring Tropo

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
cssindhu's picture

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?

akalsey's picture

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

cssindhu's picture

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

VoIP Drupal

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: