This document discusses using Kamailio to process Diameter requests. It begins by introducing Diameter and its role in IMS and mobile networks. It then addresses using Kamailio as a Diameter router, noting that Kamailio has a good Diameter stack and interfaces to other systems. The document describes an IMS Diameter server based on Kamailio that allows processing Diameter requests and responses in the Kamailio script. Examples are given of building an HSS, PCRF, DRA, or OCS using this approach. The history of the author's HSS servers is discussed, moving from OpenHSS to JBoss to a faster Kamailio-based solution. Future plans include adding TLS,