line is an object of class lineObject that is automatically created by wrtc whenever it needs a new connection a new "telephone line" to the server
It takes care of one telephone connection, one "telephone line". To be able to call someone, or receive a call, you need to first have a line.
Users usually do not need to do anything with the line object, except in wrtc.onAuthenticate(), wrtc.onAuthenticateFailed() and wrtc.onRejected() there the line object is one of the function arguments.
The line object can be controlled using function calls and properties.
Useful line object properties:
| line.addressName | username / SIP address given by server |
| line.call | call object using this line |
| line.displayName | user's informal, descriptive name given by server |
| line.nam | line object name |
| line.objType | object type |
| line.online | logged in |
In order to avoid malfunction please do not change any of the line object's properties.
Useful line object functions:
| line.authenticate() | log in user |