Think of a good solution for the Genesis landline corner-case
(Note that none of this matters if the Genesis box has a battery)
Currently PSTN connections from Genesis boxes with wiped SRAM are not supported. This needs to be fixed. Using the PSTN number as a boxaccount lookup source would work if the user only ever connects from landline. But we live in an imperfect world, and someone may (reasonably!) try to move their battery-less Genesis box from VoIP to PSTN :)
Consider this scenario:
- Genesis box connects via VoIP, creates a new boxaccount and playeraccount, etc
- SRAM wipe
- Same box connects via PSTN The Genesis box now has no way of identifying itself other than its PSTN number, which the server doesn't know yet, because they never connected on PSTN before.
In this scenario I don't think there's a whole lot that can be done other than to treat the PSTN connection as a brand new, separate box. This would be fine if they never move back to VoIP -- the VoIP account would just be abandoned. But consider if they then connect back to VoIP without an SRAM wipe. Now the server has conflicting info, their original VoIP boxaccount is identified by the sipaccount, but they won't be identified under that account anymore since we trust their box's BoxSerialNumber info, which would now point to the PSTN account.
What a conundrum.