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,

   

[OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Husnain Taseer
Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds
BYE is generated by TM module and sent to both caller and callee. But if
callee or caller are behind NAT then the contact IP address (in their
respective contact fields in dialog table) is private because of which
opensips is sending BYE to their private addresses which is not reaching
them and call don't disconnects. Is there any solution available to handle
this issue.

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


Re: [OpenSIPS-Users] recommended settings for performance

2016-02-05 Thread Alex Balashov
  Bogdan,For moderately I/O-bound processing, what is the optimal number of child processes in relation to CPU cores?You say that the number of child processes can exceed available cores (i.e. nproc). By how much? Where is the point at which contention, locking and waiting leads to diminishing returns?My personal experience suggests that on an 8-core system, architectural diminishing returns of ‎this sort appear quite rapidly, and that 32 would be far too many worker processes. However, last time I really experimented was some years ago.-- Alex--Alex Balashov | Principal | Evariste Systems LLC303 Perimeter Center North, Suite 300Atlanta, GA 30346United StatesTel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)Web: http://www.evaristesys.com/, http://www.csrpswitch.com/Sent from my BlackBerry.From: Bogdan-Andrei IancuSent: Friday, February 5, 2016 05:45To: OpenSIPS users mailling list; Søren AndersenReply To: OpenSIPS users mailling listSubject: Re: [OpenSIPS-Users] recommended settings for performance
  

  
  
Hi Søren,

The throughput of your opensips highly depends on your script - if
your logic is complex, if it performs many external queries
(db,radius, rest, etc). It is more test and see approach - monitor
the load of your opensips and adjusted based on your observations .

Trying to answer to your questions:

1) assuming there is a need for CPU processing, you should configure
a number of total processes (in opensips) at least equal to the
number of cores - the opensips as overall app can use all the cores
in the same time.

2) I guess you mean about memory ? if you have large CPS / parallel
calls / registrations, consider increasing the shm memory  - anyhow,
inspect the mem usage at runtime with "opensipsctl fifo
get_statistics shmem: "  and re-adjust

3) if you script is I/O intensive (DNS, DB, RADIUS, REST), better
have a large number of processes (32?). If not, try to correlated
with the number of cores you have. Also, adjust on the run by
checking the internal load via "opensipsctl fifo get_statistics
load: "

Regards, 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01.02.2016 23:31, Søren Andersen
  wrote:


  
  
  
  
Hello there,
 
I’m looking for some
reference configs on opensips performance.

 
- 
  How
many cpu cores are you using and how many CPS are you
peaking at?
- 
  Which
startoptions in opensipsctlrc are you using?
- 
  How
many opensips process children are you running?
 
Currently I’m planning
to use STARTOPTIONS="-m 2048 -M 8" on a 2 core VM with
children=8. – I hope I’ll be able to run 600-1500 currently
call on that setup. But that are your experience?
 
/Søren
 
  
  
  
  
  ___
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] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
Hi Husnain Taseer.


I have solved this problem in my opensips configuration file.

Would you like to see  my opensips.cfg file? if yes, provide me your private 
e-mail, please.

I my configuration file, see what I have done with fix_nated_contact();


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

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


[OpenSIPS-Users] How to fix contact info and RTP port in SDP? Is fix_nated_sdp function enough?

2016-02-05 Thread Rodrigo Pimenta Carvalho
Dear OpenSIPS-users,


Two clients of my OpenSIPS are located behind different NATs and I have just 
started to search a way to mangles the SDP messages for both of them in a way 
that will make the parties talk directly with each other (direct media). After 
reading the proxy documentation (modules NATHELPER, STUN, MEDIAPROXY and 
NAT_TRAVERSAL) I have found the function fix_nated_sdp.


However, it seems that such function replaces the original contact IP, but not 
the RTP ports.

So I ask: what is the utility of the function fix_nated_sdp, if it fixes the 
contact info, but not the port? I mean, how can I fix the SDP in a way that 
contact info and RTP port will be valid to send media to a peer that is behind 
a NAT?


Any hint will be very very helpful!!


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
I was right now reading about nat traversal.

I think it will be important for you too: 
http://www.opensips.org/html/docs/modules/2.2.x/nat_traversal.html

NAT Traversal Module - 
OpenSIPS
www.opensips.org
The nat_traversal module implements a very sophisticated keepalive mechanism, 
that is able to handle the most complex environments and use cases ...

