Returns Uid and session of the present video call originator if a call is being established or in progress.
()
| 206 | // Returns Uid and session of the present video call originator |
| 207 | // if a call is being established or in progress. |
| 208 | func (t *Topic) getCallOriginator() (types.Uid, *Session) { |
| 209 | if t.currentCall == nil { |
| 210 | return types.ZeroUid, nil |
| 211 | } |
| 212 | for _, p := range t.currentCall.parties { |
| 213 | if p.isOriginator { |
| 214 | return p.uid, p.sess |
| 215 | } |
| 216 | } |
| 217 | return types.ZeroUid, nil |
| 218 | } |
| 219 | |
| 220 | // Handles video call invite (initiation) |
| 221 | // (in response to msg = {pub head=[mime: application/x-tinode-webrtc]}). |
no outgoing calls
no test coverage detected