Fix callDuration configuration + smplify websocket code + Add some smoketests about the websocket timeout protocol.