[OpenSER-Devel] can't get code for the Sip-Response-Code attribute

Live Great livegreat007 at yahoo.com
Mon Oct 1 14:43:01 CEST 2007


Hi,

I merged "dictionary" and "dictionary.sip" two files into one "dictionary" file (using the command "cat dictionary.sip >> dictionary" in the radiusclient-ng/ directory, and restarted radiusd.
When I tried to start openser, it shown another error with a different attribute missing:

ERROR: acc: can't get code for the src_leg attribute

What value should be defined for src_leg in radiusclient-ng/dictionary file? 
What about "no_name" attribute?

Thanks
Sam

----- Original Message ----
From: Live Great <livegreat007 at yahoo.com>
To: Norman Brandinger <norm at goes.com>
Cc: devel at openser.org
Sent: Monday, October 1, 2007 10:04:52 PM
Subject: Re: [OpenSER-Devel] can't get code for the Sip-Response-Code attribute


Hi, 

Thanks so much for the response.
Here is the file dictionary.sip file that has the word "Sip-Response-Code" defined:

core:etc # grep -r "Sip-Response-Code" *
radiusclient-ng/dictionary.sip:ATTRIBUTE        Sip-Response-Code       102     integer
radiusclient-ng/dictionary.sip:VALUE            Sip-Response-Code       Other                  
 0
radiusclient-ng/dictionary.sip:VALUE            Sip-Response-Code       Invite                  1
radiusclient-ng/dictionary.sip:VALUE            Sip-Response-Code       Cancel                  2
radiusclient-ng/dictionary.sip:VALUE            Sip-Response-Code       Ack                     3
radiusclient-ng/dictionary.sip:VALUE           
 Sip-Response-Code       Bye                     4


Can I copy this file to radiusd and openser dictionary file and rename it to dictionary? 
What is the file extension name for the dictionary file in radiusd and openser?

Thanks
Sam

----- Original Message ----
From: Norman Brandinger <norm at goes.com>
To: Live Great <livegreat007 at yahoo.com>
Cc: devel at openser.org
Sent: Monday, October 1, 2007 9:01:54 PM
Subject: Re: [OpenSER-Devel] can't get code for the Sip-Response-Code attribute

Good Morning,

You need to make sure the dictionary settings are correct and exactly
match what you have specified in OpenSER.

The dictionaries are specified in radiusclient-ng and in
 radiusd (and
mediaproxy if you use it)

The error is telling you that "Sip-Response-Code" cannot be found in any
of the dictionaries you have specified.

Regards,
Norm

Live Great wrote:
> Hi,
>
> I still can't this work, that's why I posted in the development forum.
>
> I have installed openser with *_ACC=ture uncommented in the acc/Makfile.
> But I can't start openser now.
> Here is the error when I executed /usr/local/etc/rc.d/openser start:
>
> core:rc.d # ./openser start
> Command Monit to start OpenSER...
> 'openser' start: /usr/local/etc/rc.d/openser
> 'openser' failed to start
> Starting Open SIP Router:
> Listening on
>              udp: 127.0.0.1 [127.0.0.1]:5060
>              udp:
 12x.x.x.x [12x.x.x.x]:5060
> Aliases:
>              udp: xxx.xxx.com.au:5060
>              udp: localhost.xxx..com.au:5060
>              udp: localhost:5060
>
> In /var/log/messages:
> ERROR: acc: can't get code for the Sip-Response-Code attribute
> ERROR:acc:mod_init: failed to init radius
>
> core:rc.d # ps -auxww | grep openser
> root  35219  0.0  0.1  1520   728  p2  R+   12:03AM   0:00..00 grep openser
> core:rc.d # ps -auxww | grep radius
> root  35230  0..0  0.3  5004  3256  ??  Ss  
 12:04AM   0:00.00
> /usr/local/sbin/radiusd
> core:rc.d # ps -auxww | grep mysql
> mysql 75881  0.0  0.1  1732  1116  p1- I    20Sep07   0:00.02 /bin/sh
> /usr/local/bin/mysqld_safe
> --defaults-extra-file=/usr/local/var/db/mysql/my.cnf --user=mysql
> --datadir=/usr/local/var/db/mysql
> --pid-file=/usr/local/var/db/mysql/core.xxx.com.au.pid
> mysql 75924  0.0  2.7 49016 28336  p1- S    20Sep07  10:52.77 [mysqld]
> root  35237  0.0  0.1  1544   644  p2  RL+  12:05AM   0:00.00 grep mysql
>
> Why I got thos acc errors when starting openser?
>
> Thanks
> SW
>
>
>
> ----- Original Message ----
> From: Norman
 Brandinger <norm at goes.com>
> To: Live Great <livegreat007 at yahoo.com>
> Cc: FreeRadius users mailing list
> <freeradius-users at lists.freeradius.org>; users at openser.org
> Sent: Friday, September 28, 2007 11:11:23 PM
> Subject: Re: [OpenSER-Users] Failed to compile openser with freeradius
> support
>
> Comment the FREERADIUS=1 in the openser/Makefile
>
> Make sure that in modules/acc/Makefile ENABLE_RADIUS_ACC=true is not
> commented
>
> Regards,
> Norm
>
>
> Live Great wrote:
> > HI,
> >
> > In FreeBSD 6.2, I got this error when I compiled openser with
> > freeradius support.
> >
> > ../../radius.h:36:32: freeradius-client.h: No such file or directory
> > acc.c: In function `init_acc_rad':
> > acc.c:464: warning: assignment makes pointer from integer without a
 cast
> > acc.c:475: error: `DICT_ATTR' undeclared (first use in this function)
> > acc.c:475: error: (Each undeclared identifier is reported only once
> > acc.c:475: error: for each function it appears in.)
> > acc.c:475: error: `da' undeclared (first use in this function)
> > acc.c:475: error: `DICT_VALUE' undeclared (first use in this function)
> > acc.c:475: error: `dv' undeclared (first use in this function)
> > acc.c: In function `acc_rad_request':
> > acc.c:509: error: `VALUE_PAIR' undeclared (first use in this function)
> > acc.c:514: error: invalid lvalue in assignment
> > acc.c:555: error: `OK_RC' undeclared (first use in this function)
> > gmake[1]: *** [acc.o] Error 1
> > gmake[1]: Leaving directory
> > `/usr/ports/net/openser/work/openser-1.2.2-tls/modules/acc'
> > gmake: *** [modules] Error 2
> > *** Error
 code 2
> >
> > Stop in /usr/ports/net/openser.
> > *** Error code 1
> >
> > Is there any way I can compile openser with freeradius support?
> >
> > Thanks
> > SW
> > ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>   









-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openser.org/pipermail/devel/attachments/20071001/633aadc9/attachment-0001.htm


More information about the Devel mailing list