Hi Guys 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. I have put the following in the dial plan <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> And I check the freeswitch log and see EXECUTE sofia/external/07966677711@185.8.92.3 log(INFO AUTH_RESULT=OK) 2017-07-02 17:28:12.885037 [INFO] mod_dptools.c:1724 AUTH_RESULT=OK EXECUTE sofia/external/07966677711@185.8.92.3 log(INFO credit_time=7199) 2017-07-02 17:28:12.885037 [INFO] mod_dptools.c:1724 credit_time=7199 EXECUTE sofia/external/07966677711@185.8.92.3 log(INFO return_code=16) 2017-07-02 17:28:12.885037 [INFO] mod_dptools.c:1724 return_code=16 But it fails to execute the bit within the condition. Any Ideas of how to make this work? Regards