stijnster/opentok — pull request #3 by songz (2012-04-24 00:19:32+00:00)
Title: Bug Fix for opentok Gem

There is a bug in the gemfile, it can be replicated like this:

opentok = OpenTok::OpenTokSDK.new(API_KEY, API_SECRET)
session = opentok.create_session( 'https://api.opentok.com/hl', {'p2p.preference' => 'enabled'})

The resulting session created is not p2p enabled in the production environment.

I went through the code and this issue is caused by the @api_url not being set by the location parameter passed into the create_session function.

Thanks Stijnster! Any comment is appreciated, this is my first pull request!