If can help you keep the NAT mappings valid during calls, until SIP BYE is sent.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

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


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
In my configuration I have something like this:


 USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   1)
modparam("usrloc", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # 
CUSTOMIZE ME




route{


force_rport();
if (nat_uac_test("23")) {
if (is_method("REGISTER")) {
fix_nated_register();
setbflag(NAT);
} else {
fix_nated_contact();
setflag(NAT);
}
}



.

.

.


onreply_route[handle_nat] {
if (nat_uac_test("1"))
fix_nated_contact();
#if ( isflagset(NAT) )
#rtpproxy_answer("ro");
xlog("incoming reply\n");
}



Hopefully it can give you a direction to follow.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

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


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Rodrigo Pimenta Carvalho
In my configuration I have something like this:


 USeR LOCation module
loadmodule "usrloc.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   1)
modparam("usrloc", "db_url", "sqlite:///usr/local/opensips/db/sisc.sqlite") # 
CUSTOMIZE ME




route{


force_rport();
if (nat_uac_test("23")) {
if (is_method("REGISTER")) {
fix_nated_register();
setbflag(NAT);
} else {
fix_nated_contact();
setflag(NAT);
}
}



.

.

.


onreply_route[handle_nat] {
if (nat_uac_test("1"))
fix_nated_contact();
#if ( isflagset(NAT) )
#rtpproxy_answer("ro");
xlog("incoming reply\n");
}



Hopefully it can give you a direction to follow.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Husnain Taseer 
Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
Para: users@lists.opensips.org
Assunto: [OpenSIPS-Users] NAT handling for internally generated messages in 
local_route

Dear Users,
I am facing the same issue as discussed in the below thread few years ago.

http://opensips.org/pipermail/users/2009-March/003648.html

I am setting $DLG_timeout for every call so after this amount of seconds BYE is 
generated by TM module and sent to both caller and callee. But if callee or 
caller are behind NAT then the contact IP address (in their respective contact 
fields in dialog table) is private because of which opensips is sending BYE to 
their private addresses which is not reaching them and call don't disconnects. 
Is there any solution available to handle this issue.

Regards,
Husnain Taseer
VoIP Developer
___
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

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] Linphone and OpenSIPS over TCP

2016-02-05 Thread Nabeel
On 3 February 2016 at 23:42, sevpal  wrote:

Opensips interacts with the TURN in server MediaProxy only.
>


That's not completely true, because the TURN server works with OpenSIPS
when using UDP for calls. It just doesn't work - or only partially works -
with TCP/TLS.  I tested by changing configurations in the TURN server to
use TCP relays/listeners only, but it still only works with UDP. This leads
me to believe that it is a limitation in OpenSIPS that it only handles the
TURN server properly when calls are using UDP, not TCP/TLS.

Coturn is probably the most comprehensive TURN server available today. Is
there any chance that OpenSIPS will fully support this in the future?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] NAT handling for internally generated messages in local_route

2016-02-05 Thread Husnain Taseer
Dear Rodrigo,
The way you have configured NAT handling in your cfg worked for me
perfectly thank you for you to the point and wonderful assistance.

Regards,
Husnain Taseer
VoIP Developer

On Fri, Feb 5, 2016 at 10:23 PM, <users-requ...@lists.opensips.org> wrote:

> Send Users mailing list submissions to
> users@lists.opensips.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
> users-requ...@lists.opensips.org
>
> You can reach the person managing the list at
> users-ow...@lists.opensips.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>1. Re: NAT handling for internally generated messages in
>   local_route (Rodrigo Pimenta Carvalho)
>2. Re: NAT handling for internally generated messages in
>   local_route (Rodrigo Pimenta Carvalho)
>3. How to fix contact info and RTP port in SDP? Is fix_nated_sdp
>   function enough? (Rodrigo Pimenta Carvalho)
>4. Re: How to fix contact info and RTP port in SDP? Is
>   fix_nated_sdp function enough? (Newlin, Ben)
>
>
> --
>
> Message: 1
> Date: Fri, 5 Feb 2016 18:49:44 +
> From: Rodrigo Pimenta Carvalho <pime...@inatel.br>
> Subject: Re: [OpenSIPS-Users] NAT handling for internally generated
> messages in local_route
> To: OpenSIPS users mailling list <users@lists.opensips.org>
> Message-ID:
> <
> by2pr02mb1655fac5b55c57297c9fe446b5...@by2pr02mb1655.namprd02.prod.outlook.com
> >
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> In my configuration I have something like this:
>
>
>  USeR LOCation module
> loadmodule "usrloc.so"
> modparam("usrloc", "nat_bflag", "NAT")
> modparam("usrloc", "db_mode",   1)
> modparam("usrloc", "db_url",
> "sqlite:///usr/local/opensips/db/sisc.sqlite") # CUSTOMIZE ME
>
>
>
>
> route{
>
>
> force_rport();
> if (nat_uac_test("23")) {
> if (is_method("REGISTER")) {
> fix_nated_register();
> setbflag(NAT);
> } else {
> fix_nated_contact();
> setflag(NAT);
> }
> }
>
>
>
> .
>
> .
>
> .
>
>
> onreply_route[handle_nat] {
> if (nat_uac_test("1"))
> fix_nated_contact();
> #if ( isflagset(NAT) )
> #rtpproxy_answer("ro");
> xlog("incoming reply\n");
> }
>
>
>
> Hopefully it can give you a direction to follow.
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
>
> 
> De: users-boun...@lists.opensips.org <users-boun...@lists.opensips.org>
> em nome de Husnain Taseer <husnain.tas...@gmail.com>
> Enviado: sexta-feira, 5 de fevereiro de 2016 15:06
> Para: users@lists.opensips.org
> Assunto: [OpenSIPS-Users] NAT handling for internally generated messages
> in local_route
>
> Dear Users,
> I am facing the same issue as discussed in the below thread few years ago.
>
> http://opensips.org/pipermail/users/2009-March/003648.html
>
> I am setting $DLG_timeout for every call so after this amount of seconds
> BYE is generated by TM module and sent to both caller and callee. But if
> callee or caller are behind NAT then the contact IP address (in their
> respective contact fields in dialog table) is private because of which
> opensips is sending BYE to their private addresses which is not reaching
> them and call don't disconnects. Is there any solution available to handle
> this issue.
>
> Regards,
> Husnain Taseer
> VoIP Developer
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.opensips.org/pipermail/users/attachments/20160205/16a7b91f/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Fri, 5 Feb 2016 18:52:29 +
> From: Rodrigo Pimenta Carvalho <pime...@inatel.br>
> Subject: Re: [OpenSIPS-Users] NAT handling for internally generated
> messages in local_route
> To: OpenSIPS users mailling list <users@lists.opensips.org>
> Message-ID:
> <
> by2pr02m

Re: [OpenSIPS-Users] How to fix contact info and RTP port in SDP? Is fix_nated_sdp function enough?

2016-02-05 Thread Rodrigo Pimenta Carvalho
Hi Ben.


Thank you very much!

A person in my team is already dealing with ICE and STUN. So, that will be the 
right thing do to.

I was just curious about a function that can fix contact info but do nothing 
about RTP ports in SDP.

I understood that my case will not be solved with such function , but only with 
ICE and STUN.


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Newlin, Ben 
Enviado: sexta-feira, 5 de fevereiro de 2016 17:23
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] How to fix contact info and RTP port in SDP? Is 
fix_nated_sdp function enough?

Rodrigo,

What port should the module change it to? Until you receive RTP from the 
endpoint, there is no way to know what the correct RTP port is. It would 
require support on the endpoints to detect the RTP source port once RTP has 
been received. Most clients do not implement this, so direct media in the 
presence of NAT is not usually possible without other, external protocols like 
STUN.

Ben Newlin

From: 
> on 
behalf of Rodrigo Pimenta Carvalho >
Reply-To: OpenSIPS users mailling list 
>
Date: Friday, February 5, 2016 at 2:16 PM
To: "users@lists.opensips.org" 
>
Subject: [OpenSIPS-Users] How to fix contact info and RTP port in SDP? Is 
fix_nated_sdp function enough?


Dear OpenSIPS-users,


Two clients of my OpenSIPS are located behind different NATs and I have just 
started to search a way to mangles the SDP messages for both of them in a way 
that will make the parties talk directly with each other (direct media). After 
reading the proxy documentation (modules NATHELPER, STUN, MEDIAPROXY and 
NAT_TRAVERSAL) I have found the function fix_nated_sdp.


However, it seems that such function replaces the original contact IP, but not 
the RTP ports.

So I ask: what is the utility of the function fix_nated_sdp, if it fixes the 
contact info, but not the port? I mean, how can I fix the SDP in a way that 
contact info and RTP port will be valid to send media to a peer that is behind 
a NAT?


Any hint will be very very helpful!!


Best regards.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
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] ACK not forwarding

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Alex,

