I had this happen to me a couple of weeks ago... The day before my line failed altogether
So I had to restore the original locked firmware, jump through BT's hoops in the right order, wait for an engineer to come out...
That took six days and while he was here, he decided to swap out the modem because he "didn't like how long it was taking to sync". Left me with an older rev 2B instead of the rev 3B which was originally installed.
So I decided to get a spare from a certain online market we all know, unlock that and keep BT issued one "untainted" in case of further problems.
While I was at it, I rebuilt the rootfs to completely disable BTAgent using asbokid's toolkit. That took a while as the 64bit version of mksquashfs doesn't work properly and the damn thing won't compile. Fortunately asbokid had provided a compiled 32bit version. I just had to build a 64bit virtual machine, install the 32bit compatibility libraries, etc...
As the saying goes. It never rains, but it pours
Since then I've been trying to find a way of extracting the updated firmware from the flashmem via telnet. If I can do that then I'll let the spare update itself and grab it.