<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Dear Tihomir,<div><br></div><div>It has been so many days since I did not get any response from your side. Could you please help me in this. Did you update the wiki for mod_rad_auth. If not, please help me in this regard. Thanks.</div><div><br></div><div>Abid Saleem<br><br><hr id="stopSpelling">From: abid_freeswitch@live.com<br>To: tculjaga@gmail.com; freeswitch-users@lists.freeswitch.org<br>CC: neal@wanlink.com<br>Subject: RE: [Freeswitch-users] Radius/Authentication/Authorization<br>Date: Sat, 3 Apr 2010 12:02:55 +0500<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<br>Dear Tihomir,<div><br></div><div>Any update and help on the below please.</div><div><br></div><div>Abid<br><hr id="ecxstopSpelling">From: abid_freeswitch@live.com<br>To: tculjaga@gmail.com<br>CC: neal@wanlink.com<br>Subject: Re: [Freeswitch-users] Radius/Authentication/Authorization<br>Date: Wed, 31 Mar 2010 19:35:32 +0500<br><br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>
<span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)">Dear Tihomir,</span><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)"><br></span></div><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)">Thank you very much for the configuration example but in which files to place these configurations. Please bear with me because I am new to FreeSwitch and if you could provide complete steps.</span></div><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)"><br></span></div><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)">Also when I compile FS and load the module mod_rad_auth in conf/autoload_configs/modules.conf.xml, I get an error while starting FS as follows.</span></div><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)"><br></span></div><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)"><div>2010-03-31 19:32:29.399466 [CRIT] switch_loadable_module.c:882 Error Loading module /usr/local/freeswitch/mod/mod_rad_auth.so</div><div>**/usr/local/freeswitch/mod/mod_rad_auth.so: undefined symbol: rc_conf_str**</div><div><br></div><div>Please advise. Thanks.</div><div><br></div><div>Regards</div><div>-----------</div><div>Abid Saleem</div></span></div><div><span class="ecxecxApple-style-span" style="font-family:'Segoe UI', Tahoma, Verdana, Arial, sans-serif;color:rgb(68, 68, 68)"><br>--Forwarded Message Attachment--<br>From: tculjaga@gmail.com<br>CC: neal@wanlink.com<br>To: freeswitch-users@lists.freeswitch.org<br>Date: Tue, 30 Mar 2010 21:42:03 +0200<br>Subject: Re: [Freeswitch-users] Radius/Authentication/Authorization<br><br>hello,<br><br>here is an example<br><br><br><br><configuration name="rad_auth.conf" description="radius authentification module"><br> <settings><br> <!-- backward compatibility to allow radiusclient config file instead of an embedded config --><br><br> <!-- <param name="radius_config" value="/usr/local/etc/radiusclient/radiusclient.conf"/> --><br> </settings><br><br> <client><br> <param name="authserver" value="10.1.1.10:1812:gateway"/><br><br> <param name="dictionary" value="/usr/local/etc/radiusclient/dictionary.all"/><br> <param name="seqfile" value="/var/run/radius.seq"/><br> <param name="mapfile" value="/usr/local/etc/radiusclient/port-id-map"/><br><br> <param name="default_realm" value=""/><br> <param name="radius_timeout" value="3"/><br> <param name="radius_retries" value="2"/><br> <param name="radius_deadtime" value="0"/><br><br> <param name="bindaddr" value="*"/><br> </client><br><br> <vsas><br> <!-- <br> name: just a description<br> value: direct input or variable <br> pec: vendor ID (0 for default, 9 for cisco...)<br><br> expr: 1 for channel variable, 2 for direct input<br> direction: in for radius-request, out for radius-response<br> --><br><br> <!-- mappings for radius request message; input attributes --><br><br> <param name="h323-conf-id" id="24" value="CALLID" pec="9" expr="1" direction="in"/><br> <param name="h323-prompt-id" id="104" value="SERVICENUM" pec="9" expr="1" direction="in"/><br><br> <param name="Cisco-AVPair" id="1" value="TRANSACTIONID" pec="9" expr="1" direction="in"/><br> <param name="Calling-Station-Id" id="31" value="CALLINGNUMBER" pec="0" expr="1" direction="in"/><br><br> <param name="NAS-Port-Type" id="61" value="0" pec="0" expr="0" direction="in"/><br> <param name="NAS-Port-Id" id="87" value="ISDN 3/0:D:14" pec="0" expr="0" direction="in"/><br><br> <param name="Login-User" id="1" value="1" pec="0" expr="0" direction="in"/><br><br> <!-- mappings for radius-response message; output values from returning outributes --><br><br> <param name="BILING_MODEL" id="109" value="billing_model" pec="9" expr="0" direction="out"/><br> <param name="CREDIT_AMOUNT" id="101" value="credit_amount" pec="9" expr="0" direction="out"/><br><br> <param name="CURRENCY" id="110" value="currency" pec="9" expr="0" direction="out"/><br> <param name="PREFFERED_LANG" id="107" value="preffered_lang" pec="9" expr="0" direction="out"/><br><br> <param name="CREDIT_TIME" id="102" value="credit_time" pec="9" expr="0" direction="out"/><br> <param name="H323-IVR-IN:DIRATION" id="1" value="h323_ivr_duration" pec="9" expr="0" direction="out"/><br><br> <param name="RADIUS_RETURN_CODE" id="103" value="return_code" pec="9" expr="0" direction="out"/><br> <!-- expr param is to be ignored here--><br><br> </vsas><br></configuration><br><br><br><br><br>in the dialplan you need to trigger auth as:<br><br> <action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/><br><br><br><br>there are two behaviours:<br><br>1. authorize the call according to username&pass and dialed number - if authorized, the radius server returns credit time towards the dialed number<br>2. authorize the call according to username&pass - if authorized, the radius server returns the current account balance<br><br><br><br><br><br><br><br> <extension name="unitest_rad-ANI-auth"><br> <condition field="destination_number" expression="^601$"><br> <action application="log" data="INFO PRIJE RAD_AUTH "/><br><br><br> <action inline="true" application="set" data="CALLID=h323-conf-id=${uuid}"/><br> <action inline="true" application="set" data="SERVICENUM=h323-prompt-id=${destination_number}"/><br><br> <action inline="true" application="set" data="TRANSACTIONID=h323-ivr-out=transactionID:1234"/><br><!-- <action inline="true" application="set" data="CALLINGNUMBER=${caller_id_number}"/> --><br><br> <action inline="true" application="set" data="CALLINGNUMBER=38516060333"/><br> <action inline="true" application="set" data="USERNAME=38516060333"/><br><br><!-- <action inline="true" application="set" data="USERNAME=209354"/> --><br> <action inline="true" application="set" data="PASSWD=003282"/><br><br><!-- <action inline="true" application="set" data="DIALED_NUMBER=16094191500"/> --><br><br> <action application="sleep" data="2000"/><br> <action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/><br><br><br><br> <action application="log" data="INFO AUTH_RESULT=${AUTH_RESULT}"/><br> <action application="log" data="INFO billing_model=${billing_model}"/><br> <action application="log" data="INFO credit_amount=${credit_amount}"/><br><br> <action application="log" data="INFO currency=${currency}"/><br> <action application="log" data="INFO preffered_lang=${preffered_lang}"/><br> <action application="log" data="INFO credit_time=${credit_time}"/><br><br> <action application="log" data="INFO h323_ivr_duration=${h323_ivr_duration}"/><br> <action application="log" data="INFO return_code=${return_code}"/><br> <!-- <action application="execute_extension" data="AUTH XML default"/> --><br><br> </condition><br> </extension><br><br><br> <extension name="unitest_rad-ANI-balance"><br> <condition field="destination_number" expression="^602$"><br> <action application="log" data="INFO PRIJE RAD_AUTH "/><br><br><br> <action inline="true" application="set" data="CALLID=h323-conf-id=${uuid}"/><br> <action inline="true" application="set" data="SERVICENUM=h323-prompt-id=${destination_number}"/><br><br> <action inline="true" application="set" data="TRANSACTIONID=h323-ivr-out=transactionID:1234"/><br><!-- <action inline="true" application="set" data="CALLINGNUMBER=${caller_id_number}"/> --><br><br> <action inline="true" application="set" data="CALLINGNUMBER=38516060333"/><br> <action inline="true" application="set" data="USERNAME=38516060333"/><br><br><!-- <action inline="true" application="set" data="USERNAME=209354"/> --><br> <action inline="true" application="set" data="PASSWD=003282"/><br><br> <action inline="true" application="set" data="DIALED_NUMBER=16094191500"/><br><br> <action application="sleep" data="2000"/><br> <action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/><br><br><br><br> <action application="log" data="INFO AUTH_RESULT=${AUTH_RESULT}"/><br> <action application="log" data="INFO billing_model=${billing_model}"/><br> <action application="log" data="INFO credit_amount=${credit_amount}"/><br><br> <action application="log" data="INFO currency=${currency}"/><br> <action application="log" data="INFO preffered_lang=${preffered_lang}"/><br> <action application="log" data="INFO credit_time=${credit_time}"/><br><br> <action application="log" data="INFO h323_ivr_duration=${h323_ivr_duration}"/><br> <action application="log" data="INFO return_code=${return_code}"/><br> <!-- <action application="execute_extension" data="AUTH XML default"/> --><br><br> </condition><br> </extension><br><br><br>will update the wiki by the end of the week.<br><br><br>you have enough information for now.<br><br>Tihomir.<br><br><br><br><div class="ecxecxecxgmail_quote">On Tue, Mar 30, 2010 at 1:52 PM, Abid Saleem <span dir="ltr"><<a href="mailto:abid_freeswitch@live.com" style="font-weight:inherit;text-decoration:underline;color:rgb(0, 104, 207);cursor:pointer">abid_freeswitch@live.com</a>></span> wrote:<br><br><blockquote class="ecxecxecxgmail_quote" style="padding-left:1ex"><br><br><br><br><div><br>Hi Neal and other Contributors to FS,<div><br></div><div>I recieved an answer on the list that mod_rad_auth is ready. I upgraded FS to download and install it by "make current" and it is successfully built and installed. Could you please outline the detailed steps to do all this configuration.</div><br><div><br></div><div>If it is still not ready, is there any other method that somebody has already implemented like perl scripts etc. Any help in this regard is badly required. THanks for your cooperation.</div><div><br></div><br><div>Regards</div><div>----------</div><div>Abid Saleem</div><div>Sr. Product Manager</div><div><br></div></div></blockquote></div></span></div>                                            <br><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="https://signup.live.com/signup.aspx?id=60969">Get it now.</a></div>                                            <br><hr>Hotmail: Powerful Free email with security by Microsoft. <a href="https://signup.live.com/signup.aspx?id=60969">Get it now.</a></div>                                            <br /><hr />Hotmail: Trusted email with powerful SPAM protection. <a href='https://signup.live.com/signup.aspx?id=60969' target='_new'>Sign up now.</a></body>
</html>