Yes, it is their bug and they should fix it. But if the UAC makes the 
call to PSTN, and my proxy closes the CDR but is not able to push 
forward the BYE to GW, the call will remain active on the GW side and it 
will bill me, as service provider - now, when the carrier will ask me to 
pay for that long zombie call, can I invoke "it is bad SIP that really 
should't be fixed " ?? :)


As I see it, the service provider (with the opensips proxy) should do 
whatever it take to protect the service/business, even if that means 
fixing somebody's else crap ;)


Regards,

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

On 04.02.2016 18:09, Alex Balashov wrote:

On 02/04/2016 11:08 AM, Alex Balashov wrote:


Bogdan,

That's interesting. I had no idea OpenSIPS had a module specifically
devoted to fixing bad SIP that really shouldn't be fixed. :-)


s/a module/dialog module functionality/




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


Re: [OpenSIPS-Users] Linphone and OpenSIPS over TCP

2016-02-05 Thread Nabeel
In the SDP of the call, I see UDP relays being used:

a=candidate:1 1 UDP 2130706431 10.180.107.181 7076 typ host a=candidate:1 2
UDP 2130706430 10.180.107.181 7077 typ host a=candidate:2 1 UDP 1694498815
92.40.248.63 51755 typ srflx raddr 10.180.107.181

