MT#8523 Use alias number for edr export.

Previously we relied on the billing.voip_numbers.id for the alias
to be bigger than the primary number id, which is not the case if
alias numbers are created before extensions.

(cherry picked from commit d6c30b89db88023b393a1656c4c341fc923702d4)