callPartySession returns a session to be stored in the call party data.
(sess *Session)
| 92 | |
| 93 | // callPartySession returns a session to be stored in the call party data. |
| 94 | func 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 | |
| 116 | func initVideoCalls(jsconfig json.RawMessage) error { |
| 117 | var config callConfig |
no test coverage detected
searching dependent graphs…