For calls over TCP and TLS, should the relays be using TCP instead of UDP?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] recommended settings for performance

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Søren,

The throughput of your opensips highly depends on your script - if your 
logic is complex, if it performs many external queries (db,radius, rest, 
etc). It is more test and see approach - monitor the load of your 
opensips and adjusted based on your observations .


Trying to answer to your questions:

1) assuming there is a need for CPU processing, you should configure a 
number of total processes (in opensips) at least equal to the number of 
cores - the opensips as overall app can use all the cores in the same time.


2) I guess you mean about memory ? if you have large CPS / parallel 
calls / registrations, consider increasing the shm memory  - anyhow, 
inspect the mem usage at runtime with "opensipsctl fifo get_statistics 
shmem: "  and re-adjust


3) if you script is I/O intensive (DNS, DB, RADIUS, REST), better have a 
large number of processes (32?). If not, try to correlated with the 
number of cores you have. Also, adjust on the run by checking the 
internal load via "opensipsctl fifo get_statistics load: "


Regards,

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

On 01.02.2016 23:31, Søren Andersen wrote:


Hello there,

I’m looking for some reference configs on opensips performance.

-How many cpu cores are you using and how many CPS are you peaking at?

-Which startoptions in opensipsctlrc are you using?

-How many opensips process children are you running?

Currently I’m planning to use STARTOPTIONS="-m 2048 -M 8" on a 2 core 
VM with children=8. – I hope I’ll be able to run 600-1500 currently 
call on that setup. But that are your experience?


/Søren



___
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] IPv6 Contact header issue with brackets being removed 1.11

2016-02-05 Thread Jonathan Hunter
Hi guys, 
I am currently testing IPv6 on OpenSIPS v 1.11
I can see that if I send in an INVITE with the following contact address;


Contact: 
OpenSIPS then modifies it and sends it on as;

Contact: 
As can be seen without the square brackets the far end is rejecting with a bad 
contact header response as it sees 
Host as 2A01 and  Port: 7E00:0:0:F03C:91FF:FE98:BDCE:5080. 
Is this just a configuration issue?
Any help/comments would be great.
Many thanks
Jon



  ___
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

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] Opensips + Loadbalancer (inviting himself)

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Mike,

Assuming you do not actually want to have calls going back to your LB, 
my question is : when doing load_balance() function, do you check the 
return code to be sure the function was with success and a new 
destination was set to the call ? maybe the function fails for whatever 
reason and RURI/DURI is untouched, and of course, you route to yourself.


Regards,

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

On 04.02.2016 19:51, Mike Tesliuk wrote:

Hello Guys,

Im getting a problem with my proxy + loadbalancer.

Some time when i receive an invite the proxy send a new invite to 
himself and so got a authorization request reply


Below you have a link with an image of sngrep showing the situation

http://picpaste.com/pics/abfjhach-gAKIlkfK.1454608071.png

