Nearly there with mod_rad_auth, I have it being called in my dial plan and its sending the Radisu auth and working as expected.
I now want to put a condition so that in the event of Radius Auth failing the dial plan will end and not allow the call to be made.
<action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/>
<action application="log" data="INFO AUTH_RESULT=${AUTH_RESULT}"/>
<action application="log" data="INFO credit_time=${credit_time}"/>
<action application="log" data="INFO return_code=${return_code}"/>
<condition field="${return_code}" expression="^16$">
<action application="set" data="execute_on_answer=sched_hangup +${credit_time} alloted_timeout" />
<action application="bridge" data="{sip_invite_from_uri=sip:${sip_from_user}@${sip_network_ip}}sofia/internal/${destination_number}@185.35.229.30:5060" />
<action application="hangup" data="${bridge_hangup_cause}"/>
</condition>