Linksys SPA3102
The following configuration has not been tested for PSTN failover. The FXS port is registering to a sipXecs 3.10.3 PBX.
...
If your DNS is configured properly the gateway should register and be able to make calls at this point.
Linksys / Sipura PAP2
We need more detail here...
PAP2 Notes:
PAP2 Settings to adjust.
Under the sip tab:
...