This does not happen all the time with all calls, its a sporadically .

If somebody have an idea about what can generate this kind of issue i 
will appreciate.


Thank you


___
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] [BOOK] Building Telephony Systems with OpenSIPS - 2.1 version

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Scott,

I will definitely recommend this book. The first edition (for 1.6) is 
outdated (the 1.6 version is obsoleted), so makes no sense to try 
building something on it.


Regards,

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

On 05.02.2016 02:52, Scott Fertig wrote:
I have a question about the reading material I would like to ask all. 
I currently run a small system using opensips 1.5 (I know I need to 
upgrade) and am interested in learning much more. Right now I have a 
basic understanding of opensips, I have a HA cluster setup using 
pacemaker/corosync, and am using the LCR module in 1.5 for all of my 
routing (have not used the drouting module yet). I wish to expand my 
knowledge of opensips to build out on the current system and upgrade 
to a more scalable system. Would you recommend this book or the book 
for 1.6?


Thank you much!

--Scott



On 02/04/2016 09:37 AM, Bogdan-Andrei Iancu wrote:

Hello all,

Flavio Goncalves and I are happy to announce the publishing of the 
second edition of "Building Telephony Systems with OpenSIPS", 
covering OpenSIPS version 2.1 .


Also many thanks to the Packt Publishing house for making it happened 
and to all our reviewers who help us to make this book better.


https://www.packtpub.com/networking-and-servers/building-telephony-systems-opensips-second-edition 



Enjoy !




___
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] increase CSeq

2016-02-05 Thread Чалков Артём
Hi all!I use opensips 2.1 with uac module. One of my carriers wants to authenticate not only INVITE, but also BYE request. In this case i have to increase CSeq of second BYE (with authentication header), but opensips don't increase CSeq itself, so i should increase it manually in failure_route after call uac_auth function. For INVITE authentication process, opensips increase CSeq automatically, so question is can opensips increase CSeq of some authenticating requests besides INVITE (eg UPDATE, BYE) and if it could be done, how to do it?

___
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] SCTP Symetric Multi Home

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Daniel,

mhomed works only for UDP transport protocol.

For other protocols, consider selecting the proper outbound interface 
based on your routing logic, from script, via the force_send_socket() 
function:

http://www.opensips.org/Documentation/Script-CoreFunctions-2-1#toc16
or (same effect) by setting the $fs (forced socket) variable:
http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc44

The socket you are forcing must be one of the opensips listeners.

Best

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

On 04.02.2016 18:32, Moreira Yokoyama, Daniel wrote:


Hi.

I'm trying to set Opensips to work on SCTP Symetric Multi Home.

To do this, I've set two endpoints:

listen=sctp:10.0.0.1:5070 

listen=sctp:10.0.0.2:5070 

and set mhomed

mhomed=1

Using SIPp to make some tests, I could see the association being 
successfully stablished, and as I turn down one of the client's 
network adapter it manages to successfully use other path with the 
another adapter. Problem is when I turn off one of the opensips 
adapter (10.0.0.1, for instance).


When I run the tcpdump I can notice that the heartbeat doesn't 
aknowledge the 10.0.0.2 to the association. But when searching on the 
internet I find a post on the list asking about multi home, whether it 
is supported or not, and the answer is that it does support, althought 
there is some lack of guidance to figure out how to set it up.


Looking through the source code, it seems that for each listen 
setting, it creates a separate socket association... what I need is to 
set a single socket and add both addresses to the same association 
(setting a multi home association).


The question is:

Does opensips really support this feature?

In case it does, what am I doing wrong to set it up?

Thanks.

Best regards.

Atenciosamente,

Daniel Moreira Yokoyama.

PS: Moderator, I apologize for the duplicated message. But the first 
one was sent by another address than this one and I assume it was 
blocked. Thank you.




___
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] Lots of presence:p_tm_callback, 408 warning

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Surya,

That means a NOTIFY generated by OpenSIPS (as part of a presence 
subscription) completed with 408 TIMEOUT status.


Regards,

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

On 04.02.2016 18:53, surya wrote:

Hi All,

While running the tests on Presence server I get huge number of below
warnings,

*Feb  4 11:49:40 [2501] WARNING:presence:p_tm_callback: completed with
status [408] and to_tag [155c340f586c28d0300cf5a6ccf90d99-6d08], cseq [CSeq:
1]*

