Asterisk authentication with external Radius support

Hi, i’m trying to use external authentication through RADIUS for the Asterisk client. I’ve installed the freeRadius server and also gone through some of the docs available in internet but not able to proceed as the informations are not sufficient. Can anyone guide how to patch the chan-sip.c with the pam-radius or how to configure the Asterisk server to get the above solution.

Thanks