Re: [OpenSIPS-Users] Radius Async

2016-02-11 Thread Dragomir Haralambiev
Hello,

Problem with radius still exists.
Any idea?

Regards,
Dragomir

2016-02-05 18:58 GMT+02:00 Dragomir Haralambiev :

> Now my Makefile begin with follow lines:
>
> ifeq ("$(FREERADIUS)", "")
> ifneq ("$(wildcard /usr/include/freeradius-client.h)","")
> FREERADIUS=1
> endif
> endif
>
> I compile with :
> FREERADIUS=1 make all
> FREERADIUS=1 make install
>
> Problem still exists!
>
> 2016-02-05 16:28 GMT+02:00 Ionut Ionita :
>
>> 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 :
>>
>>> 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>:
>>>
 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>:

> 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 , missing loadmodule?
>
>
> Regards,
> Dragomir
>
> 2016-02-05 11:32 GMT+02:00 Ionut Ionita < 
> 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>:
>>
>>> 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>:
>>>
 Yes I apply the patch and then compile Opensips 2.2.

 2016-02-05 10:05 GMT+02:00 Ionut Ionita <
 ionution...@opensips.org>:

> Hi Dragomir,
>
> Did you apply the patch on the freeradius-client library as

Re: [OpenSIPS-Users] Radius Async

