You are in the wrong forum here.. this has nothing to do with development.
For failover to work, you need to properly configure your ccm group - it must contain both call managers (and preferably the subscriber should host the phones) so that the phones know about both and can switch over when the one they are currently connected to goes down.