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 configu

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

2016-02-05 Thread Husnain Taseer
e 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

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

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

2016-02-05 Thread Newlin, Ben
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 med

[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 (module

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

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()

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()

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 Inat

[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 calle

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? W

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 firs

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

[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 sh

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 Ionit

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

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

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 t

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

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,

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

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

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 Contac

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 #

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

[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 afte

[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 resp

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 proce

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

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 rela

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

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

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 Pre

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 a

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)

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.

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 pa

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

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 Develope

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 s

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

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 supp

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 Asyn