2016-02-08 Thread Dragomir Haralambiev
[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 :

> 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 :
>
>> 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>:
>>
>>> 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>:
>>>
 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 , missing loadmodule?


 Regards,
 Dragomir

 2016-02-05 11:32 GMT+02:00 Ionut Ionita < 
 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>:
>
>> 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>:
>>
>>> Yes I apply the patch and then compile Opensips 2.2.
>>>
>>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
>>> 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 

Re: [OpenSIPS-Users] Radius Async

2016-02-08 Thread Dragomir Haralambiev
Now my Makefile begin with follow lines:

ifeq ("$(FREERADIUS)", "")
ifneq ("$(wildcard /usr/include/freeradius-client.h)","")
FREERADIUS=1
endif
endif

I compile with :
FREERADIUS=1 make all
FREERADIUS=1 make install

Problem still exists!

2016-02-05 16:28 GMT+02:00 Ionut Ionita :

> 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 :
>
>> 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>:
>>
>>> 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>:
>>>
 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 , missing loadmodule?


 Regards,
 Dragomir

 2016-02-05 11:32 GMT+02:00 Ionut Ionita < 
 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>:
>
>> 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>:
>>
>>> Yes I apply the patch and then compile Opensips 2.2.
>>>
>>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
>>> 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

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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


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

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

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 , missing
loadmodule?


Regards,
Dragomir

2016-02-05 11:32 GMT+02:00 Ionut Ionita
>:

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

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

Yes I apply the patch and then compile
Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita
>:

Hi Dragomir,

   

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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 , missing loadmodule?

Where is problem?

Regards,
Dragomir



___
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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

Sorry forgot to give you the link

[0] http://www.opensips.org/html/docs/modules/2.2.x/aaa_radius.html#id294274

Ionut Ionita
OpenSIPS Developer

On 02/05/2016 10:05 AM, Ionut Ionita wrote:

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 , missing loadmodule?

Where is problem?

Regards,
Dragomir



___
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


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
Yes I apply the patch and then compile Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita :

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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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


Yes I apply the patch and then compile Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita >:

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 , missing loadmodule?

Where is problem?

Regards,
Dragomir



___
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





___
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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
Hi, Thnaks for your replay.

I send patched freeradius-client.h.

Regards,
Dragomir

2016-02-05 11:15 GMT+02:00 Ionut Ionita :

> 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 :
>
>> Yes I apply the patch and then compile Opensips 2.2.
>>
>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
>> 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 , 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
>>> 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
>
>
/*
 * $Id: freeradius-client.h,v 1.18 2010/06/15 09:22:51 aland Exp $
 *
 * Copyright (C) 1995,1996,1997,1998 Lars Fenneberg
 *
 * Copyright 1992 Livingston Enterprises, Inc.
 *
 * Copyright 1992,1993, 1994,1995 The Regents of the University of Michigan
 * and Merit Network, Inc. All Rights Reserved
 *
 * See the file COPYRIGHT for the respective terms and conditions.
 * If the file is missing contact me at l...@elemental.net
 * and I'll send you a copy.
 *
 */

#ifndef FREERADIUS_CLIENT_H
#define FREERADIUS_CLIENT_H

#ifdef CP_DEBUG
#define		DEBUG(args, ...)	rc_log(## args)
#else
#define		DEBUG(args, ...)	;
#endif

#include	
/*
 * Include for C99 uintX_t defines is stdint.h on most systems.  Solaris uses
 * inttypes.h instead.  Comment out the stdint include if you get an error,
 * and uncomment the inttypes.h include.
 */
#include	
/* #include	 */
#include	
#include	
#include	

#ifndef RADIUS_ASYNC_SUPPORT
	#define RADIUS_ASYNC_SUPPORT
#endif

#undef __BEGIN_DECLS
#undef __END_DECLS
#ifdef __cplusplus
# define __BEGIN_DECLS extern "C" {
# define __END_DECLS }
#else
# define __BEGIN_DECLS /* empty */
# define __END_DECLS /* empty */
#endif

#define AUTH_VECTOR_LEN		16
#define AUTH_PASS_LEN		(3 * 16) /* multiple of 16 */
#define AUTH_ID_LEN		64
#define AUTH_STRING_LEN		253	 /* maximum of 253 */

#define	BUFFER_LEN		8192

#define NAME_LENGTH		32
#define	GETSTR_LENGTH		128	/* must be bigger than AUTH_PASS_LEN */

#define	MAX_SECRET_LENGTH	(3 * 16) /* MUST be multiple of 16 */

#define	VENDOR(x)		(((x) >> 16) & 0x)
#define	ATTRID(x)		((x) & 0x)

#define PW_MAX_MSG_SIZE		4096

/* codes for radius_buildreq, radius_getport, etc. */
#define AUTH			0
#define ACCT			1

/* defines for config.c */

#define SERVER_MAX 8

#define AUTH_LOCAL_FST	(1<<0)
#define AUTH_RADIUS_FST (1<<1)
#define AUTH_LOCAL_SND  (1<<2)
#define AUTH_RADIUS_SND (1<<3)

typedef struct server {
	int max;
	char *name[SERVER_MAX];
	uint16_t port[SERVER_MAX];
	char *secret[SERVER_MAX];
	double deadtime_ends[SERVER_MAX];
} SERVER;

typedef struct pw_auth_hdr
{
	uint8_t  code;
	uint8_t  id;
	uint16_t length;
	uint8_t  vector[AUTH_VECTOR_LEN];
	uint8_t  data[2];
} AUTH_HDR;

struct rc_conf
{
	struct _option		*config_options;
	uint32_t 			this_host_ipaddr;
	uint32_t			*this_host_bind_ipaddr;
	struct map2id_s		*map2id_list;
	struct dict_attr	*dictionary_attributes;
	struct dict_value	*dictionary_values;
	struct dict_vendor	*dictionary_vendors;
	char			buf[GETSTR_LENGTH];
	char			buf1[14];
	char			ifname[512];
};

typedef struct rc_conf rc_handle;

#define AUTH_HDR_LEN			20
#define CHAP_VALUE_LENGTH		16

#define PW_AUTH_UDP_PORT		1645
#define PW_ACCT_UDP_PORT		1646

#define PW_TYPE_STRING			0

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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


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

Yes I apply the patch and then compile Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita
>:

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 , missing
loadmodule?

Where is problem?

Regards,
Dragomir



___
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





___
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




___
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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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 , missing loadmodule?


Regards,
Dragomir

2016-02-05 11:32 GMT+02:00 Ionut Ionita >:


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

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

Yes I apply the patch and then compile Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita
>:

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 , missing
loadmodule?

Where is problem?

Regards,
Dragomir



___
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





___
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




___
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




___
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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
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 , missing loadmodule?


Regards,
Dragomir

2016-02-05 11:32 GMT+02:00 Ionut Ionita :

> 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 :
>
>> 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>:
>>
>>> Yes I apply the patch and then compile Opensips 2.2.
>>>
>>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
>>> 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 , 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
 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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
2016-02-05 12:35 GMT+02:00 Ionut Ionita :

> 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 , missing loadmodule?
>
>
> Regards,
> Dragomir
>
> 2016-02-05 11:32 GMT+02:00 Ionut Ionita :
>
>> 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>:
>>
>>> 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>:
>>>
 Yes I apply the patch and then compile Opensips 2.2.

 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
 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 , 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
> 
> 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


Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
Here is tests

2016-02-05 12:35 GMT+02:00 Ionut Ionita :

> 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 , missing loadmodule?
>
>
> Regards,
> Dragomir
>
> 2016-02-05 11:32 GMT+02:00 Ionut Ionita :
>
>> 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>:
>>
>>> 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>:
>>>
 Yes I apply the patch and then compile Opensips 2.2.

 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
 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 , 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
> 
> 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
>
>
[root@sbc aaa_radius]# make proper
../../Makefile.modules:19: "you should run make from the main opensips 
directory"

[root@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 

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
I do this but problem is not resolved


2016-02-05 15:27 GMT+02:00 Ionut Ionita :

> 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 :
>
>> 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>:
>>
>>> 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 , missing loadmodule?
>>>
>>>
>>> Regards,
>>> Dragomir
>>>
>>> 2016-02-05 11:32 GMT+02:00 Ionut Ionita < 
>>> 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>:

> 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>:
>
>> Yes I apply the patch and then compile Opensips 2.2.
>>
>> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
>> 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 , missing loadmodule?
>>>
>>> Where is problem?
>>>
>>> Regards,
>>> Dragomir
>>>
>>>
>>>
>>> ___
>>> Users mailing 
>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>>> 

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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


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 , missing loadmodule?


Regards,
Dragomir

2016-02-05 11:32 GMT+02:00 Ionut Ionita >:

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

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

Yes I apply the patch and then compile Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita
>:

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 ,
missing loadmodule?

Where is problem?

Regards,
Dragomir



___
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





___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
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 :

> 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 :
>
>> 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 , missing loadmodule?
>>
>>
>> Regards,
>> Dragomir
>>
>> 2016-02-05 11:32 GMT+02:00 Ionut Ionita < 
>> 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>:
>>>
 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>:

> Yes I apply the patch and then compile Opensips 2.2.
>
> 2016-02-05 10:05 GMT+02:00 Ionut Ionita < 
> 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 , 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
>> 
>> 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 
>>> 

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Ionut Ionita

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


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

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 , missing loadmodule?


Regards,
Dragomir

2016-02-05 11:32 GMT+02:00 Ionut Ionita
>:

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

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

Yes I apply the patch and then compile
Opensips 2.2.

2016-02-05 10:05 GMT+02:00 Ionut Ionita
>:

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(

Re: [OpenSIPS-Users] Radius Async

2016-02-05 Thread Dragomir Haralambiev
Do you want to send freeradius-client.h after the patch?

2016-02-05 10:49 GMT+02:00 Dragomir Haralambiev :

> Yes I apply the patch and then compile Opensips 2.2.
>
> 2016-02-05 10:05 GMT+02:00 Ionut Ionita :
>
>> 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 , 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
>> 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


[OpenSIPS-Users] Radius Async

2016-02-04 Thread Dragomir Haralambiev
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 , missing loadmodule?

Where is problem?

Regards,
Dragomir
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Radius Async Support

2015-07-27 Thread Ionut Ionita

Hello all,


I’m glad to announce that OpenSIPS 2.2 now has async support for RADIUS 
operations. This new extension allows you to do RADIUS authentication 
and accounting requests (against a RADIUS server) in an asynchronous way 
(by transparently using the OpenSIPS internal reactor).


A big problem we are trying to solve these days is trying to reduce the 
time we wait for the response from a remote server we are talking to. We 
definitely do not want to block one entire process while waiting for the 
response. This exact problem arises when doing RADIUS authentication and 
accounting, because we send a message to the radius server and wait for 
the response. In order to solve this problem, we implemented these two 
operations asynchronously - basically this translates into non-blocking 
waiting for the responses from the RADIUS server.


There are two new async functions that are now exposed by the RADIUS 
module:

***radius_send_auth(), authentication function [0]

*** *radius_send_acct(), accounting function [1]*

For the moment, freeradius-client[2] does not officially have any async 
support, so we developed a patch for the library. We also proposed the 
patch to freeradius-client team, and we hope it will reach future 
versions. For the moment, you have to apply the patch manually over the 
radius library. You can find a full tutorial on how to apply it here [3].


The patch has not been intensely tested in real life scenarios, so we 
are looking forward to receiving feedback about any bugs you may find 
and/or new functionalities that may be useful to you.


Best regards,

Ionut-Razvan Ionita


[0] 
http://www.opensips.org/html/docs/modules/2.2.x/aaa_radius.html#id293595
[1] 
http://www.opensips.org/html/docs/modules/2.2.x/aaa_radius.html#id293657

[2] https://github.com/FreeRADIUS/freeradius-client
[3] 
http://www.opensips.org/html/docs/modules/2.2.x/aaa_radius.html#id294274*


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users