Maintaining the Quality-of-Service (QoS) of Voice-over-Internet Protocol (VoIP) is a major problem due to the instability of network conditions. One factor that influences VoIP call quality is the employed codec. In this research, the influence of codec on the QoS of VoIP calls is evaluated under Wi-Fi, 2G, 3G and 4G networks. VoIP calls are established using PCMA, PCMU, GSM and G.722 codecs and QoS parameters including jitter, round trip time and packet loss are measured. QoS measurements are compared against considered networks and codecs. Results illustrate that there exists a codec that better suits each network with considerable advantages over other codecs and minimum drawbacks.