[Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool

Diego Zuaneti Arruda diego at fasternet.com.br
Tue Sep 30 15:56:34 CEST 2008


  DanB,

   Yes, I changed the kamailio.cfg.
   I´m sending the full log of radius attached.


Diego.
  ----- Original Message ----- 
  From: DanB 
  To: Diego Zuaneti Arruda 
  Cc: users at lists.kamailio.org 
  Sent: Tuesday, September 30, 2008 10:34 AM
  Subject: Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool


  Diego,

  looks like there was no session started at first place.
  Did u change the openser.cfg config? You need to add callid into radius_proxy_authorize so that the callid should be used (example in README.txt of the freeradius-cdrtool sources).

  Also, can u post a full authorize/account_start/account_stop sequence as logged by "radiusd -X".

  DanB

  On Tue, Sep 30, 2008 at 3:00 PM, Diego Zuaneti Arruda <diego at fasternet.com.br> wrote:

      Hi DanB,

    I updated the CDRTool to version 6.6.8 and freeradius-cdrtool to version 1.2-pre. 
    I'm getting this log and not doing the Debit.

    Sep 30 09:57:22 sipserver1 cdrtool[12948]: DebitBalance CallId=000d6570-880e0035-39c8f267-5c77e9d2 at 192.168.0.1 From=87001 at mydomain.com.br To=sip:00551599998888 at mydomain.com.br Gateway=127.0.0.1 Duration=11
    Sep 30 09:57:22 sipserver1 cdrtool[12948]: ConnectFee=0.00 Span=1 Duration=60 DestId=55159 domain=mydomain.com.br Profile=551 Period=weekday Rate=551 Interval=0-24 Cost=0.85/60 Price=0.8500
    Sep 30 09:57:22 sipserver1 cdrtool[12948]: Error: session 000d6570-880e0035-39c8f267-5c77e9d2 at 192.168.0.1 for 87001 at mydomain.com.br does not exist



    Thanks.
    Diego.
      ----- Original Message ----- 
      From: DanB 
      To: Diego Zuaneti Arruda 
      Cc: users at lists.kamailio.org 
      Sent: Tuesday, September 30, 2008 5:47 AM
      Subject: Re: [Kamailio-Users] Send MaxCallDuration and UserCredit for freeradius-cdrtool


      Hi Diego,

      you don't need to set anything in Users file. The connector does that for you dynamically, based on the responses received from cdrtool. Your configuration will be static and always limit the user to the same call duration. For more information, see the README file within freeradius-cdrtool source directory.

      Cheers,
      DanB


      On Mon, Sep 29, 2008 at 10:49 PM, Diego Zuaneti Arruda <diego at fasternet.com.br> wrote:

          Hi all,

           How I send to freeradius-cdrtool the maxCallDuration and UserCredit?
           On the /etc/raddb/users I have:

        87001 at mydomain.com.br Auth-Type := Digest, User-Password == "mypassword"
                Reply-Message = "Authenticated",
                SIP-AVP = "authentic#1",
                SIP-AVP = "callMaxDur:60",
                SIP-AVP = "credit:25"

           Is this correct ?



        Thanks.
        Diego.


        _______________________________________________
        Users mailing list
        Users at lists.kamailio.org
        http://lists.kamailio.org/cgi-bin/mailman/listinfo/users





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080930/125d85ed/attachment.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: radlog.txt
Url: http://lists.kamailio.org/pipermail/users/attachments/20080930/125d85ed/attachment.txt 


More information about the Users mailing list