[root@sbc opensips_head]# patch -p1 < free_rad.patch (Stripping trailing CRs from patch.) patching file Makefile Hunk #1 FAILED at 31. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
2016-02-05 16:28 GMT+02:00 Ionut Ionita <ionution...@opensips.org>: > Can you try this patch? > And when you compile try > FREERADIUS=1 make all > > Ionut Ionita > OpenSIPS Developer > > On 02/05/2016 04:08 PM, Dragomir Haralambiev wrote: > > I do this but problem is not resolved > > > 2016-02-05 15:27 GMT+02:00 Ionut Ionita <ionution...@opensips.org>: > >> Uncomment the first line >> >> FREERADIUS=1 >> # freeradius libs check (must be done in toplevel makefile) >> ifneq ("$(wildcard /usr/include/freeradius-client.h)","") >> FREERADIUS=1 >> else >> #FREERADIUS=0 >> endif >> >> and compile OpenSIPS again. We will try to fix that because >> it's quite hard to configure. >> >> Ionut Ionita >> OpenSIPS Developer >> >> On 02/05/2016 03:23 PM, Dragomir Haralambiev wrote: >> >> Hi, >> >> Here is firs lines from my MakeFile >> >> #FREERADIUS=1 >> # freeradius libs check (must be done in toplevel makefile) >> ifneq ("$(wildcard /usr/include/freeradius-client.h)","") >> FREERADIUS=1 >> else >> #FREERADIUS=0 >> endif >> >> >> I not see the /usr/include/freeradius-client.h >> >> Regards, >> >> 2016-02-05 15:01 GMT+02:00 Ionut Ionita < <ionution...@opensips.org> >> ionution...@opensips.org>: >> >>> Thank you for your time. >>> Are you sure you have in your OpenSIPS Makefile FREERADIUS=1 >>> for using freeradius-client.h and not radiusclient-ng? It's the first >>> commented line in the Makefile >>> >>> #FREERADIUS=1 >>> >>> Because as I see in the output of nm all the async functions from >>> OpenSIPS >>> are there and also all the freeradius library async functions are >>> there, so the >>> used library is correct. >>> >>> Ionut Ionita >>> OpenSIPS Developer >>> >>> On 02/05/2016 02:32 PM, Dragomir Haralambiev wrote: >>> >>> Here is tests >>> >>> 2016-02-05 12:35 GMT+02:00 Ionut Ionita < <ionution...@opensips.org> >>> ionution...@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 < <ionution...@opensips.org> >>>> ionution...@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 < <ionution...@opensips.org> >>>>> ionution...@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 < >>>>>> <goup2...@gmail.com>goup2...@gmail.com>: >>>>>> >>>>>>> Yes I apply the patch and then compile Opensips 2.2. >>>>>>> >>>>>>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < <ionution...@opensips.org> >>>>>>> ionution...@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@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Users mailing list >>>>>>>> <Users@lists.opensips.org>Users@lists.opensips.org >>>>>>>> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users> >>>>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing >>>>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Users mailing list >>>>>> <Users@lists.opensips.org>Users@lists.opensips.org >>>>>> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users> >>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>>> >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing >>>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Users mailing list >>>>> <Users@lists.opensips.org>Users@lists.opensips.org >>>>> <http://lists.opensips.org/cgi-bin/mailman/listinfo/users> >>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>>> >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Users mailing >>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>>> >>>> >>>> _______________________________________________ >>>> Users mailing list >>>> Users@lists.opensips.org >>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>>> >>> >>> >>> _______________________________________________ >>> Users mailing >>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >>> >> >> >> _______________________________________________ >> Users mailing >> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> >> >> _______________________________________________ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > _______________________________________________ > Users mailing > listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users