Hi Hamid,

I assume the perl script you mentioned in on the RADIUS server side, right ?

Have you checked if the RADIUS request you are processing actually contains those AVPS (Digest-URI and Digest-Realm) ? Use ngrep or tcpdump to get a network capture and visualize it with wireshark or similar.

Best Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 26.08.2015 18:06, Hamid Hashmi wrote:
I am unable to use '$RAD_REQUEST{'Digest-URI'}, $RAD_REQUEST{'Digest-Realm'} etc, in my perl script in case of service type equals to 'Call-Check else cases are working fine like 'Sip-Sessions' etc. details are as follows.

$ opensips -V
version: opensips 1.9.0-notls (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: unknown
@(#) $Id: main.c 9790 2013-02-15 10:14:34Z bogdan_iancu $
main.c compiled on 06:43:47 Aug 25 2015 with gcc 4.9.2

$ radiusd -Xxx
for logs click here <http://pastebin.com/qXcs9ZHe>

$ radiusd -v
radiusd: FreeRADIUS Version 2.2.0, for host x86_64-unknown-linux-gnu, built on Aug 25 2015 at 07:43:23
Copyright (C) 1999-2011 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License.
For more information about these matters, see the file named COPYRIGHT.

$ cat /etc/radiusclient-ng/dictionary.sip
#
# $Id: dictionary.opensips 7139 2010-08-17 14:06:00Z razvancrainea $
#
# SIP RADIUS attributes
#
# Proprietary indicates an attribute that hasn't
# been standardized
#
#
# NOTE: All standard (IANA registered) attributes are
#       defined in the default dictionary of the
# radiusclient-ng library.
#


#### 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-Call-Duration    227  integer
ATTRIBUTE Sip-Call-Setuptime   228  integer

### Service-Type Values ###
VALUE Service-Type     Call-Check       10   # Proprietary, group_radius
VALUE Service-Type     Group-Check      12   # Proprietary, group_radius
VALUE Service-Type     Sip-Session      15   # Proprietary, group_radius
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


### 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

###


Regards
Hamid R. Hashmi


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to