What is the reason for these? Can I stop or make the code ignore these?


Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Lots-of-presence-p-tm-callback-408-warning-tp7601275.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
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] IPv6 Contact header issue with brackets being removed 1.11

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Jonathan,

OpenSIPS, by default, does not touch the Contact hdr - are you doing in 
your script any Contact related operation ?


Regards,

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

On 05.02.2016 12:16, Jonathan Hunter wrote:

Hi guys,

I am currently testing IPv6 on OpenSIPS v 1.11

I can see that if I send in an INVITE with the following contact address;



Contact: **

OpenSIPS then modifies it and sends it on as;


Contact:**

As can be seen without the square brackets the far end is rejecting 
with a bad contact header response as it sees


Host as 2A01 and  Port: 7E00:0:0:F03C:91FF:FE98:BDCE:5080.

Is this just a configuration issue?

Any help/comments would be great.

Many thanks

Jon






___
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] IPv6 Contact header issue with brackets being removed 1.11

2016-02-05 Thread Jonathan Hunter
Hi Bogdan, thanks for the fast response as ever! :)
I have fix_nated_contact(); defined, as its an IPv4 and v6 platform.
If I hash it out the issue goes away, so I will therefore put an exception in 
for IPv6.
I presume thats the issue! :)
Many thanks
Jon


Subject: Re: [OpenSIPS-Users] IPv6 Contact header issue with brackets being 
removed 1.11
To: users@lists.opensips.org; hunter...@hotmail.com
From: bog...@opensips.org
Date: Fri, 5 Feb 2016 12:31:03 +0200


  

  
  
Hi Jonathan,

  

  OpenSIPS, by default, does not touch the Contact hdr - are you
  doing in your script any Contact related operation ?

  

  Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05.02.2016 12:16, Jonathan Hunter
  wrote:



  
  Hi guys, 



I am currently testing IPv6 on OpenSIPS v 1.11



I can see that if I send in an INVITE with the following
  contact address;




  

  
  

  
  Contact: 
  

  
  OpenSIPS then modifies it and sends it on as;
  

  
  

  
  Contact:
  




As can be seen without the square brackets the far end is
  rejecting with a bad contact header response as it sees 



Host as 2A01 and  Port: 7E00:0:0:F03C:91FF:FE98:BDCE:5080. 



Is this just a configuration issue?



Any help/comments would be great.



Many thanks



Jon




  

  
  

  
  

  

  
  

  
  

  ___
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] Opensips + Loadbalancer (inviting himself)

2016-02-05 Thread Mike Tesliuk
Hello Bogdan,

You are right, i actually dont call the function on a conditional path, so,
probably was because there is no more resources available, i realy dont
remember why i comment out the IF , but i remove the comment and im testing
again

Thanks for the clarification

Have a good day

2016-02-05 7:43 GMT-02:00 Bogdan-Andrei Iancu :

> Hi Mike,
>
> Assuming you do not actually want to have calls going back to your LB, my
> question is : when doing load_balance() function, do you check the return
> code to be sure the function was with success and a new destination was set
> to the call ? maybe the function fails for whatever reason and RURI/DURI is
> untouched, and of course, you route to yourself.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com
>
> On 04.02.2016 19:51, Mike Tesliuk wrote:
>
> Hello Guys,
>
> Im getting a problem with my proxy + loadbalancer.
>
> Some time when i receive an invite the proxy send a new invite to himself
> and so got a authorization request reply
>
> Below you have a link with an image of sngrep showing the situation
>
> http://picpaste.com/pics/abfjhach-gAKIlkfK.1454608071.png
>
> This does not happen all the time with all calls, its a sporadically .
>
> If somebody have an idea about what can generate this kind of issue i will
> appreciate.
>
> Thank you
>
>
> ___
> 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


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] Fwd: Opensips as outbound proxy to Freeswitch

2016-02-05 Thread Bogdan-Andrei Iancu

Hi David,

Between 1 and 2, you need to decide what should be the relation between 
opensips and freeswitch.


If you consider opensips "serving" the SIP domain of FS (and have the 
aliasing), then you need to configure the logic for handling 
registrations into OpenSIPS - instead of locally processing the 
REGISTER's, it should simply forward them to FS. Also, all the calls 
targeting the served / local domains should be relayed to FS.


If you want opensips to see FS as an external entity (and consider the 
SIP domain of FS an something remote), you need to re-configure the call 
routing logic - to recognize the SIP domain used by FS and to accept to 
do relay for it (as a trusted peer).


