To install Kamailio from source, along with supporting packages:
Single Kamailio machine
Pair of Kamailio machines using corosync and pacemaker