Talkilla/SPA API: Difference between revisions

Jump to navigation Jump to search
m
Line 81: Line 81:
==Placing a call==
==Placing a call==
event.data contains
event.data contains
  {topic: "offer", data: {peer:"+33615827492", offer:{type:"offer", sdp:"v=0\r\no=Mozilla-SIPUA..."}}}
  {topic: "offer", data: {peer: "+33615827492", offer: {type:"offer", sdp:"v=0\r\no=Mozilla-SIPUA..."}}}


The SPA can reply with an "answer" or "reject" message.
The SPA can reply with an "answer" or "reject" message.
  postMessage({topic: "answer", data: {peer:"webrtc@mailinator.com", answer:{type:"answer", sdp:"v=0\r\no=Mozilla-SIPUA..."}}});
  postMessage({topic: "answer", data: {peer: "webrtc@mailinator.com", answer: {type:"answer", sdp:"v=0\r\no=Mozilla-SIPUA..."}}});


"reject" is not implemented yet.
"reject" is not implemented yet.
Confirmed users
87

edits

Navigation menu