Metaswitch/sprout — pull request #676 by mirw (2014-07-27 15:02:31+00:00)
Title: [Reviewer: Mike] Get the trail ID before creating the ACR.

Mike,

Please can you review my fix to Metaswitch/ralf#88, which covered EVENT ACRs not being SAS-traced correctly? The issue was that, because we create the ACR before calling into `BasicProxy::init`, we don't have the SAS trail set up correctly. I looked at reordering the BasicProxy initialization, but because it can actually reject requests itself, the ACR creation (and hence trail setup) must happen first.

I've run the UTs, but not live-tested yet.

Matt