From Bright Pattern Documentation
< 3.17:Mobile-web-api-specification
Revision as of 23:30, 17 October 2017 by Tracy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 3.10 • 3.11 • 3.12 • 3.13 • 3.14 • 3.15 • 3.16 • 3.17 • 3.18

Signaling Message Types

Request Phone Call

This message is sent from the client to request a phone call.

Format

{

“type”: “REQUEST_PHONE_CALL”,

“number”: “<phone number>”

}


Request SMS

This message is sent from the client to request an SMS session.

Format

{

“type”: “REQUEST_SMS”,

“number”: “<phone number>”

}


Request Call

This message is sent from the client to request a WebRtc call.

Format

{

“type”: “REQUEST_CALL”,

“offerVideo”: true|false

}

Call Rejected

This message is sent from the server to indicate that a requested call was rejected.

Format

{

“type”: “CALL_REJECTED”,

“reason_code”: <reject reason code>,

“reason”: TBD

}


Offer Call

This message is sent from the server to start a WebRTC session.

Format

{

“type”: “OFFER_CALL”,

“offerVideo”: true|false,

“sdp”: “<session description string>”

}


Answer Call

This message is sent from the client to confirm the WebRTC session started by the server.

Format

{

“type”: “ANSWER_CALL”,

“sdp”: “<session description string>”

}


ICE Candidate

This message is sent from the client or server with ICE candidate description.

Format

{

“type”: “ICE_CANDIDATE”,

“sdpMid”: “<candidate id>”,

“sdpMLineIndex”: “<candidate index>”,

“candidate”: “<candidate description>”

}


End Call

This message is sent from the client or server to end the current WebRTC session.

Format

{

“type”: “END_CALL”

}


< Previous
< Previous