Sha256: e0a50f7a5fc2adbe6a8074095990a65af99859bc20c13dc57334dd9778a7eb7e
Contents?: true
Size: 978 Bytes
Versions: 4
Compression:
Stored size: 978 Bytes
Contents
require "opentok/opentok" require "opentok/sip" require "spec_helper" describe OpenTok::Sip do before(:each) do now = Time.parse("2017-04-18 20:17:40 +1000") allow(Time).to receive(:now) { now } end let(:api_key) { "123456" } let(:api_secret) { "1234567890abcdef1234567890abcdef1234567890" } let(:session_id) { "SESSIONID" } let(:expiring_token) { "TOKENID" } let(:sip_uri) { "sip:+15128675309@acme.pstn.example.com;transport=tls" } let(:sip_username) { "bob" } let(:sip_password) { "abc123" } let(:opentok) { OpenTok::OpenTok.new api_key, api_secret } let(:sip) { opentok.sip } subject { sip } it "receives a valid response", :vcr => { :erb => { :version => OpenTok::VERSION } } do opts = { "auth" => { "username" => sip_username, "password" => sip_password }, "secure" => "true" } response = sip.dial(session_id, expiring_token, sip_uri, opts) expect(response).not_to be_nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opentok-3.0.2 | spec/opentok/sip_spec.rb |
opentok-3.0.1 | spec/opentok/sip_spec.rb |
opentok-3.0.0 | spec/opentok/sip_spec.rb |
opentok-2.5.0 | spec/opentok/sip_spec.rb |