<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    On 2/28/11 10:44 AM, Pablo Ros wrote:
    <blockquote
      cite="mid:AANLkTi=RnCJ7xJ57HHmgaCNFvCUwV_-dUwWp_Q8y06cJ@mail.gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <span class="Apple-style-span" style="font-family:
        Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">I am
        trying to authenticate through radius (info in LDAP database). I
        am using kamailio 3.1<br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        First of all I would like to clear up an issue:&nbsp;<br
          style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        As shown the way to do the authentication is done with:&nbsp;<br
          style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <table style="margin: 0px; padding: 0px; font-size: 1em;"
          align="center" border="0" cellpadding="3" cellspacing="1"
          width="90%">
          <tbody style="margin: 0px; padding: 0px;">
            <tr style="margin: 0px; padding: 0px;">
              <td style="margin: 0px; padding: 1px;"><span
                  class="genmed" style="margin: 0px; padding: 0px;"><strong
                    style="margin: 0px; padding: 0px;">Code:</strong></span></td>
            </tr>
            <tr style="margin: 0px; padding: 0px;">
              <td class="code" style="margin: 0px 20px; padding: 3px;
                height: 40px; overflow: auto; border: 1px solid gray;
                font: 12px Courier,'Courier New',sans-serif; color:
                rgb(0, 102, 0); background-color: rgb(255, 255, 255);">
                <br style="margin: 0px; padding: 0px;">
                if (! radius_www_authorize("<a moz-do-not-send="true"
                  href="http://uu.net">uu.net</a>")) {&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; www_challenge("<a moz-do-not-send="true"
                  href="http://uu.net">uu.net</a>", "0");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp;<br style="margin: 0px; padding:
                  0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px; padding: 0px;">
              </td>
            </tr>
          </tbody>
        </table>
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
      </span></blockquote>
    first, if you don't have the above block in main request route
    block, replace 'return' with 'exit'.<br>
    <br>
    <blockquote
      cite="mid:AANLkTi=RnCJ7xJ57HHmgaCNFvCUwV_-dUwWp_Q8y06cJ@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">
        Ok, when I installed openser I did it with kamailio "flavour" so
        it was using the auth_radius module belonging to it.&nbsp;<br
          style="margin: 0px; padding: 0px;">
        Does anyone know which would be the correct way to do the
        challenge to the user cause is was not working at all. The
        radius client does not even send it.</span></blockquote>
    <br>
    IIRC, even for RADIUS, the challenge is built by Kamailio auth
    module, nothing exchanged with the RADIUS server for challenge.<br>
    <br>
    <blockquote
      cite="mid:AANLkTi=RnCJ7xJ57HHmgaCNFvCUwV_-dUwWp_Q8y06cJ@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        Verdana,Arial,Helvetica,sans-serif; font-size: 12px;"> I got
        stuck some time till I just decided to load the module from ser
        modules folder and then freeradius server started to get
        correctly my requests. Actually I can even see it authenticates
        them correctly. <br style="margin: 0px; padding: 0px;">
      </span></blockquote>
    <br>
    Can you update kamailio default config where you replace auth_db
    module with auth_radius (from modules_k), and inside the routing
    blocks use:<br>
    <br>
    - www_radius_authorize() instead of www_authorize()<br>
    - proxy_radius_authorize() instead of proxy_authorize()<br>
    <br>
    Then start it with:<br>
    <br>
    kamailio -E -ddd<br>
    <br>
    and see if you see any hint/error there. Then run a test call and
    watch the logs, you should see some errors if communication with
    radius is not happening. If you don't understand exactly what
    happened, send those messages here.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <blockquote
      cite="mid:AANLkTi=RnCJ7xJ57HHmgaCNFvCUwV_-dUwWp_Q8y06cJ@mail.gmail.com"
      type="cite"><span class="Apple-style-span" style="font-family:
        Verdana,Arial,Helvetica,sans-serif; font-size: 12px;">
        <br style="margin: 0px; padding: 0px;">
        However Openser/Kamailio doesn't seem to see the same and it
        doesn't saves location.&nbsp;<br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <table style="margin: 0px; padding: 0px; font-size: 1em;"
          align="center" border="0" cellpadding="3" cellspacing="1"
          width="90%">
          <tbody style="margin: 0px; padding: 0px;">
            <tr style="margin: 0px; padding: 0px;">
              <td style="margin: 0px; padding: 1px;"><span
                  class="genmed" style="margin: 0px; padding: 0px;"><strong
                    style="margin: 0px; padding: 0px;">Code:</strong></span></td>
            </tr>
            <tr style="margin: 0px; padding: 0px;">
              <td class="code" style="margin: 0px 20px; padding: 3px;
                height: 40px; overflow: auto; border: 1px solid gray;
                font: 12px Courier,'Courier New',sans-serif; color:
                rgb(0, 102, 0); background-color: rgb(255, 255, 255);">
                <br style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                route[AUTH] {&nbsp;<br style="margin: 0px; padding: 0px;">
                #!ifdef WITH_AUTH&nbsp;<br style="margin: 0px; padding: 0px;">
                # Primeramente comprobamos si pertenece a nuestro
                dominio; si no ya no hace falta comprobar credenciales.&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; if (uri==myself)&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_method("REGISTER"))&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_NOTICE","KAM-INFO:
                r[AUTH] - REGISTER - User info: ($fu):($si)&gt;\n");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!radius_www_authorize("<a
                  moz-do-not-send="true" href="http://i2cat.net">i2cat.net</a>")){&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(RADIUS);&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #www_challenge("<a
                  moz-do-not-send="true" href="http://i2cat.net">i2cat.net</a>","0");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($au!=$tU)&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("403","Forbidden
                auth ID");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; } else {&nbsp;<br style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                #!ifdef WITH_IPAUTH&nbsp;<br style="margin: 0px; padding:
                  0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(allow_source_address())&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # source IP allowed&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px; padding: 0px;">
                #!endif&nbsp;<br style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # authenticate if from local subscriber&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (from_uri==myself)&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!proxy_authorize("$fd",
                "subscriber")) {&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_challenge("$fd",
                "0");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (is_method("PUBLISH"))&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($au!=$tU) {&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                sl_send_reply("403","Forbidden auth ID");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($au!=$fU) {&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                sl_send_reply("403","Forbidden auth ID");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; consume_credentials();&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # caller authenticated&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # caller is not local
                subscriber, then check if it calls&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # a local destination, otherwise
                deny, not an open relay here&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!uri==myself)&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("403","Not
                relaying");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;<br style="margin: 0px; padding: 0px;">
                #!endif&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp;<br style="margin: 0px; padding: 0px;">
                }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br style="margin: 0px; padding:
                  0px;">
              </td>
            </tr>
          </tbody>
        </table>
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        Before doing the challenge then it just goes throught:&nbsp;<br
          style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <table style="margin: 0px; padding: 0px; font-size: 1em;"
          align="center" border="0" cellpadding="3" cellspacing="1"
          width="90%">
          <tbody style="margin: 0px; padding: 0px;">
            <tr style="margin: 0px; padding: 0px;">
              <td style="margin: 0px; padding: 1px;"><span
                  class="genmed" style="margin: 0px; padding: 0px;"><strong
                    style="margin: 0px; padding: 0px;">Code:</strong></span></td>
            </tr>
            <tr style="margin: 0px; padding: 0px;">
              <td class="code" style="margin: 0px 20px; padding: 3px;
                height: 40px; overflow: auto; border: 1px solid gray;
                font: 12px Courier,'Courier New',sans-serif; color:
                rgb(0, 102, 0); background-color: rgb(255, 255, 255);">
                <br style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                route[RADIUS]&nbsp;<br style="margin: 0px; padding: 0px;">
                {&nbsp;<br style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp;sl_send_reply("100", "Trying");&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp; &nbsp;append_to_reply("Expires: 600\r\n");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp;append_to_reply("Min-Expires: 240\r\n");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp;xlog("L_NOTICE","KAM-INFO: RADIUS AUTHENTICATION -
                AUTHORIZING USER $fU - &lt;$fu&gt;:&lt;$si&gt;\n");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                <br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp;xlog("L_NOTICE","KAM-INFO: CHALLENGING. -
                RETCODE-&gt; $rc \n");&nbsp;<br style="margin: 0px; padding:
                  0px;">
                &nbsp; &nbsp;www_challenge("<a moz-do-not-send="true"
                  href="http://i2cat.net">i2cat.net</a>", "0");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp;switch($rc){&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case -5:&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_INFO", "-&gt; 500: internal server
                error");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("500", "Internal Server
                Error");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case -4:&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_INFO", "-&gt; 404: credentials not
                found");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("404", "Credentials Not
                Found");&nbsp;&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case -3:&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_INFO", "-&gt; 400: bad request -
                stale nonce");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("400", "Bad Request");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case -2:&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_INFO", "-&gt; 401: invalid
                password");&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("401", "Invalid Password");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;case -1:&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_INFO", "-&gt; 401: invalid user");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("401", "Invalid User");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;default:&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_INFO", "-&gt; 401: unauthorized");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sl_send_reply("401", "Unauthorized");&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}&nbsp;<br style="margin: 0px; padding: 0px;">
                }&nbsp;<br style="margin: 0px; padding: 0px;">
              </td>
            </tr>
          </tbody>
        </table>
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        Buuuuuuuuuuuuut... I got that in the debug of Kamailio:&nbsp;<br
          style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        <table style="margin: 0px; padding: 0px; font-size: 1em;"
          align="center" border="0" cellpadding="3" cellspacing="1"
          width="90%">
          <tbody style="margin: 0px; padding: 0px;">
            <tr style="margin: 0px; padding: 0px;">
              <td style="margin: 0px; padding: 1px;"><span
                  class="genmed" style="margin: 0px; padding: 0px;"><strong
                    style="margin: 0px; padding: 0px;">Code:</strong></span></td>
            </tr>
            <tr style="margin: 0px; padding: 0px;">
              <td class="code" style="margin: 0px 20px; padding: 3px;
                height: 40px; overflow: auto; border: 1px solid gray;
                font: 12px Courier,'Courier New',sans-serif; color:
                rgb(0, 102, 0); background-color: rgb(255, 255, 255);">
                &nbsp;4(31099) DEBUG: auth [api.c:95]: auth: digest-algo: MD5
                parsed value: 1&nbsp;<br style="margin: 0px; padding: 0px;">
                &nbsp;4(31099) DEBUG: auth_radius [sterman.c:271]:
                radius_authorize_sterman(): Success&nbsp;<br style="margin:
                  0px; padding: 0px;">
                &nbsp;4(31099) WARNING: auth_radius [authorize.c:89]: RADIUS
                server did not send SER-UID attribute in digest
                authentication reply&nbsp;<br style="margin: 0px; padding:
                  0px;">
                &nbsp;4(31099) DEBUG: auth [challenge.c:102]:
                build_challenge_hf: realm='<a moz-do-not-send="true"
                  href="http://i2cat.net">i2cat.net</a>'&nbsp;<br
                  style="margin: 0px; padding: 0px;">
                &nbsp;4(31099) DEBUG: auth [challenge.c:113]:
                build_challenge_hf: qop='auth'&nbsp;<br style="margin: 0px;
                  padding: 0px;">
                &nbsp;4(31099) DEBUG: auth [challenge.c:236]: auth:
                'WWW-Authenticate: Digest realm="<a
                  moz-do-not-send="true" href="http://i2cat.net">i2cat.net</a>",
                nonce="TWZJLk1mSAKFVzL0b+dVPzkuyyAnZHQs", qop="auth"&nbsp;<br
                  style="margin: 0px; padding: 0px;">
              </td>
            </tr>
          </tbody>
        </table>
        <br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        I guess it has something to do with this SER-UID attribute and
        thus something about the dictonary? It is weird seeing that the
        radius server says 'ok' but then openser is not authenticating
        it.&nbsp;<br style="margin: 0px; padding: 0px;">
        <br style="margin: 0px; padding: 0px;">
        I need some clues! Thank you!.</span><br clear="all">
      <br>
      -- <br>
      Pablo Ros<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>