<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi @Alexandre,<br>
    <br>
    I add this to my post-auth { } section:<br>
    <br>
    update reply {<br>
            3GPP2-Prepaid-acct-Capability
    =%{request:3GPP2-Prepaid-acct-Capability}<br>
            Acct-Multi-Session-Id =%{request:Acct-Multi-Session-Id}<br>
            3GPP2-Session-Termination-Capability
    =%{request:3GPP2-Session-Termination-Capability}<br>
            3GPP2-Release-Indicator =%{request:3GPP2-Release-Indicator}<br>
    }<br>
    <br>
    From the debug I get:<br>
    <br>
    <br>
     }<br>
     Module: Checking session {...} for more modules to load<br>
     Module: Checking post-proxy {...} for more modules to load<br>
     Module: Checking post-auth {...} for more modules to load<br>
    /etc/raddb/sites-enabled/default[462]: ERROR: Unknown value
    %{request:3GPP2-Session-Termination-Capability} for attribute
    3GPP2-Session-Termination-Capability<br>
    /etc/raddb/sites-enabled/default[456]: Errors parsing post-auth
    section.<br>
    <br>
    Why I am getting 3GPP2-Session-Termination-Capability as unknown
    value (I have this attribute in my dictionaries) as this value
    (value of 3GPP2-Session-Termination-Capability attribute) is send in
    access-request packet?<br>
    <br>
    For    3GPP2-Session-Termination-Capability
    =%{request:3GPP2-Session-Termination-Capability} I am still getting
    Acct-Multi-Session-Id = "%{request:Acct-Multi-Session-Id}".<br>
    <br>
    Here is  access-request from Wireshark for batter pictre:<br>
    <br>
    access-request:<br>
    <br>
     Attribute Value Pairs<br>
            AVP: l=15  t=Acct-Multi-Session-Id(50): 1317016867140  (I
    need this one in access-accept)<br>
                Acct-Multi-Session-Id: 1317016867140<br>
            AVP: l=41  t=Vendor-Specific(26) v=Cisco(9)<br>
                VSA: l=35 t=Unknown-Attribute(130):
    683332332d63616c6c696e672d656e74657270726973652d...<br>
                    Unknown-Attribute:
    683332332d63616c6c696e672d656e74657270726973652d...<br>
            AVP: l=10  t=Calling-Station-Id(31): 81609000<br>
                Calling-Station-Id: 81609000<br>
            AVP: l=13  t=NAS-Identifier(32): intraswitch<br>
            AVP: l=6  t=NAS-IP-Address(4): xxx.xxx.xxx.xxx<br>
            AVP: l=14  t=Vendor-Specific(26) v=3GPP2(5535)  (I need this
    one in access-accept)<br>
                VSA: l=8 t=3GPP2-Prepaid-acct-Capability(91):
    010600000002   <br>
                    3GPP2-Prepaid-acct-Capability: 010600000002<br>
            AVP: l=12  t=Vendor-Specific(26) v=3GPP2(5535)     (I need
    this one in access-accept)<br>
                VSA: l=6 t=3GPP2-Session-Termination-Capability(88): 1  
    <br>
                    3GPP2-Session-Termination-Capability: 1<br>
            AVP: l=34  t=Vendor-Specific(26) v=Cisco(9)<br>
                VSA: l=28 t=h323-conf-id(24): h323-conf-id=1317016867140<br>
                    h323-conf-id: h323-conf-id=1317016867140<br>
            AVP: l=6  t=Vendor-Specific(26) v=Cisco(9)<br>
            AVP: l=6  t=Event-Timestamp(55): Sep 26, 2011
    08:01:07.000000000 Central Europe Daylight Time<br>
            AVP: l=11  t=User-Name(1): 081609000<br>
            AVP: l=18  t=User-Password(2): Encrypted<br>
    <br>
    <br>
    <br>
    Thank you!<br>
    <br>
    BR,<br>
    Miha<br>
    <br>
    On 9/24/2011 2:43 PM, Alexandre Chapellon wrote:
    <blockquote cite="mid:4E7DD073.7070203@horoa.net" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Le 23/09/2011 22:01, Miha a écrit :
      <blockquote cite="mid:1316808080238-4834972.post@n5.nabble.com"
        type="cite">
        <pre wrap="">Hi @Alexandre,

here is a copy from me default file:

post-auth {
        #  Get an address from the IP Pool.
#       main_pool
update reply {
        3GPP2-Prepaid-acct-Capability =
%{request:3GPP2-Prepaid-acct-Capability}

}

  update reply {
          Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id}

}
</pre>
      </blockquote>
      <font size="-1">IIRC I use double quoted</font><small> variables
        in my config. Anyway, this is odd it happens for the second
        attributes and not the first one.<br>
        <br>
      </small>
      <blockquote cite="mid:1316808080238-4834972.post@n5.nabble.com"
        type="cite">
        <pre wrap="">I have also try this way, but still the same:

update reply {
        3GPP2-Prepaid-acct-Capability =
%{request:3GPP2-Prepaid-acct-Capability}
        Acct-Multi-Session-Id = %{request:Acct-Multi-Session-Id}

}
</pre>
      </blockquote>
      <small>This sounds better.</small><br>
      <blockquote cite="mid:1316808080238-4834972.post@n5.nabble.com"
        type="cite">
        <pre wrap="">I do not see any problem with quotes.

Thank you!

Br,
Miha


--
View this message in context: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://freeradius.1045715.n5.nabble.com/Access-Accept-tp4832711p4834972.html">http://freeradius.1045715.n5.nabble.com/Access-Accept-tp4832711p4834972.html</a>
Sent from the FreeRadius - User mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
</pre>
      </blockquote>
      <br>
      <div class="moz-signature">-- <br>
        <!--
        horoa.html
        
        Copyright 2011 Alexandre Chapellon <alxgomz@elronde>
        
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your option) any later version.
        
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
        
        You should have received a copy of the GNU General Public License
        along with this program; if not, write to the Free Software
        Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
        MA 02110-1301, USA.
-->
        <div style="height: 77px; width: 470px; background-color:
          #707070"><a moz-do-not-send="true" href="http://www.horoa.net"><img
              style="border: none; float: left; margin-right:10px"
              src="cid:part1.02020907.01000208@softnet.si"></a>
          <p style="font-family: miso; font-size: 18px; padding-top:
            8px; color: white">Alexandre Chapellon</p>
          <p style="font-family: miso; font-size: 18px; padding-top:
            0px; color: orange">Ingénierie des systèmes open sources et
            réseaux.<br>
            Follow me on twitter: <a moz-do-not-send="true"
              href="http://www.twitter.com/alxgomz">@alxgomz</a></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">-
List info/subscribe/unsubscribe? See <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>