[connectionagent] Adapt to API change in UserAgent
Merge pull request #3 from rojkov/master

Adapt to API change in UserAgent