Skip to content
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

Cast timeout to integer #39

Open
undsoft opened this issue Apr 19, 2013 · 0 comments
Open

Cast timeout to integer #39

undsoft opened this issue Apr 19, 2013 · 0 comments
Assignees

Comments

@undsoft
Copy link

undsoft commented Apr 19, 2013

Hi,

I have recently had an issue with Tropo API.

This fails:

[{"call":{"to":"tel:+13233204009","from":"13233299421","timeout":"40"}} 

While this works:

[{"call":{"to":"tel:+13233204009","from":"13233299421","timeout":45}} 

It took me a while to track this down. It's easy to miss this kind of issues in a language such as PHP.

So I suggest you typecast this in Tropo.

tropo.class.php line 845

 $this->_timeout = $timeout;

to

 $this->_timeout = (float)$timeout;
@ghost ghost assigned kevinbond Jan 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants