C → S {type: 'Iam', name: …, CID: …, OID: …, template: …, client: …}
Iam – register name: registers client on RTCgate server.
arguments:
optional arguments:
Server responds with unauthorised or welcome message.
Multiple registered clients can have same name.
Same or different CID tells if registrations are from same origin or not.
Different OID tells which connection on same client is used.
For example:
All three registrations are for same user foo, but registrations 2) and 3) are on a different machine than 1). (Different CID-s. Can though also be different tabs on same webclient.) Registration 3) usually exists while user is talking with someone on registration 2) to be able to receive incoming calls. Those calls is sent to registration 3) by RTCgate server using the CID:B, OID:wrtc2 combination.