Regards,

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

On 02.02.2016 10:44, David Wafula wrote:


-- Forwarded message --
From: *David Wafula* >
Date: Tue, Feb 2, 2016 at 10:43 AM
Subject: Re: [OpenSIPS-Users] Opensips as outbound proxy to Freeswitch
To: Bogdan-Andrei Iancu >


Yes, the opensips.cfg was indeed  messed up. i was tinkering with it. 
Anyway, i regenerated a clean one, put in the the alias, and happily 
got registrations going through. And one way audio. Except that i 
think am missing the big picture.

My goal is to have Opensips front Freeswitch:

Client  <->  OpenSips  <-> Freeswitch


To act as outbound proxy at this stage. As i learn more about it, i 
hope to get into NATing, loadbalancing etc. Am afraid  i have not 
 succeeded in achieving this goal unfortunately, yet, though i think 
am very close. This is what i have done.


1. Added the alias as advised. The registrations fail. Then when i 
create  users in opensips, registration work perfectly, and one of the 
users can call the other. Except that in this case it appears all is 
happening in Opensips and freeswitch is not in the loop here. Infact, 
i verified, that obviously registrationds are done on Opensips and not 
freeswitch.


2. I removed the alias, deleted the users from opensips. This time the 
registrations goes through successfully onto freeswitch. Very happy, 
as this is what i want. But now obviously INVITES fail with 403   Rely 
forbidden.


It appears to me, there is more configuration that i must do, beyond 
setting alias, to get Opensips to act as outboundproxy to freeswitch. 
I need  registrations and calls to happen on Freeswitch, but via Opensips.


So after again searching the internet, i can  see that  may be 
something like dynamic routing  can be done 
(http://www.taitclarridge.com/techlog/2012/02/opensips-dynamic-routing.html), 
or i can see whole lot of other  way of doing it 
(http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration).


What is the recommended, possibly simplest way to do this: to get 
opensips proxy registrations, invites , messaging to freeswitch.


Many thanks.







On Mon, Feb 1, 2016 at 5:30 PM, Bogdan-Andrei Iancu 
> wrote:


David,

Your opensips cfg is bogus - the test for the presence of username
in RURI should not be done for a REGISTER requests (as they do not
have a username part).

Where have you taken the script from ? have you changed it by
yourself ?

Regards,

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

On 01.02.2016 15:06, David Wafula wrote:

Thank you Bogdan. Ok  i made the alias change, and now am getting
"Address Incomplete"  reply.  Please see the log below, am not
sure what could be now causing this:

REQUEST

02-01 14:58:53.144: I/System.out(14726): REGISTER
sip:192.168.0.46 SIP/2.0
02-01 14:58:53.144: I/System.out(14726): Via: SIP/2.0/UDP
10.0.1.175:30802;rport;branch=z9hG4bKPjGfzHRCN4S.QyGFhBBv9njI9Amj2oU7ko
02-01 14:58:53.144: I/System.out(14726): Route:

02-01 14:58:53.144: I/System.out(14726): Max-Forwards: 70
02-01 14:58:53.144: I/System.out(14726): From:
;tag=eNVm.45KTH3OkXAjSikua1cwsZ.XdeRE
02-01 14:58:53.144: I/System.out(14726): To: 
02-01 14:58:53.144: I/System.out(14726): Call-ID:
9TVBTDFtUPz05axr9qvyynhFWhJetb6m
02-01 14:58:53.144: I/System.out(14726): CSeq: 64838 REGISTER
02-01 14:58:53.144: I/System.out(14726): User-Agent: Pjsua2
Android 2.4.5
02-01 14:58:53.144: I/System.out(14726): Contact:

02-01 14:58:53.144: I/System.out(14726): Expires: 300
02-01 14:58:53.144: I/System.out(14726): Allow: PRACK, INVITE,
ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER,
MESSAGE, OPTIONS
02-01 14:58:53.144: I/System.out(14726): Content-Length: 0
02-01 14:58:53.144: I/System.out(14726):
02-01 14:58:53.144: I/System.out(14726): --end msg--

   

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] IPv6 Contact header issue with brackets being removed 1.11

2016-02-05 Thread Jonathan Hunter
Hi Bogdan,
Great thanks for that.
Jon

