Asterisk with heartbeat problem

Hello
Heartbeat is a program/mechanism that i had installed in both Server to do the switch of the call routing.
I have a virtual IP, and then two real IPs (one for each server)
The idea is that the call goes to the virtual IP, and then is redirected to Server1 or Server2 (dependen which is active).
It works well, if one node shut down, the other takes control of the stream.
But if it is only asterisk the one which shut down (and not the entire heartbeat node), the call doesn’t goes to the other asterisk.
Thanks for the help,
Greetings