628 config for new user v2
Closes #628
Replaces !34 (closed) - previous code review is there
I tested (after xuc fully started) by adding new users via Xivo web interface, both with WebRTC and with physical SIP phone. I tried to log them to assistant after configuration (without xuc restart):
- This fix work (both WebRTC and SIP) well on condition user is added with line.
- If you add user without line and add line later, line is still not configured. There is workaround: re-sqave user after adding line.
Notes by JP from review of previous MR !34 (closed) (esp. problem with thread-safety) werre resolved.