Dear Tihomir, Thanks for your email. Well I was able to load and test the module. It is sending the access request to Radius successfully but module is not caring about any Radius return code. It just routes the call whatever the response code is. For example when I call with an unauthenticated user and Radius returns return code =2, it still routes the call. Where and how can I define the actions based on appropriate return codes from Radius. Any examples are appreciated ALso when try to use the following config to auto hangup the call according to returned credit time, it just does not allow the call at all. Below is my dialplan/default.xml config file entry. Please help. <context name="default"> <extension name="Local_Extension"> <condition field="destination_number" expression="^(10[01][0-9])$"> <action application="set" data="dialed_extension=$1"/> <action application="export" data="dialed_extension=$1"/> <action application="log" data="INFO Before Auth "/> <action inline="true" application="set" data="CALLID=h323-conf-id=${uuid}"/> <action inline="true" application="set" data="SERVICENUM=h323-prompt-id=${destination_number}"/> <action inline="true" application="set" data="TRANSACTIONID=h323-ivr-out=transactionID:1234"/> <!-- <action inline="true" application="set" data="CALLINGNUMBER=${caller_id_number}"/> --> <action inline="true" application="set" data="CALLINGNUMBER=${caller_id_number}"/> <!--action inline="true" application="set" data="USERNAME="/--> <!-- <action inline="true" application="set" data="USERNAME=209354"/> --> <action inline="true" application="set" data="PASSWD="/> <action inline="true" application="set" data="DIALED_NUMBER=${destination_number}"/> <action application="sleep" data="2000"/> <action application="auth_function" data="in ${destination_number}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/> <action application="log" data="INFO AUTH_RESULT=${AUTH_RESULT}"/> <action application="log" data="INFO billing_model=${billing_model}"/> <action application="log" data="INFO credit_amount=${credit_amount}"/> <action application="log" data="INFO currency=${currency}"/> <action application="log" data="INFO preffered_lang=${preffered_lang}"/> <action application="log" data="INFO credit_time=${credit_time}"/> <action application="log" data="INFO h323_ivr_duration=${h323_ivr_duration}"/> <action application="log" data="INFO return_code=${return_code}"/> <!--action application="sched_hangup" data="+${credit_time:17:-1} ${Core-UUID}"/>--> <!--action application="execute_extension" data="AUTH XML default"/>--> <!-- bind_meta_app can have these args <key> [a|b|ab] [a|b|o|s] <app> --> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features"/> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features"/> <action application="set" data="ringback=${us-ring}"/> <action application="set" data="transfer_ringback=$${hold_music}"/> <action application="set" data="call_timeout=30"/> <!-- <action application="set" data="sip_exclude_contact=${network_addr}"/> --> <action application="set" data="hangup_after_bridge=true"/> <!--<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,NO_ROUTE_DESTINATION"/> --> <action application="set" data="continue_on_fail=true"/> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}"/> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/> <action application="set" data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}"/> <!--<action application="export" data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name} var sip_secure_media)}"/>--> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/> <action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <action application="answer"/> <action application="sleep" data="1000"/> <action application="voicemail" data="default ${domain_name} ${dialed_extension}"/> </condition> </extension> Best Regards----------------Abid Saleem Date: Mon, 25 Oct 2010 12:28:49 +0200 From: tculjaga@gmail.com To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Radius AAA On Sun, Oct 24, 2010 at 10:44 PM, Nazim Aghabayov <nazim.aghabayov@gmail.com> wrote: Hi! Could yu please check if module is actually loaded? freeswitch@internal> module_exists mod_rad_auth true What do you mean by: "it is not being called at all" ? Does it throw an error or what? also, please can you paste your config (dialplan/rad_auth.conf) and yur lvl7 debug here ? if its too large use pastebin. T. _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org