It is determined by your outbound routing rules. So if you set up a rule to route all numbers to UK (say 0044....) via a particular trunk, and you specifiy the external phone number for the classic extension as 0044xxxxxxx then it will match the outbound routing rules for the trunk you send UK calls to.