[OpenSIPS-Users] Radius Async

Dragomir Haralambiev goup2010 at gmail.com
Fri Feb 5 13:32:36 CET 2016


Here is tests

2016-02-05 12:35 GMT+02:00 Ionut Ionita <ionutionita at opensips.org>:

> Do you have any other errors? Can you provide the log please?
> After this please do the following:
>
> go to module folder:
>
> cd modules/aaa_radius
>
> from here run the following:
>
> make proper #it's not an error; is just a warning that you should build it
> from the main folder
> FREERADIUS=1 NICER=0 make #here you will also receive a warning; please
> provide output
> nm aaa_radius.so # please provide the output of this
> nm `ldd aaa_radius.so | grep radius | awk '{print $3}'` #and also for this
>
> Thank you
>
> Ionut Ionita
> OpenSIPS Developer
>
> On 02/05/2016 11:51 AM, Dragomir Haralambiev wrote:
>
> make proper working ONLY in main dir
>
> I make follow:
> make clean
> make proper
> make all
> make install
>
> When try to run I receive:
>
>  unknown async command <radius_send_auth>, missing loadmodule?
>
>
> Regards,
> Dragomir
>
> 2016-02-05 11:32 GMT+02:00 Ionut Ionita <ionutionita at opensips.org>:
>
>> The library looks ok. Could you try recompiling the module?
>>
>> cd modules/aaa_radius ; make proper
>>
>> and then recompile it from opensips main folder.
>>
>> Ionut Ionita
>> OpenSIPS Developer
>>
>> On 02/05/2016 11:22 AM, Dragomir Haralambiev wrote:
>>
>> Hi, Thnaks for your replay.
>>
>> I send patched freeradius-client.h.
>>
>> Regards,
>> Dragomir
>>
>> 2016-02-05 11:15 GMT+02:00 Ionut Ionita < <ionutionita at opensips.org>
>> ionutionita at opensips.org>:
>>
>>> Ok! After the patch you should have in the header the following three
>>> lines
>>>
>>> #ifndef RADIUS_ASYNC_SUPPORT
>>>     #define RADIUS_ASYNC_SUPPORT
>>> #endif
>>>
>>> at the very beginning. This helps compiling the async support
>>> for the aaa_radius module only if this patch is applied.
>>>
>>>
>>> Ionut Ionita
>>> OpenSIPS Developer
>>>
>>> On 02/05/2016 10:56 AM, Dragomir Haralambiev wrote:
>>>
>>> Do you want to send freeradius-client.h after the patch?
>>>
>>> 2016-02-05 10:49 GMT+02:00 Dragomir Haralambiev < <goup2010 at gmail.com>
>>> goup2010 at gmail.com>:
>>>
>>>> Yes I apply the patch and then compile Opensips 2.2.
>>>>
>>>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < <ionutionita at opensips.org>
>>>> ionutionita at opensips.org>:
>>>>
>>>>> Hi Dragomir,
>>>>>
>>>>>     Did you apply the patch on the freeradius-client library as shown
>>>>> in [0]? The async support for aaa_radius it's compiled only if the patch is
>>>>> applied on the library.
>>>>>
>>>>> Ionut Ionita
>>>>> OpenSIPS Developer
>>>>>
>>>>> On 02/05/2016 01:28 AM, Dragomir Haralambiev wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> I try setup Async in Opensips 2.2
>>>>> .......
>>>>>
>>>>> loadmodule "aaa_radius.so"
>>>>> modparam("aaa_radius", "radius_config",
>>>>> "/etc/radiusclient/radiusclient.conf")
>>>>> ''''''''''
>>>>> async( radius_send_auth("register","regrespons"), return_register );
>>>>> ......
>>>>>
>>>>>
>>>>> I receive follow Error:
>>>>>
>>>>>  unknown async command <radius_send_auth>, missing loadmodule?
>>>>>
>>>>> Where is problem?
>>>>>
>>>>> Regards,
>>>>> Dragomir
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> <Users at lists.opensips.org>Users at lists.opensips.org
>>>>> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160205/16f0f79c/attachment-0001.htm>
-------------- next part --------------
[root at sbc aaa_radius]# make proper
../../Makefile.modules:19: "you should run make from the main opensips directory"

[root at sbc aaa_radius]# FREERADIUS=1 NICER=0 make
../../Makefile.modules:19: "you should run make from the main opensips directory"
../../Makefile.modules:19: "you should run make from the main opensips directory"
Compiling aaa_radius.c
gcc -fPIC -DPIC -g -m32 -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -DMOD_NAME='aaa_radius'  -DNAME='"opensips"' -DVERSION='"2.2-dev"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local//etc/opensips/"'  -DUSE_FREERADIUS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/include -DPKG_MALLOC  -DSHM_MMAP  -DUSE_MCAST  -DDISABLE_NAGLE  -DSTATISTICS  -DHAVE_RESOLV_RES  -DF_MALLOC  -c aaa_radius.c -o aaa_radius.o
Compiling rad.c
gcc -fPIC -DPIC -g -m32 -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -ftree-vectorize -mtune=prescott -Wold-style-definition -Wmissing-field-initializers -Wredundant-decls -DMOD_NAME='aaa_radius'  -DNAME='"opensips"' -DVERSION='"2.2-dev"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_i386 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/usr/local//etc/opensips/"'  -DUSE_FREERADIUS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/include -DPKG_MALLOC  -DSHM_MMAP  -DUSE_MCAST  -DDISABLE_NAGLE  -DSTATISTICS  -DHAVE_RESOLV_RES  -DF_MALLOC  -c rad.c -o rad.o
Linking aaa_radius.so
gcc -shared  -m32 -Wl,-O2 -Wl,-E   aaa_radius.o rad.o  -L/usr/local/lib -lfreeradius-client -o aaa_radius.so

[root at sbc aaa_radius]# nm aaa_radius.so
0000aa18 a _DYNAMIC
0000ab44 a _GLOBAL_OFFSET_TABLE_
         w _Jv_RegisterClasses
0000aa04 d __CTOR_END__
0000aa00 d __CTOR_LIST__
0000aa0c d __DTOR_END__
0000aa08 d __DTOR_LIST__
000099fc r __FRAME_END__
00009358 r __FUNCTION__.7628
00009348 r __FUNCTION__.7716
00009339 r __FUNCTION__.7861
00009328 r __FUNCTION__.7976
00009313 r __FUNCTION__.8069
00009303 r __FUNCTION__.8143
000092f4 r __FUNCTION__.8172
000092e3 r __FUNCTION__.8225
000092ce r __FUNCTION__.8271
000092be r __FUNCTION__.8328
000092ab r __FUNCTION__.8355
000092a2 r __FUNCTION__.8398
0000929a r __FUNCTION__.8416
000099ec r __FUNCTION__.8934
000099d9 r __FUNCTION__.8960
000099c5 r __FUNCTION__.8981
000099b9 r __FUNCTION__.9022
000099a8 r __FUNCTION__.9080
0000999f r __FUNCTION__.9133
00009993 r __FUNCTION__.9168
00009987 r __FUNCTION__.9216
0000aa10 d __JCR_END__
0000aa10 d __JCR_LIST__
0000ad3c A __bss_start
         U __ctype_b_loc@@GLIBC_2.3
         w __cxa_finalize@@GLIBC_2.1.3
00008860 t __do_global_ctors_aux
00001340 t __do_global_dtors_aux
0000aa14 d __dso_handle
         w __gmon_start__
000013f7 t __i686.get_pc_thunk.bx
0000ad3c A _edata
0000ad80 A _end
00008894 T _fini
00001048 T _init
         U aaa_parse_url
00001400 T aaa_radius_bind_api
         U abort@@GLIBC_2.0
0000acc0 d acmds
         U add_avp
         U async_status
0000ad70 B attr
00001310 t call_gmon_start
0000ac60 d cmds
0000ad40 b completed.5791
0000ad4c B config_file
         U ctime_buf
         U ctime_r@@GLIBC_2.0
         U debug
000015bd T destroy
         U dp_my_pid
         U dprint
0000ad3c b dtor_idx.5793
0000ac00 D exports
00007161 T extract_avp
0000ad58 b fetch_all_values
         U fm_free
         U fm_malloc
         U fm_realloc
000013c0 t frame_dummy
         U get_avp_id
00001b91 T init_radius_handle
         U log_facility
         U log_stderr
00001470 T make_send_message
         U mem_block
00001a3c T mod_init
0000ad6c B modules
0000ad64 b names.9011
0000ad00 d params
00005578 T parse_set_content
00005c6c T parse_sets_func
         U pv_get_spec_value
         U pv_parse_spec
         U pv_set_value
000069bc T rad_avp_add
00007c10 T rad_avp_get
000064a0 T rad_create_message
000079a5 T rad_destroy_message
00007f89 T rad_find
000066ce T rad_init_prot
00008223 T rad_send_message
         U rc_acct
         U rc_acct_async
         U rc_acct_resume
         U rc_auth
         U rc_auth_async
         U rc_auth_resume
         U rc_avpair_add
         U rc_avpair_free
         U rc_avpair_get
         U rc_conf_str
         U rc_dict_findattr
         U rc_dict_findval
         U rc_dict_findvend
         U rc_dict_getattr
         U rc_get_ipaddr
         U rc_openlog
         U rc_read_config
         U rc_read_dictionary
000029de T resume_send_acct
00004162 T resume_send_auth
0000ad54 B rh
00001fe3 T send_acct_fixup
00002d97 T send_acct_func
00002197 T send_acct_func_async
000034ed T send_auth_fixup
00004870 T send_auth_func
000036af T send_auth_func_async
0000ad48 B set_size
0000ad44 B sets
         U shm_block
         U sprintf@@GLIBC_2.0
         U strncmp@@GLIBC_2.0
         U syslog@@GLIBC_2.0
0000ad50 B syslog_name
0000ad78 B tcp_timeout_con_get
0000ad7c B tcp_timeout_receive_fd
0000ad74 B tcp_timeout_send
         U time@@GLIBC_2.0
0000ad5c b values.9012

[root at sbc aaa_radius]# nm `ldd aaa_radius.so | grep radius | awk '{print $3}'`
nm: 'not': No such file


More information about the Users mailing list