[OpenSIPS-Users] Users Digest, Vol 20, Issue 18
Ahmed Munir
ahmedmunir007 at gmail.com
Mon Mar 8 08:14:01 CET 2010
Hi,
Thanks for your reply Norman, I figure it out the problem. The problem is
that many of the attributes weren't defined in dictionary.opensips, after
adding the attributes, accounting with radius is working now. Here is the
list of dictionary.opensips attributes I want to share;
### Lines Added
ATTRIBUTE Sip-Method 101 integer
ATTRIBUTE Sip-Response-Code 102 integer # Schulzrinne, acc
ATTRIBUTE Sip-To-Tag 104 string # Schulzrinne, acc
ATTRIBUTE Sip-From-Tag 105 string # Schulzrinne, acc
ATTRIBUTE Sip-Translated-Request-URI 107 string # Proprietary, acc
ATTRIBUTE Source-IP 214 string
ATTRIBUTE Source-Port 215 string
ATTRIBUTE Sip-Src-IP 108 string # Proprietary, acc
ATTRIBUTE Sip-Src-Port 109 string # Proprietary, acc
ATTRIBUTE Digest-Response 206 string # Sterman,
auth_radius
ATTRIBUTE Sip-Uri-User 208 string # Proprietary,
auth_radius
ATTRIBUTE Sip-Group 211 string # Proprietary,
group_radius
ATTRIBUTE Sip-Rpid 213 string # Proprietary,
auth_radius
ATTRIBUTE SIP-AVP 225 string # Proprietary,
avp_radius
ATTRIBUTE Digest-Realm 1063 string # Sterman,
auth_radius
ATTRIBUTE Digest-Nonce 1064 string # Sterman,
auth_radius
ATTRIBUTE Digest-Method 1065 string # Sterman,
auth_radius
ATTRIBUTE Digest-URI 1066 string # Sterman,
auth_radius
ATTRIBUTE Digest-QOP 1067 string # Sterman,
auth_radius
ATTRIBUTE Digest-Algorithm 1068 string # Sterman,
auth_radius
ATTRIBUTE Digest-Body-Digest 1069 string # Sterman,
auth_radius
ATTRIBUTE Digest-CNonce 1070 string # Sterman,
auth_radius
ATTRIBUTE Digest-Nonce-Count 1071 string # Sterman,
auth_radius
ATTRIBUTE Digest-User-Name 1072 string # Sterman,
auth_radius
ATTRIBUTE Contact 1073 integer
###
Well I say it again thanks for helping me out.
Date: Fri, 05 Mar 2010 11:11:16 -0500
> From: Norman Brandinger <norm at goes.com>
> Subject: Re: [OpenSIPS-Users] Getting Error When Configuring OpenSIPS
> + FreeRadius
> To: OpenSIPS users mailling list <users at lists.opensips.org>
> Message-ID: <4B912D24.40503 at goes.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Please post the current error that you're receiving so that someone on
> the list might be able to point you in the correct direction.
>
> Regards,
> Norm
>
> Ahmed Munir wrote:
> > Hi,
> >
> > Thanks for replying, Norman I've added the line in dictionary.opensips
> > i.e. ATTRIBUTE Source-IP 214 string, and start
> > freeradius service and make a call and still getting same error as I
> > mentioned on my previous mail.
> >
> > Kindly assist me to resolve this problem because its quite too long
> > that I'm this problem.
> >
> >
> > Date: Thu, 04 Mar 2010 12:52:49 -0500
> > From: Norman Brandinger <norm at goes.com <mailto:norm at goes.com>>
> > Subject: Re: [OpenSIPS-Users] Getting Error When Configuring
> > OpenSIPS
> > + FreeRadius
> > To: OpenSIPS users mailling list <users at lists.opensips.org
> > <mailto:users at lists.opensips.org>>
> > Message-ID: <4B8FF371.6000006 at goes.com
> > <mailto:4B8FF371.6000006 at goes.com>>
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> >
> > I've got the following (among other attributes) defined in a
> > local.dictionary file:
> >
> > ATTRIBUTE Source-IP 214 string
> >
> >
> > If it's added to opensips.dictionary, then it no longer needs to be
> in
> > my local.dictionary.
> >
> > Regards,
> > Norm
> >
> > Bogdan-Andrei Iancu wrote:
> > > Hi Ahmed,
> > >
> > > Do you see in any RADIUS dictionary the Source-IP AVP ? if yes,
> > please
> > > post here its definition.
> > >
> > > Regards,
> > > Bogdan
> > >
> > > Ahmed Munir wrote:
> > >
> > >> Hi,
> > >>
> > >> Thanks for your reply, I've copied dictionary.opensips to
> > >> /etc/freeradius directory and added few lines in it after that
> > when I
> > >> make the call I'm getting this same error as mentioned in my
> > previous
> > >> mail earlier, I even copied the dictionary.freeradius to
> > >> /etc/clientradius_ng directory as well.
> > >>
> > >> Lines for dictionary.opensips are listed below;
> > >>
> > >> #### Attributes ###
> > >>
> > >> ATTRIBUTE Sip-Uri-User 208 string # Proprietary,
> > auth_radius
> > >> ATTRIBUTE Sip-Group 211 string # Proprietary,
> > group_radius
> > >> ATTRIBUTE Sip-Rpid 213 string # Proprietary,
> > auth_radius
> > >> ATTRIBUTE SIP-AVP 225 string # Proprietary,
> > avp_radius
> > >> ATTRIBUTE Sip-Method 101 integer
> > >>
> > >> ### Service-Type Values ###
> > >> VALUE Service-Type Group-Check 12 # Proprietary,
> > group_radius
> > >> VALUE Service-Type Sip-Session 15
> > >> VALUE Service-Type SIP-Caller-AVPs 30 # Proprietary,
> > avp_radius
> > >> VALUE Service-Type SIP-Callee-AVPs 31 # Proprietary,
> > avp_radius
> > >>
> > >> ### Sip-Method Values ###
> > >> VALUE Sip-Method Undefined 0
> > >> VALUE Sip-Method Invite 1
> > >> VALUE Sip-Method Cancel 2
> > >> VALUE Sip-Method Ack 4
> > >> VALUE Sip-Method Bye 8
> > >> VALUE Sip-Method Info 16
> > >> VALUE Sip-Method Options 32
> > >> VALUE Sip-Method Update 64
> > >> VALUE Sip-Method Register 128
> > >> VALUE Sip-Method Message 256
> > >> VALUE Sip-Method Subscribe 512
> > >> VALUE Sip-Method Notify 1024
> > >> VALUE Sip-Method Prack 2048
> > >> VALUE Sip-Method Refer 4096
> > >> VALUE Sip-Method Other 8192
> > >>
> > >>
> > >> And my dictionary settings are listed below;
> > >>
> > >> dictionary(freeradius)
> > >>
> > >> $INCLUDE /opt/freeradius/share/freeradius/dictionary
> > >> $INCLUDE /opt/freeradius/etc/raddb/dictionary.opensips
> > >>
> > >> dictionary(radiusclient)
> > >>
> > >> ##At the end of the line
> > >> $INCLUDE /opt/freeradius/etc/raddb/dictionary.opensips
> > >>
> > >>
> > >> Kindly tell me from which section I'm facing this problem.
> > Waiting for
> > >> your reply.
> > >>
> > >> Date: Fri, 26 Feb 2010 15:21:03 +0200
> > >> From: Andrew Pogrebennyk <andrew.pogrebennyk at portaone.com
> > <mailto:andrew.pogrebennyk at portaone.com>
> > >> <mailto:andrew.pogrebennyk at portaone.com
> > <mailto:andrew.pogrebennyk at portaone.com>>>
> > >> Subject: Re: [OpenSIPS-Users] Getting Error When Configuring
> > OpenSIPS
> > >> + FreeRadius`
> > >> To: OpenSIPS users mailling list <users at lists.opensips.org
> > <mailto:users at lists.opensips.org>
> > >> <mailto:users at lists.opensips.org
> > <mailto:users at lists.opensips.org>>>
> > >> Message-ID: <4B87CABF.9000209 at portaone.com
> > <mailto:4B87CABF.9000209 at portaone.com>
> > >> <mailto:4B87CABF.9000209 at portaone.com
> > <mailto:4B87CABF.9000209 at portaone.com>>>
> > >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > >>
> > >> On 26.02.2010 14:33, Ahmed Munir wrote:
> > >>
> > >>> Feb 26 14:47:47 rose /usr/local/sbin/opensips[25988]:
> > >>> ERROR:aaa_radius:rad_avp_add: failure
> > >>> Feb 26 14:47:47 rose /usr/local/sbin/opensips[25988]:
> > >>> ERROR:acc:acc_aaa_request: failed to add Source-IP, 13
> > >>>
> > >>>
> > >>> And I also check table radacct in mysql database, no records are
> > >>>
> > >> inserted
> > >>
> > >>> into it.
> > >>>
> > >> I think this means an incorrect RADIUS dictionary. You should
> > verify
> > >> that the extra attributes you have defined are present there.
> > >>
> > >> --
> > >> Sincerely,
> > >> Andrew Pogrebennyk
> > >>
> > >>
> > >> --
> > >> Regards,
> > >>
> > >> Ahmed Munir
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> >
> ------------------------------------------------------------------------
> > >>
> > >> _______________________________________________
> > >> Users mailing list
> > >> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> >
> >
> > --
> > Regards,
> >
> > Ahmed Munir
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
--
Regards,
Ahmed Munir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100308/ff2643f9/attachment-0001.htm
More information about the Users
mailing list