<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Guys<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">I have put the following in the dial plan</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">        <action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  <action application="log" data="INFO  AUTH_RESULT=${AUTH_RESULT}"/></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  <action application="log" data="INFO  credit_time=${credit_time}"/></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">  <action application="log" data="INFO  return_code=${return_code}"/></span></div><div style="margin: 0px; line-height: normal; min-height: 13px;" class=""><font face="Menlo" class=""><span style="font-variant-ligatures: no-common-ligatures; font-size: 11px;" class=""></span></font><div style="margin: 0px; line-height: normal; min-height: 13px;" class=""><font face="Menlo" class=""><span style="font-size: 11px;" class="">   <condition field="</span></font><span style="font-family: Menlo; font-size: 11px;" class="">${return_code}</span><span style="font-size: 11px; font-family: Menlo;" class="">" expression="^16$"></span></div><div style="font-family: Menlo; font-size: 11px;" class=""><br class=""></div></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">            <action application="set" data="execute_on_answer=sched_hangup +${credit_time} alloted_timeout" /></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">            <action application="bridge" data="{sip_invite_from_uri=sip:${sip_from_user}@${sip_network_ip}}sofia/internal/${destination_number}@185.35.229.30:5060" /></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">            <action application="hangup" data="${bridge_hangup_cause}"/></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">        </condition></span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">And I check the freeswitch log and see</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(175, 173, 36);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">EXECUTE <a href="mailto:sofia/external/07966677711@185.8.92.3" class="">sofia/external/07966677711@185.8.92.3</a> log(INFO  AUTH_RESULT=OK)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2017-07-02 17:28:12.885037 [INFO] mod_dptools.c:1724  AUTH_RESULT=OK</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(175, 173, 36);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">EXECUTE <a href="mailto:sofia/external/07966677711@185.8.92.3" class="">sofia/external/07966677711@185.8.92.3</a> log(INFO  credit_time=7199)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2017-07-02 17:28:12.885037 [INFO] mod_dptools.c:1724  credit_time=7199</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(175, 173, 36);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">EXECUTE <a href="mailto:sofia/external/07966677711@185.8.92.3" class="">sofia/external/07966677711@185.8.92.3</a> log(INFO  return_code=16)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(52, 189, 38);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">2017-07-02 17:28:12.885037 [INFO] mod_dptools.c:1724  return_code=16</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">But it fails to execute the bit within the condition.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Any Ideas of how to make this work?</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Regards</span></div></span></div></body></html>