RT# 83179 - set agent num to use default agentnum if configured, and fixed adding...