Subject: Re: [OpenSIPS-Users] IPv6 Contact header issue with brackets being 
removed 1.11
To: hunter...@hotmail.com; users@lists.opensips.org
From: bog...@opensips.org
Date: Fri, 5 Feb 2016 13:35:11 +0200


  

  
  
Hi Jonathan,

  

  Indeed, there was a bug in the nathelper module when comes to
  re-building the contact with ipv6. I just pushed a fix on all
  maintained branches.

  

  Thanks and regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05.02.2016 12:51, Jonathan Hunter
  wrote:



  
  
Hi Bogdan, thanks for the
fast response as ever! :)


  
I have
fix_nated_contact(); defined, as its an IPv4 and v6
platform.


  
If I hash it out the
issue goes away, so I will therefore put an exception in for
IPv6.


  
I presume thats the
issue! :)


  
Many thanks


  
Jon




  

  
  

  
Subject: Re: [OpenSIPS-Users] IPv6
Contact header issue with brackets being removed 1.11

To: users@lists.opensips.org; hunter...@hotmail.com

From: bog...@opensips.org

Date: Fri, 5 Feb 2016 12:31:03 +0200



Hi Jonathan,

  

  OpenSIPS, by default, does not touch the Contact hdr - are
  you doing in your script any Contact related operation ?

  

  Regards,


Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05.02.2016 12:16,
  Jonathan Hunter wrote:



  
  Hi guys, 



I am currently testing IPv6 on OpenSIPS v 1.11



I can see that if I send in an INVITE with the
  following contact address;




  

  
  

  
  Contact: 
  

  
  OpenSIPS then modifies it and sends it on as;
  

  
  

  
  Contact:
  




As can be seen without the square brackets the far
  end is rejecting with a bad contact header response as
  it sees 



Host as 2A01 and  Port:
  7E00:0:0:F03C:91FF:FE98:BDCE:5080. 



Is this just a configuration issue?



Any help/comments would be great.



Many thanks



Jon




  

  
  

  
  

  

  
  

  
  

  ___
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] IPv6 Contact header issue with brackets being removed 1.11

2016-02-05 Thread Bogdan-Andrei Iancu

Hi Jonathan,

Indeed, there was a bug in the nathelper module when comes to 
re-building the contact with ipv6. I just pushed a fix on all maintained 
branches.


Thanks and regards,

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

On 05.02.2016 12:51, Jonathan Hunter wrote:

Hi Bogdan, thanks for the fast response as ever! :)

I have fix_nated_contact(); defined, as its an IPv4 and v6 platform.

If I hash it out the issue goes away, so I will therefore put an 
exception in for IPv6.


I presume thats the issue! :)

Many thanks

Jon




Subject: Re: [OpenSIPS-Users] IPv6 Contact header issue with brackets 
being removed 1.11

To: users@lists.opensips.org; hunter...@hotmail.com
From: bog...@opensips.org
Date: Fri, 5 Feb 2016 12:31:03 +0200

Hi Jonathan,

OpenSIPS, by default, does not touch the Contact hdr - are you doing 
in your script any Contact related operation ?


Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 05.02.2016 12:16, Jonathan Hunter wrote:

Hi guys,

I am currently testing IPv6 on OpenSIPS v 1.11

I can see that if I send in an INVITE with the following contact
address;



Contact: **

OpenSIPS then modifies it and sends it on as;


Contact:**

As can be seen without the square brackets the far end is
rejecting with a bad contact header response as it sees

Host as 2A01 and  Port: 7E00:0:0:F03C:91FF:FE98:BDCE:5080.

Is this just a configuration issue?

Any help/comments would be great.

Many thanks

Jon






___
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] How to send a call request to every online peer?

2016-02-05 Thread Rodrigo Pimenta Carvalho

Hi.


I have the situation:


Caller A needs call every online peer. That is, A needs call B, C, D, F...

The user should just push a 'call button' in his/her softphone and than 
OpenSIPs should receive only one SIP INVITE (let's say inviting number ). 
After receiving such INVITE, OpenSIPS should spread the request to every one. 
That is: SIP INVITE B, SIP INVITE C, SIP INVITE D, and so on.


In addiction, If one answers the call, others should receive SIP BYE 
immediately. Because A wants to call just with one peer and doesn't matter who 
will answer first. It is not a conference.


What kind of functionality am I talking about, in terms of OpenSIPS?

Is it possible?

Is the code simple?




Any hint will be very helpful!

Thanks a lot.




RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
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
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