If you cancel service before transferring the number, it's lost for sure. If you transfer first, then you should just have to remind AT&T that it was during the trial period to prevent the ETF, but given that we're talking about a cellular company, who knows.