- Inherits:
- Object
- Defined in:
- lib/opentok/sip.rb
Instance Method Summary
-
#dial(session_id, token, sip_uri, opts) ⇒ Object
Dials a SIP gateway to input an audio-only stream into your OpenTok session.
-
#initialize(client) ⇒ Sip
constructor
A new instance of Sip.
-
#play_dtmf_to_connection(session_id, connection_id, dtmf_digits) ⇒ Object
Sends DTMF digits to a specific client connected to an OpnTok session.
-
#play_dtmf_to_session(session_id, dtmf_digits) ⇒ Object
Sends DTMF digits to all clients connected to an OpnTok session.
Constructor Details
#initialize(client) ⇒ Sip
Returns a new instance of Sip.
Instance Method Details
#dial(session_id, token, sip_uri, opts) ⇒ Object
Dials a SIP gateway to input an audio-only stream into your OpenTok session. See the / OpenTok SIP developer guide.
video (true) or not (false, the default). With video included, the SIP client's video is included in the OpenTok stream that is sent to the OpenTok session. The SIP client will receive a single composed video of the published streams in the OpenTok session. observes force mute moderation (true) or not (false, the default).
#play_dtmf_to_connection(session_id, connection_id, dtmf_digits) ⇒ Object
Sends DTMF digits to a specific client connected to an OpnTok session.
the DTMF signal is being sent to. A p indicates a pause of 500ms (if you need to add a delay in sending the digits).
#play_dtmf_to_session(session_id, dtmf_digits) ⇒ Object
Sends DTMF digits to all clients connected to an OpnTok session.
A p indicates a pause of 500ms (if you need to add a delay in sending the digits).