<div dir="ltr">Add strings to dialplan like<div>&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;GWID=${h323-gw-id}&quot;/&gt;<br></div><div>&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;TRANSACTIONID=h323-ivr-out=transactionID:1234&quot;/&gt;<br></div><div>&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;CALLEDNUMBER=${destination_number}&quot;/&gt;<br></div><div>&lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;CALLINGNUMBER=${caller_id_number}&quot;/&gt;</div><div><br></div><div>You can try comment this attributs in <span style="font-size:12.8000001907349px">rad_auth.conf.xml</span></div><div><br><div style="font-size:12.8000001907349px"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 15, 2015 at 11:26 AM, Густаво Силва <span dir="ltr">&lt;<a href="mailto:gfs@etherway.ru" target="_blank">gfs@etherway.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 bgcolor="#FFFFFF" text="#000000">
    Sergey, do you know why I am getting these variables undefined?<br>
    <br>
    [ERR] mod_rad_auth.c:178 Undefined channel variable: GWID.<br>
    [ERR] mod_rad_auth.c:178 Undefined channel variable: TRANSACTIONID.<br>
    [ERR] mod_rad_auth.c:178 Undefined channel variable: CALLEDNUMBER.<br>
    [ERR] mod_rad_auth.c:178 Undefined channel variable: CALLINGNUMBER.<div><div class="h5"><br>
    <br>
    <br>
    <br>
    <div>On 14.04.2015 22:34, Sergey Safarov
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">In provided example password stored in directory.
        <div>Directory can be in mod_xml_radius (<a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_xml_radius" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/mod_xml_radius</a>)
          or other dynamically generated directory.</div>
        <div><br>
        </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. </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. </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&#39;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, </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>
                <div><br>
                </div>
                <div>Sent from my BlackBerry 10 smartphone.</div>
              </span>
              <table style="background-color:white;border-spacing:0px" width="100%">
                <tbody>
                  <tr>
                    <td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">
                      <div>
                        <div><b>From: </b>Sergey Safarov</div>
                        <div><b>Sent: </b>вторник, 14 апреля 2015 г.,
                          21:16</div>
                        <div>
                          <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>
                        </div>
                      </div>
                    </td>
                  </tr>
                </tbody>
              </table>
              <div>
                <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=&quot;rad_auth.conf&quot;
                          description=&quot;radius authentification
                          module&quot;&gt;</div>
                        <div> &lt;settings&gt;</div>
                        <div>    &lt;!-- backward compatibility to allow
                          radiusclient config file instead of an
                          embedded config --&gt;</div>
                        <div>    &lt;!--  &lt;param name=&quot;radius_config&quot;
                          value=&quot;/usr/local/etc/radiusclient/radiusclient.conf&quot;/&gt;
                            --&gt;</div>
                        <div> &lt;/settings&gt;</div>
                        <div><br>
                        </div>
                        <div> &lt;client&gt;</div>
                        <div>   &lt;param name=&quot;authserver&quot;
                          value=&quot;10.40.0.5:1814:x7h6t4g&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;dictionary&quot;
                          value=&quot;/etc/radiusclient/dictionary.all&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;seqfile&quot;
                          value=&quot;/var/run/radius.seq&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;mapfile&quot;
                          value=&quot;/etc/radiusclient/port-id-map&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;default_realm&quot;
                          value=&quot;&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;radius_timeout&quot;
                          value=&quot;1&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;radius_retries&quot;
                          value=&quot;0&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;radius_deadtime&quot;
                          value=&quot;0&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;bindaddr&quot; value=&quot;*&quot;/&gt;</div>
                        <div> &lt;/client&gt;</div>
                        <div><br>
                        </div>
                        <div> &lt;vsas&gt;</div>
                        <div>   &lt;!--</div>
                        <div>        name:       just a description</div>
                        <div>        value:      direct input or
                          variable</div>
                        <div>        pec:        vendor ID (0 for
                          default, 9 for cisco...)</div>
                        <div>        expr:       0 - direct input
                          (string), 1 - channel variable</div>
                        <div>        direction:  in for radius-request,
                          out for radius-response</div>
                        <div>   --&gt;</div>
                        <div><br>
                        </div>
                        <div>   &lt;!-- mappings for radius request
                          message; input attributes --&gt;</div>
                        <div>   &lt;param name=&quot;h323-conf-id&quot; id=&quot;24&quot;
                          value=&quot;CALLID&quot; pec=&quot;9&quot; expr=&quot;1&quot;
                          direction=&quot;in&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;h323-gw-id&quot; id=&quot;33&quot;
                          value=&quot;GWID&quot; pec=&quot;9&quot; expr=&quot;1&quot;
                          direction=&quot;in&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;Cisco-AVPair&quot; id=&quot;1&quot;
                          value=&quot;TRANSACTIONID&quot; pec=&quot;9&quot; expr=&quot;1&quot;
                          direction=&quot;in&quot;/&gt;<br>
                        </div>
                        <div>   &lt;param name=&quot;Called-Station-Id&quot;
                          id=&quot;30&quot; value=&quot;CALLEDNUMBER&quot; pec=&quot;0&quot; expr=&quot;1&quot;
                          direction=&quot;in&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;Calling-Station-Id&quot;
                          id=&quot;31&quot; value=&quot;CALLINGNUMBER&quot; pec=&quot;0&quot; expr=&quot;1&quot;
                          direction=&quot;in&quot;/&gt;--&gt;</div>
                        <div>   &lt;param name=&quot;NAS-Port-Type&quot; id=&quot;61&quot;
                          value=&quot;0&quot; pec=&quot;0&quot; expr=&quot;0&quot; direction=&quot;in&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;Login-User&quot; id=&quot;1&quot;
                          value=&quot;1&quot; pec=&quot;0&quot; expr=&quot;0&quot; direction=&quot;in&quot;/&gt;
                          --&gt;<br>
                        </div>
                        <div><br>
                        </div>
                        <div>   &lt;!-- mappings for radius-response
                          message; output values from returning
                          outributes --&gt;</div>
                        <div>   &lt;param name=&quot;CREDIT_AMOUNT&quot; id=&quot;101&quot;
                          value=&quot;credit_amount&quot; pec=&quot;9&quot; expr=&quot;0&quot;
                          direction=&quot;out&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;CURRENCY&quot; id=&quot;110&quot;
                          value=&quot;currency&quot; pec=&quot;9&quot; expr=&quot;0&quot;
                          direction=&quot;out&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;CREDIT_TIME&quot; id=&quot;102&quot;
                          value=&quot;h323-credit_time&quot; pec=&quot;9&quot; expr=&quot;0&quot;
                          direction=&quot;out&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;PER_MINUTE_PRICE&quot;
                          id=&quot;251&quot; value=&quot;Cisco-Servicce-Info&quot; pec=&quot;9&quot;
                          expr=&quot;0&quot; direction=&quot;out&quot;/&gt;</div>
                        <div>   &lt;param name=&quot;PREFFERED_LANG&quot; id=&quot;107&quot;
                          value=&quot;preffered_lang&quot; pec=&quot;9&quot; expr=&quot;0&quot;
                          direction=&quot;out&quot;/&gt;<br>
                        </div>
                        <div>   &lt;param name=&quot;H323-IVR-IN:DIRATION&quot;
                          id=&quot;1&quot; value=&quot;h323_ivr_duration&quot; pec=&quot;9&quot;
                          expr=&quot;0&quot; direction=&quot;out&quot;/&gt; --&gt;</div>
                        <div>   &lt;param name=&quot;RADIUS_RETURN_CODE&quot;
                          id=&quot;103&quot; value=&quot;return_code&quot; pec=&quot;9&quot; expr=&quot;0&quot;
                          direction=&quot;out&quot;/&gt;</div>
                        <div>   &lt;!-- expr param is to be ignored
                          here--&gt;</div>
                        <div> &lt;/vsas&gt;</div>
                        <div>&lt;/configuration&gt;</div>
                        <div>[root@fs1 autoload_configs]# </div>
                      </div>
                      <div><br>
                      </div>
                      <div>Dialplan fragment</div>
                      <div>
                        <div>      &lt;extension
                          name=&quot;operator-rad-auth&quot; continue=&quot;true&quot;&gt;</div>
                        <div>         &lt;condition regex=&quot;any&quot;&gt;</div>
                        <div>            &lt;regex
                          field=&quot;${accountcode}&quot; expression=&quot;^8$&quot;/&gt;</div>
                        <div>         &lt;/condition&gt;</div>
                        <div>         &lt;condition
                          field=&quot;${destination_number}&quot;
                          expression=&quot;^\+(\d+)$&quot;&gt;</div>
                        <div>            &lt;action application=&quot;export&quot;
                          data=&quot;h323-gw-id=${accountcode_bleg}&quot;/&gt;</div>
                        <div>            &lt;action application=&quot;unset&quot;
                          data=&quot;disable_radius_start&quot;/&gt;</div>
                        <div>            &lt;action application=&quot;unset&quot;
                          data=&quot;disable_radius_stop&quot;/&gt;</div>
                        <div>            &lt;action inline=&quot;true&quot;
                          application=&quot;set&quot;
                          data=&quot;CALLID=h323-conf-id=${uuid}&quot;/&gt;</div>
                        <div>            &lt;action inline=&quot;true&quot;
                          application=&quot;set&quot;
                          data=&quot;GWID=${accountcode_bleg}&quot;/&gt;</div>
                        <div>            &lt;action inline=&quot;true&quot;
                          application=&quot;set&quot; data=&quot;USERNAME=<a href="mailto:login@operator.ru" target="_blank">login@operator.ru</a>&quot;/&gt;</div>
                        <div>            &lt;action inline=&quot;true&quot;
                          application=&quot;set&quot; data=&quot;PASSWD=xxxxxxxx&quot;/&gt;</div>
                        <div>            &lt;action inline=&quot;true&quot;
                          application=&quot;set&quot; data=&quot;DIALED_NUMBER=$1&quot;/&gt;</div>
                        <div>            &lt;action
                          application=&quot;auth_function&quot; data=&quot;in
                          ${DIALED_NUMBER}, in ${USERNAME}, in
                          ${PASSWD}, out AUTH_RESULT&quot;/&gt;</div>
                        <div>         &lt;/condition&gt;</div>
                        <div>      &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   attribute
                          (CREDIT_AMOUNT) found in radius packet</div>
                        <div>[DEBUG] mod_rad_auth.c:523   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   attribute
                          (CURRENCY) found in radius packet</div>
                        <div>[DEBUG] mod_rad_auth.c:523   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   attribute
                          (CREDIT_TIME) found in radius packet</div>
                        <div>[DEBUG] mod_rad_auth.c:523   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   attribute
                          (PER_MINUTE_PRICE) found in radius packet</div>
                        <div>[DEBUG] mod_rad_auth.c:523   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   attribute
                          (RADIUS_RETURN_CODE) found in radius packet</div>
                        <div>[DEBUG] mod_rad_auth.c:523   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><br>
                            </div>
                            <div>First
                              it says that the the login is OK and after
                              it says that the login is incorrect. </div>
                            <div><br>
                            </div>
                            <div><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>Sent from my BlackBerry 10 smartphone.</div>
                              <div style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">
                                <table style="background-color:white;border-spacing:0px" width="100%">
                                  <tbody>
                                    <tr>
                                      <td><br>
                                      </td>
                                      <td rowspan="2" style="text-align:center;font-size:initial;background-color:rgb(255,255,255)">
                                        <span>  Original Message
                                           </span> </td>
                                    </tr>
                                    <tr>
                                      <td colspan="2"> <br>
                                      </td>
                                    </tr>
                                  </tbody>
                                </table>
                              </div>
                              <table style="background-color:white;border-spacing:0px" width="100%">
                                <tbody>
                                  <tr>
                                    <td colspan="2" style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">
                                      <div>
                                        <div><b>From: </b>Борисов,
                                          Дмитрий / Dmitriy Borisov</div>
                                        <div><b>Sent: </b>вторник, 14
                                          апреля 2015 г., 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><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=&quot;auth&quot;
                                          continue=&quot;true&quot;&gt;<br>
                                            &lt;condition
                                          field=&quot;${radius_auth_result}&quot;
                                          expression=&quot;^0$&quot;&gt;<br>
                                            &lt;action
                                          application=&quot;radius_auth&quot;
                                          inline=&quot;true&quot;/&gt;<br>
                                            &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" 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>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
  </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>