Ip Authentication in Kamailio

**IP baseed Authentication in Kamailio for Peers.
**

route[PEER]{

if (allow_trusted("$si","$(proto)")) {

xlog("L_INFO","\n\n–Trusted IP – $si – $proto"); record_route(); route(LCR);

};

if (allow_address("1", "$si", "$sp")) {

xlog("L_INFO","Trusted IP-$si-$proto");

record_route();

route(LCR);

}; }

You have to call this before route-auth