Talkilla/SPA API: Difference between revisions

(Use templated draft notice)
Line 80: Line 80:
==Placing a call==
==Placing a call==
event.data contains
event.data contains
  {topic: "offer", data: {to: "+33615827492", offer: <offer>}}
  {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..."}})})
"reject" is not implemented yet.


==Ending a call==
==Ending a call==
Confirmed users
87

edits