<html><head></head><body style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Wow, it seems wht I really want!</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">I will test it and let you know</div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div><div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Tks!!!</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div>                                                                                                                                                                                                   <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">Sent&nbsp;from&nbsp;my&nbsp;BlackBerry&nbsp;10&nbsp;smartphone.</div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Sergey Safarov</div><div><b>Sent: </b>вторник, 14 апреля 2015&nbsp;г., 22:33</div><div><b>To: </b>FreeSWITCH Users Help</div><div><b>Reply To: </b>FreeSWITCH Users Help</div><div><b>Subject: </b>Re: [Freeswitch-users] Dialplan authentication</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr">You can use following example<div>&lt;action inline="false" application="set" data="PASSWD=${user_data(${caller_id_number}@${sip_from_host} param password)}"/&gt;</div><div><br><div>In dialplan in can be line this</div><div><br></div><div><div>&lt;extension name="rad-auth" continue="true"&gt;</div><div><br></div><div>&nbsp; &nbsp;&lt;condition field="destination_number" expression="^\+(\d+)$"&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="log" data="INFO &nbsp;Before Auth "/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp;&lt;action inline="true" application="set" data="CALLID=h323-conf-id=${uuid}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action inline="true" application="set" data="GWID=${h323-gw-id}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action inline="true" application="set" data="USERNAME=${username}@${sip_from_host}"/&gt;<br></div><div>&nbsp; &nbsp; &nbsp;&lt;action inline="false" application="set" data="PASSWD=${user_data(${caller_id_number}@${sip_from_host} param password)}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="DIALED_NUMBER=${destination_number}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="DIALED_NUMBER=$1"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp;&lt;action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/&gt;</div><div><br></div><div>&nbsp; &nbsp; &nbsp;&lt;action application="log" data="INFO &nbsp;AUTH_RESULT=${AUTH_RESULT}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="log" data="INFO &nbsp;credit_amount=${credit_amount}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="log" data="INFO &nbsp;credit_time=${h323-credit_time}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="log" data="INFO &nbsp;per_minute_price=${Cisco-Servicce-Info}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="log" data="INFO &nbsp;return_code=${return_code}"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="unset" data="disable_radius_start"/&gt;</div><div>&nbsp; &nbsp; &nbsp;&lt;action application="unset" data="disable_radius_stop"/&gt;</div><div>&nbsp; &nbsp;&lt;/condition&gt;</div><div>&lt;/extension&gt;</div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 14, 2015 at 9:56 PM, Gustavo Silva <span dir="ltr">&lt;<a href="mailto:silvagustavo@yandex.ru" target="_blank">silvagustavo@yandex.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);line-height:initial">                                                                                      <div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">Hi Sergey,</font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif"><br></font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">Tks for the help but there is a catch in this solution. I will be still having ‎the password and user name in freeswitch server.&nbsp;</font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif"><br></font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">I would like that the radius server handles it.&nbsp;</font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif"><br></font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">Is there a way with the rad_auth module where I wouldn't need to set up password in diaplan file? All the authentication should be done with the radius server.</font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif"><br></font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">I say that because, for example: I have 200 users, with diferentes passwords configured in the radius server. So, by this solution with rad_auth module, I should also have 200 different password in the diaplan configuration, right?</font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif"><br></font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">Regards,&nbsp;</font></span></div><div style="width:100%;font-size:initial;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-size:initial;line-height:initial;text-align:initial"><font face="Calibri, Slate Pro, sans-serif">Gustavo </font></span></div><span class="">                                                                                                                                     <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div>                                                                                                                                                                                                   <div style="font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">Sent&nbsp;from&nbsp;my&nbsp;BlackBerry&nbsp;10&nbsp;smartphone.</div>                                                                                                                                                                                  </span><table width="100%" style="background-color:white;border-spacing:0px"> <tbody><tr><td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in;font-family:Tahoma,'BB Alpha Sans','Slate Pro';font-size:10pt">  <div><b>From: </b>Sergey Safarov</div><div><b>Sent: </b>вторник, 14 апреля 2015&nbsp;г., 21:16</div><div><div class="h5"><div><b>To: </b>FreeSWITCH Users Help</div><div><b>Reply To: </b>FreeSWITCH Users Help</div><div><b>Subject: </b>Re: [Freeswitch-users] Dialplan authentication</div></div></div></div></td></tr></tbody></table><div><div class="h5"><div style="border-style:solid none none;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"></div><br><div><div dir="ltr">This can help you<div><br></div><div><div>[root@fs1 autoload_configs]# cat rad_auth.conf.xml</div><div>&lt;configuration name="rad_auth.conf" description="radius authentification module"&gt;</div><div>&nbsp;&lt;settings&gt;</div><div>&nbsp; &nbsp; &lt;!-- backward compatibility to allow radiusclient config file instead of an embedded config --&gt;</div><div>&nbsp; &nbsp; &lt;!-- &nbsp;&lt;param name="radius_config" value="/usr/local/etc/radiusclient/radiusclient.conf"/&gt; &nbsp; --&gt;</div><div>&nbsp;&lt;/settings&gt;</div><div><br></div><div>&nbsp;&lt;client&gt;</div><div>&nbsp; &nbsp;&lt;param name="authserver" value="10.40.0.5:1814:x7h6t4g"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="dictionary" value="/etc/radiusclient/dictionary.all"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="seqfile" value="/var/run/radius.seq"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="mapfile" value="/etc/radiusclient/port-id-map"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="default_realm" value=""/&gt;</div><div>&nbsp; &nbsp;&lt;param name="radius_timeout" value="1"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="radius_retries" value="0"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="radius_deadtime" value="0"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="bindaddr" value="*"/&gt;</div><div>&nbsp;&lt;/client&gt;</div><div><br></div><div>&nbsp;&lt;vsas&gt;</div><div>&nbsp; &nbsp;&lt;!--</div><div>&nbsp; &nbsp; &nbsp; &nbsp; name: &nbsp; &nbsp; &nbsp; just a description</div><div>&nbsp; &nbsp; &nbsp; &nbsp; value: &nbsp; &nbsp; &nbsp;direct input or variable</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pec: &nbsp; &nbsp; &nbsp; &nbsp;vendor ID (0 for default, 9 for cisco...)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; expr: &nbsp; &nbsp; &nbsp; 0 - direct input (string), 1 - channel variable</div><div>&nbsp; &nbsp; &nbsp; &nbsp; direction: &nbsp;in for radius-request, out for radius-response</div><div>&nbsp; &nbsp;--&gt;</div><div><br></div><div>&nbsp; &nbsp;&lt;!-- mappings for radius request message; input attributes --&gt;</div><div>&nbsp; &nbsp;&lt;param name="h323-conf-id" id="24" value="CALLID" pec="9" expr="1" direction="in"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="h323-gw-id" id="33" value="GWID" pec="9" expr="1" direction="in"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="Cisco-AVPair" id="1" value="TRANSACTIONID" pec="9" expr="1" direction="in"/&gt;<br></div><div>&nbsp; &nbsp;&lt;param name="Called-Station-Id" id="30" value="CALLEDNUMBER" pec="0" expr="1" direction="in"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="Calling-Station-Id" id="31" value="CALLINGNUMBER" pec="0" expr="1" direction="in"/&gt;--&gt;</div><div>&nbsp; &nbsp;&lt;param name="NAS-Port-Type" id="61" value="0" pec="0" expr="0" direction="in"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="Login-User" id="1" value="1" pec="0" expr="0" direction="in"/&gt; --&gt;<br></div><div><br></div><div>&nbsp; &nbsp;&lt;!-- mappings for radius-response message; output values from returning outributes --&gt;</div><div>&nbsp; &nbsp;&lt;param name="CREDIT_AMOUNT" id="101" value="credit_amount" pec="9" expr="0" direction="out"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="CURRENCY" id="110" value="currency" pec="9" expr="0" direction="out"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="CREDIT_TIME" id="102" value="h323-credit_time" pec="9" expr="0" direction="out"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="PER_MINUTE_PRICE" id="251" value="Cisco-Servicce-Info" pec="9" expr="0" direction="out"/&gt;</div><div>&nbsp; &nbsp;&lt;param name="PREFFERED_LANG" id="107" value="preffered_lang" pec="9" expr="0" direction="out"/&gt;<br></div><div>&nbsp; &nbsp;&lt;param name="H323-IVR-IN:DIRATION" id="1" value="h323_ivr_duration" pec="9" expr="0" direction="out"/&gt; --&gt;</div><div>&nbsp; &nbsp;&lt;param name="RADIUS_RETURN_CODE" id="103" value="return_code" pec="9" expr="0" direction="out"/&gt;</div><div>&nbsp; &nbsp;&lt;!-- expr param is to be ignored here--&gt;</div><div>&nbsp;&lt;/vsas&gt;</div><div>&lt;/configuration&gt;</div><div>[root@fs1 autoload_configs]#&nbsp;</div></div><div><br></div><div>Dialplan fragment</div><div><div>&nbsp; &nbsp; &nbsp; &lt;extension name="operator-rad-auth" continue="true"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition regex="any"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;regex field="${accountcode}" expression="^8$"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;condition field="${destination_number}" expression="^\+(\d+)$"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="export" data="h323-gw-id=${accountcode_bleg}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="unset" data="disable_radius_start"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="unset" data="disable_radius_stop"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="CALLID=h323-conf-id=${uuid}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="GWID=${accountcode_bleg}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="USERNAME=<a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a>"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="PASSWD=xxxxxxxx"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action inline="true" application="set" data="DIALED_NUMBER=$1"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="auth_function" data="in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp; &nbsp; &nbsp; &lt;/extension&gt;</div></div><div><br></div><div>Log fragment</div><div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> parsing [mr24.gateways.rcsnet.ru-&gt;operator-rad-auth] continue=true</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Regex (PASS) [operator-rad-auth] ${accountcode}(8) =~ /^8$/ match=any</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Regex (PASS) [operator-rad-auth] ${destination_number}(+749593377xx) =~ /^\+(\d+)$/ break=on-false</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action export(h323-gw-id=${accountcode_bleg})</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action unset(disable_radius_start)</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action unset(disable_radius_stop)</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action set(CALLID=h323-conf-id=${uuid}) INLINE</div><div>EXECUTE sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> set(CALLID=h323-conf-id=bd091212-e2b0-11e4-98e2-d102deb9a97d)</div><div>2015-04-14 14:15:43.446357 [DEBUG] mod_dptools.c:1435 sofia/mr24/<a href="mailto:00000796396528xx@gateways.operator.ru" target="_blank">00000796396528xx@gateways.operator.ru</a> SET [CALLID]=[h323-conf-id=bd091212-e2b0-11e4-98e2-d102deb9a97d]</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action set(GWID=${accountcode_bleg}) INLINE</div><div>EXECUTE sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> set(GWID=1460)</div><div>2015-04-14 14:15:43.446357 [DEBUG] mod_dptools.c:1435 sofia/mr24/<a href="mailto:00000796396528xx@gateways.rcsnet.ru" target="_blank">00000796396528xx@gateways.rcsnet.ru</a> SET [GWID]=[1460]</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action set(USERNAME=<a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a>) INLINE</div><div>EXECUTE sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> set(USERNAME=<a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a>)</div><div>2015-04-14 14:15:43.446357 [DEBUG] mod_dptools.c:1435 sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> SET [USERNAME]=[<a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a>]</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action set(PASSWD=xxxxxxxx) INLINE</div><div>EXECUTE sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> set(PASSWD=xxxxxxxx)</div><div>2015-04-14 14:15:43.446357 [DEBUG] mod_dptools.c:1435 sofia/mr24/<a href="mailto:00000796396528xx@gateways.operator.ru" target="_blank">00000796396528xx@gateways.operator.ru</a> SET [PASSWD]=[xxxxxxxxxxx]</div><div>Dialplan: sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action set(DIALED_NUMBER=749593377xx) INLINE</div><div>EXECUTE sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> set(DIALED_NUMBER=749593377xx)</div><div>2015-04-14 14:15:43.446357 [DEBUG] mod_dptools.c:1435 sofia/mr24/<a href="mailto:00000796396528xx@gateways.rcsnet.ru" target="_blank">00000796396528xx@gateways.rcsnet.ru</a> SET [DIALED_NUMBER]=[749593377xx]</div><div>sofia/mr24/<a href="mailto:0000079639652834@gateways.rcsnet.ru" target="_blank">0000079639652834@gateways.rcsnet.ru</a> Action auth_function(in ${DIALED_NUMBER}, in ${USERNAME}, in ${PASSWD}, out AUTH_RESULT)</div><div>..........</div></div><div><br></div><div><div>bd091212-e2b0-11e4-98e2-d102deb9a97d EXECUTE sofia/mr24/<a href="mailto:00000796396528xx@gateways.operator.ru" target="_blank">00000796396528xx@gateways.operator.ru</a> auth_function(in 74959337786, in <a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a>, in xxxxxxxxxxxx, out AUTH_RESULT)</div><div>[DEBUG] mod_rad_auth.c:301 allocate initial structure.</div><div>[DEBUG] mod_rad_auth.c:313 initialzed configuration.</div><div>[DEBUG] mod_rad_auth.c:318 set authserver := 10.40.0.5:1814:xxxxxxxx.</div><div>[DEBUG] mod_rad_auth.c:318 set dictionary := /etc/radiusclient/dictionary.all.</div><div>[DEBUG] mod_rad_auth.c:318 set seqfile := /var/run/radius.seq.</div><div>[DEBUG] mod_rad_auth.c:318 set mapfile := /etc/radiusclient/port-id-map.</div><div>[DEBUG] mod_rad_auth.c:318 set default_realm := .</div><div>[DEBUG] mod_rad_auth.c:318 set radius_timeout := 1.</div><div>[DEBUG] mod_rad_auth.c:318 set radius_retries := 0.</div><div>[DEBUG] mod_rad_auth.c:318 set radius_deadtime := 0.</div><div>[DEBUG] mod_rad_auth.c:318 set bindaddr := *.</div><div>[DEBUG] mod_rad_auth.c:371 ... radius: User-Name: <a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a></div><div>[DEBUG] mod_rad_auth.c:380 ... radius: User-Password: xxxxxxxxxxxxxxxxxx</div><div>DEBUG] mod_rad_auth.c:396 ... radius: Called-station-Id: 74959337786</div><div>[DEBUG] mod_rad_auth.c:413 Handle attribute: h323-conf-id</div><div>[DEBUG] mod_rad_auth.c:439 ... dictionary data: id:24, vendor id:9, attr type:0, attr name:h323-conf-id (589848)</div><div>[DEBUG] mod_rad_auth.c:444 ... radius: key:h323-conf-id, value:CALLID (h323-conf-id=bd091212-e2b0-11e4-98e2-d102deb9a97d) as string</div><div>[DEBUG] mod_rad_auth.c:413 Handle attribute: h323-gw-id</div><div>[DEBUG] mod_rad_auth.c:439 ... dictionary data: id:33, vendor id:9, attr type:0, attr name:h323-gw-id (589857)</div><div>[DEBUG] mod_rad_auth.c:444 ... radius: key:h323-gw-id, value:GWID (1460) as string</div><div>[DEBUG] mod_rad_auth.c:413 Handle attribute: NAS-Port-Type</div><div>[DEBUG] mod_rad_auth.c:439 ... dictionary data: id:61, vendor id:0, attr type:1, attr name:NAS-Port-Type (61)</div><div>[DEBUG] mod_rad_auth.c:456 ... radius: key:NAS-Port-Type, value:0 (0) as integer</div><div>[DEBUG] mod_rad_auth.c:491 sending radius packet ...</div><div>[DEBUG] mod_rad_auth.c:497 RADIUS Authentication OK</div><div>[DEBUG] mod_rad_auth.c:519 Handle attribute: CREDIT_AMOUNT</div><div>[DEBUG] mod_rad_auth.c:522 &nbsp; attribute (CREDIT_AMOUNT) found in radius packet</div><div>[DEBUG] mod_rad_auth.c:523 &nbsp; set variable credit_amount := h323-credit-amount=-600913.47</div><div>[DEBUG] mod_rad_auth.c:519 Handle attribute: CURRENCY</div><div>[DEBUG] mod_rad_auth.c:522 &nbsp; attribute (CURRENCY) found in radius packet</div><div>[DEBUG] mod_rad_auth.c:523 &nbsp; set variable currency := h323-currency=RUR</div><div>[DEBUG] mod_rad_auth.c:519 Handle attribute: CREDIT_TIME</div><div>[DEBUG] mod_rad_auth.c:522 &nbsp; attribute (CREDIT_TIME) found in radius packet</div><div>[DEBUG] mod_rad_auth.c:523 &nbsp; set variable h323-credit_time := h323-credit-time=86400</div><div>[DEBUG] mod_rad_auth.c:519 Handle attribute: PER_MINUTE_PRICE</div><div>[DEBUG] mod_rad_auth.c:522 &nbsp; attribute (PER_MINUTE_PRICE) found in radius packet</div><div>[DEBUG] mod_rad_auth.c:523 &nbsp; set variable Cisco-Servicce-Info := 0.000000</div><div>[DEBUG] mod_rad_auth.c:519 Handle attribute: RADIUS_RETURN_CODE</div><div>[DEBUG] mod_rad_auth.c:522 &nbsp; attribute (RADIUS_RETURN_CODE) found in radius packet</div><div>[DEBUG] mod_rad_auth.c:523 &nbsp; set variable return_code := h323-return-code=0</div></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 14, 2015 at 5:28 PM, Gustavo Silva <span dir="ltr">&lt;<a href="mailto:silvagustavo@yandex.ru" target="_blank">silvagustavo@yandex.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="background-color:rgb(255,255,255);line-height:initial">                                                                                      <div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">First it says that the the login is OK and after it says that the login is incorrect.&nbsp;</div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br></div><div style="width:100%;font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><span style="font-family:sans-serif;white-space:pre-wrap;line-height:initial">Tue Apr 14 17:24:11 2015 : Auth: Login OK: [1008/&lt;via Auth-Type = </span></div><span style="font-family:sans-serif;white-space:pre-wrap">DIGEST&gt;] (from client localhost port 0 cli 1008)</span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">Tue Apr 14 17:24:11 2015 : Info: rlm_radutmp: Login entry for NAS </span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">localhost port 0 duplicate</span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">Tue Apr 14 17:24:11 2015 : Auth: Login incorrect: [&lt;no User-Name </span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">attribute&gt;/&lt;no User-Password attribute&gt;] (from client localhost port 0 </span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">cli 1008)</span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">Tue Apr 14 17:24:14 2015 : Error: rlm_radutmp: Logout for NAS localhost </span><br style="font-family:sans-serif;white-space:pre-wrap"><span style="font-family:sans-serif;white-space:pre-wrap">port 0, but no Login record</span><div><br></div><div><br></div><div><br style="font-family:sans-serif;white-space:pre-wrap">                                                                                                                                     <div></div>                                                              <div style="font-size:initial;font-family:Calibri,'Slate Pro',sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">Sent&nbsp;from&nbsp;my&nbsp;BlackBerry&nbsp;10&nbsp;smartphone.</div>                                       <div></div><div style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)"><table width="100%" style="background-color:white;border-spacing:0px">                                          <tbody><tr><td></td><td rowspan="2" style="text-align:center;font-size:initial;background-color:rgb(255,255,255)">                                                                                            <span style="background-color:white;color:#0073bc;font-size:smaller;font-family:&quot;Slate Pro&quot;">&nbsp; Original Message &nbsp;</span>      </td></tr>                                                                                                                                                               <tr> <td colspan="2"><div style="border:none;border-top:solid #0073bc 1.0pt"></div>                                                                                     </td></tr></tbody></table></div>                                                                                                                                           <table width="100%" style="background-color:white;border-spacing:0px"> <tbody><tr><td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">                           <div style="font-size:smaller;font-family:&quot;Tahoma&quot;,&quot;BB Alpha Sans&quot;,&quot;Slate Pro&quot;,&quot;sans-serif&quot;">  <div><b>From: </b>Борисов, Дмитрий / Dmitriy Borisov</div><div><b>Sent: </b>вторник, 14 апреля 2015&nbsp;г., 17:22</div><div><b>To: </b>FreeSWITCH Users Help</div><div><b>Reply To: </b>FreeSWITCH Users Help</div><div><b>Subject: </b>Re: [Freeswitch-users] Dialplan authentication</div></div></td></tr></tbody></table><div><div><div style="border-style:solid none none;border-top-color:rgb(186,188,209);border-top-width:1pt;font-size:initial;text-align:initial;background-color:rgb(255,255,255)"></div><br><div><div dir="ltr"><div>Hi!</div><div><br></div>Configuration looks good there, and what in radius.log on RADIUS server?</div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-14 14:01 GMT+03:00 Густаво Силва <span dir="ltr">&lt;<a href="mailto:gfs@etherway.ru" target="_blank">gfs@etherway.ru</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have set up the following in my dialplan:<br>
<br>
&lt;extension name="auth" continue="true"&gt;<br>
&nbsp; &lt;condition field="${radius_auth_result}" expression="^0$"&gt;<br>
&nbsp; &lt;action application="radius_auth" inline="true"/&gt;<br>
&nbsp; &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
I am facing the following error:<br>
<br>
Dialplan: sofia/internal/1008@ipaddress Regex (PASS) [auth]<br>
${radius_auth_result}(0) =~ /^0$/ break=on-false<br>
Dialplan: sofia/internal/1008@ipaddress Action radius_auth() INLINE<br>
EXECUTE sofia/internal/1008@ipaddress radius_auth()<br>
2015-04-14 13:53:42.734956 [ERR] mod_xml_radius.c:1090 mod_xml_radius:<br>
Failed to authenticate<br>
<br>
What should I do to the call authentication work?<br>
<br>
Regards,<br>
Gustavo<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>with best regards,</div><div>Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</div>
<br></div></div></div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br></div></div></div></div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br><!--end of _originalContent --></div></body></html>