MCPcopy
hub / github.com/tinode/chat / callPartySession

Function callPartySession

server/calls.go:94–114  ·  view source on GitHub ↗

callPartySession returns a session to be stored in the call party data.

(sess *Session)

Source from the content-addressed store, hash-verified

92
93// callPartySession returns a session to be stored in the call party data.
94func callPartySession(sess *Session) *Session {
95 if sess.isProxy() {
96 // We are on the topic host node. Make a copy of the ephemeral proxy session.
97 callSess := &Session{
98 proto: PROXY,
99 // Multiplexing session which actually handles the communication.
100 multi: sess.multi,
101 // Local parameters specific to this session.
102 sid: sess.sid,
103 userAgent: sess.userAgent,
104 remoteAddr: sess.remoteAddr,
105 lang: sess.lang,
106 countryCode: sess.countryCode,
107 proxyReq: ProxyReqCall,
108 background: sess.background,
109 uid: sess.uid,
110 }
111 return callSess
112 }
113 return sess
114}
115
116func initVideoCalls(jsconfig json.RawMessage) error {
117 var config callConfig

Callers 2

handleCallInviteMethod · 0.85
handleCallEventMethod · 0.85

Calls 1

isProxyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…