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

Bug Fix for opentok Gem #3

Merged
merged 3 commits into from
Apr 24, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/open_tok/open_tok_sdk.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ def generate_token(opts = {})
# See http://www.tokbox.com/opentok/tools/documentation/overview/session_creation.html for more information # See http://www.tokbox.com/opentok/tools/documentation/overview/session_creation.html for more information
def create_session(location='', opts={}) def create_session(location='', opts={})
opts.merge!({:partner_id => @partner_id, :location=>location}) opts.merge!({:partner_id => @partner_id, :location=>location})
if location!=''
@api_url = location
end
doc = do_request("/session/create", opts) doc = do_request("/session/create", opts)
if not doc.get_elements('Errors').empty? if not doc.get_elements('Errors').empty?
raise OpenTokException.new doc.get_elements('Errors')[0].get_elements('error')[0].children.to_s raise OpenTokException.new doc.get_elements('Errors')[0].get_elements('error')[0].children.to_s
Expand Down