Re: [OpenSIPS-Users] REG::Zero Window in opensips 1.11.5

2017-06-13 Thread Ravitez Ravi
Hello Liviu,
Good Day,
Thank you, Tuning the window size worked :)

Regards,
Ravitez.D

On Fri, Jun 9, 2017 at 4:45 AM, Liviu Chircu <li...@opensips.org> wrote:

> Hi Ravi,
>
> The TCP/TLS code is not optimized to dispatch/parallelize the SIP messages
> read by a single worker on a heavily reused TCP connection. They will be
> processed serially, one at a time (possibly not by the same TCP worker, but
> that's irrelevant). However, SIP message processing in OpenSIPS is super
> fast and your TCP read buffers should never get filled up, unless maybe
> your kernel buffer sizes are too low. See this tutorial [1] for some tuning
> tips.
>
> On a different note, the more blocking ops you do in your script, the more
> chances for your box to start advertising TCP zero window to the  app
> server. If that's your case, then your best bet is to move to a 2.2+
> OpenSIPS, and make those statements asynchronous.
>
> [1]: https://www.cyberciti.biz/faq/linux-tcp-tuning/
>
> Liviu Chircu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 09.06.2017 07:00, Ravitez Ravi wrote:
>
> Hi All,
>
> Good Day,
>
> I’m using opensips V1.11.5-TLS and facing a problem with
> Zero Window.
>
> Here’s the scenario :
>
> NOTIFY
>
> Opensips client ---à App server
>
> 200 OK
>
> Opensips  ß App Server
>
>
>
> Now lets assume this
>
> NOTIFY
>
> Opensips client ---à App server
>
> NOTIFY
>
> Opensips client ---à App server
>
> NOTIFY
>
> Opensips client ---à App server
>
> NOTIFY
>
> Opensips client ---à App server
>
> NOTIFY
>
> Opensips client ---à App server
>
> NOTIFY
>
> Opensips client ---à App server
>
> NOTIFY
>
> Opensips client ---à App server
>
> 200 OK|200 ok | 200 ok | 200 ok
>
> Opensips  ß App Server
>
>
>
> Assuming the size of response if 5000 bytes.
>
> tcp_main detects data in the buffer and passes on to the child process to
> read the data from the buffer,
>
> child(buffer size 65535 ) now reads the data from the socket
>
> tcp_read_req()
>
> -  tcp_read_headers()
>
> -  Loops until all the sip messages are extracted and
> forwarded/processed
>
> -  Releases the connection to tcp_main
>
>
>
> Tcp_main attaches  to IO
>
>
>
> During the timer interval where  system reads the data from the socket and
> process  the data there would be new data pipelined in the socket, this
> gradually  results in Zero window L
>
> Would like to know if there’s a way to process the next available data on
> the socket once its been read.Thank you for your time J
>
>
>
> Regards,
>
> Ravitez.D
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] REG::Zero Window in opensips 1.11.5

2017-06-08 Thread Ravitez Ravi
Hi All,

Good Day,

I’m using opensips V1.11.5-TLS and facing a problem with
Zero Window.

Here’s the scenario :

NOTIFY

Opensips client ---à App server

200 OK

Opensips  ß App Server



Now lets assume this

NOTIFY

Opensips client ---à App server

NOTIFY

Opensips client ---à App server

NOTIFY

Opensips client ---à App server

NOTIFY

Opensips client ---à App server

NOTIFY

Opensips client ---à App server

NOTIFY

Opensips client ---à App server

NOTIFY

Opensips client ---à App server

200 OK|200 ok | 200 ok | 200 ok

Opensips  ß App Server



Assuming the size of response if 5000 bytes.

tcp_main detects data in the buffer and passes on to the child process to
read the data from the buffer,

child(buffer size 65535 ) now reads the data from the socket

tcp_read_req()

-  tcp_read_headers()

-  Loops until all the sip messages are extracted and
forwarded/processed

-  Releases the connection to tcp_main



Tcp_main attaches  to IO



During the timer interval where  system reads the data from the socket and
process  the data there would be new data pipelined in the socket, this
gradually  results in Zero window L

Would like to know if there’s a way to process the next available data on
the socket once its been read.Thank you for your time J



Regards,

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


Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-22 Thread Ravitez Ravi
al//lib64/opensips/
> opensipsctl/opensipsctl.base
>
> rm -fr /tmp/opensipsctl.base
>
> sed -e "s#/usr/local#/usr/local//sbin/#g" \
>
> < scripts/opensipsctl.ctlbase >
> /tmp/opensipsctl.ctlbase
>
> install -m 644 /tmp/opensipsctl.ctlbase \
>
> /usr/local//lib64/opensips/
> opensipsctl/opensipsctl.ctlbase
>
> rm -fr /tmp/opensipsctl.ctlbase
>
> sed -e "s#/usr/local#/usr/local//sbin/#g" \
>
> < scripts/opensipsctl.fifo > /tmp/opensipsctl.fifo
>
> install -m 644 /tmp/opensipsctl.fifo \
>
> /usr/local//lib64/opensips/
> opensipsctl/opensipsctl.fifo
>
> rm -fr /tmp/opensipsctl.fifo
>
> sed -e "s#/usr/local#/usr/local//sbin/#g" \
>
> < scripts/opensipsctl.unixsock >
> /tmp/opensipsctl.unixsock
>
> install -m 644 /tmp/opensipsctl.unixsock \
>
> /usr/local//lib64/opensips/
> opensipsctl/opensipsctl.unixsock
>
> rm -fr /tmp/opensipsctl.unixsock
>
> sed -e "s#/usr/local#/usr/local//sbin/#g" \
>
> < scripts/opensipsctl.sqlbase >
> /tmp/opensipsctl.sqlbase
>
> install -m 644 /tmp/opensipsctl.sqlbase \
>
> /usr/local//lib64/opensips/
> opensipsctl/opensipsctl.sqlbase
>
> rm -fr /tmp/opensipsctl.sqlbase
>
> # install db setup base script
>
> sed -e "s#/usr/local/sbin#/usr/local//sbin/#g" \
>
> -e 
> "s#/usr/local/etc/opensips#/usr/local//etc/opensips/#g"
> \
>
> -e 
> "s#/usr/local/share/opensips#/usr/local//share/opensips/#g"
> \
>
> < scripts/opensipsdbctl.base >
> /tmp/opensipsdbctl.base
>
> install -m 644 /tmp/opensipsdbctl.base \
>
> /usr/local//lib64/opensips/
> opensipsctl/opensipsdbctl.base
>
> rm -fr /tmp/opensipsdbctl.base
>
> cat scripts/opensipsdbctl | \
>
> sed -e "s#/usr/local/sbin#/usr/local//sbin/#g" | \
>
> sed -e 
> "s#/usr/local/lib/opensips#/usr/local//lib64/opensips#g"
> | \
>
> sed -e "s#/usr/local/etc/opensips#/usr/local//etc/opensips/#g"
> >/tmp/opensipsdbctl
>
> touch   /usr/local//sbin//opensipsdbctl
>
> install -m 755 /tmp/opensipsdbctl /usr/local//sbin/
>
> rm -fr /tmp/opensipsdbctl
>
> touch /usr/local//sbin//opensipsunix
>
> install -m 755 utils/opensipsunix/opensipsunix /usr/local//sbin/
>
> sed -e "s#/etc/opensips/opensips\.cfg#/usr/local//etc/opensips/opensips.cfg#g"
> \
>
> -e "s#/usr/sbin/#/usr/local//sbin/#g" \
>
> -e "s#/usr/lib/opensips/modules/#
> /usr/local//lib64/opensips/modules/#g" \
>
> -e "s#/usr/share/doc/opensips/#/
> usr/local//share/doc/opensips/#g" \
>
> < opensips.8 >  /usr/local//share/man//man8/
> opensips.8
>
> chmod 644  /usr/local//share/man//man8/opensips.8
>
> sed -e "s#/etc/opensips/opensips\.cfg#/usr/local//etc/opensips/opensips.cfg#g"
> \
>
> -e "s#/usr/sbin/#/usr/local//sbin/#g" \
>
> -e "s#/usr/lib/opensips/modules/#
> /usr/local//lib64/opensips/modules/#g" \
>
> -e "s#/usr/share/doc/opensips/#/
> usr/local//share/doc/opensips/#g" \
>
> < opensips.cfg.5 >  /usr/local//share/man//man5/
> opensips.cfg.5
>
> chmod 644  /usr/local//share/man//man5/opensips.cfg.5
>
> sed -e "s#/etc/opensips/opensips\.cfg#/usr/local//etc/opensips/opensips.cfg#g"
> \
>
> -e "s#/usr/sbin/#/usr/local//sbin/#g" \
>
> -e "s#/usr/lib/opensips/modules/#
> /usr/local//lib64/opensips/modules/#g" \
>
> -e "s#/usr/share/doc/opensips/#/
> usr/local//share/doc/opensips/#g" \
>
> < scripts/opensipsctl.8 >
> /usr/local//share/man//man8/opensipsctl.8
>
> chmod 644  /usr/local//share/man//man8/opensipsctl.8
>
> sed -e "s#/etc/opensips/opensips\.cfg#/usr/local//etc/opensips/opensips.cfg#g"
> \
>
> -e "s#/usr/sbin/#/usr/local//sbin/#g" \
>
> -e "s#/usr/lib/opensips/modules/#
> /usr/local//lib64/opensips/modules/#g" \
>
> -e "s#/usr/share/doc/opensips/#/

Re: [OpenSIPS-Users] R: Issues running opensips with load balancer.

2017-05-14 Thread Ravitez Ravi
Hi Michele,
Good Day,
Im unable to compile 2.3 in RHL 6.5
so got back to 1.9.

Regards,
Ravitez.D

On Sun, May 14, 2017 at 7:42 AM, michele.pinassi <michele.pina...@unisi.it>
wrote:

> Hi Ravi, there's any special reason not to choose latest 2.3 or, if you
> need 1.11 series, 1.11.9 ?
>
> Also i suggest to choose a Debian 8 instead of RHel.
>
> Michele
>
>
> Inviato da smartphone Samsung Galaxy.
>
> ---- Messaggio originale 
> Da: Ravitez Ravi <ravitez.dond...@gmail.com>
> Data: 13/05/17 23:01 (GMT+01:00)
> A: OpenSIPS users mailling list <users@lists.opensips.org>
> Oggetto: [OpenSIPS-Users] Issues running opensips with load balancer.
>
> Hi All,
>
> I’m trying to run opensips with load balancer module but it fails to come
> up. Below are details of what I have done and been trying. My questions are
> in *bold italics and highlighted in yellow*. Request you to take a look
> and help.
>
>
>
> *Objective:* Install OpenSIPS 1.11.10 with TLS on RHEL 6.5 for load
> balancing SIP traffic
>
> *Procedure followed:*
>
> 1.   Download and install OpenSIPS1.11.10 on RHEL 6.5 with default
> configuration:
>
> a.   Downloaded http://opensips.org/pub/opensips/1.11.10/opensips-1.
> 11.10-tls.tar.gz
>
> b.  Un-tar and un-zip the downloaded file
>
> c.   Go to opensips-1.11.10-tls folder, ran make menuconfig, select 
> Compile
> And Install OpenSIPS and followed by Exit & Save All Changes
>
> d.  Run opensips on command line, ensure the opensips process is
> running using ‘ps -ef | grep opensips’ command and stop the process using
> ‘killall opensips’
>
>
>
> 2.   Get necessary dependencies straightened out for load balancer as
> mentioned in section 1.4 in http://www.opensips.org/html/
> docs/modules/1.11.x/load_balancer.html
>
> a.   The section lists the following OpenSIPS modules: i) *Dialog* –
> Dialog module, ii) *Dialog* – TM module, iii) *database* – one of the DB
> modules.
>
> b.  I did not see any specific dialog module either in Configure
> Compile Flags or Configure Excluded Modules, however, I could see
> /usr/local/lib64/opensips/modules/dialog.so and assumed this is the
> intended module. *Not sure if it covers both Dialog and TM. Please
> clarify.*
>
> c.   I selected db_mysql from Configure Excluded Modules and got a
> message “You have enabled the 'db_mysql' module, so please install '
> development libraries of mysql-client , typically libmysqlclient-dev'”
> while saving. I could not find the RPM for RHEL. The closed I could find is
> libmysqlclient16-devel-5.1.69-1.w6.x86_64.rpm which fails to get
> installed. *Am I in right path here? Please advise.*
>
> d.  I was following an example mentioned section 3.2 in
> http://www.opensips.org/Documentation/Tutorials-LoadBalancing.
>
> The section shows following modules to be loaded:
>
> loadmodule "modules/maxfwd/maxfwd.so"
>
> loadmodule "modules/sl/sl.so"
>
> loadmodule "modules/db_mysql/db_mysql.so"
>
> loadmodule "modules/tm/tm.so"
>
> loadmodule "modules/xlog/xlog.so"
>
> loadmodule "modules/uri/uri.so"
>
> loadmodule "modules/rr/rr.so"
>
> loadmodule "modules/dialog/dialog.so"
>
> loadmodule "modules/mi_fifo/mi_fifo.so"
>
> loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so"
>
> loadmodule "modules/signaling/signaling.so"
>
> loadmodule "modules/textops/textops.so"
>
> loadmodule "modules/load_balancer/load_balancer.so"
>
> However, the sub-directories mentioned in above list is not seen on my
> file system after OpenSIPS installation, yet I see some of the above list
> shared libraries under /usr/local/lib64/opensips/modules. *Hope this is
> ok.*
>
> e.  The defaults opensips.cfg provided includes most of the above
> listed modules, but the below libraries were missing which are needed for
> load balancer:
>
> loadmodule "modules/dialog.so"
>
> loadmodule "modules/textops.so"
>
> loadmodule "modules/load_balancer/load_balancer.so"
>
> loadmodule "modules/db_mysql/db_mysql.so"
>
> loadmodule "modules/xlog/xlog.so"
>
> loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so
>
> I was able to successfully start opensips after loading dialog.so and
> textops.so, however, opensips refuses to start when I load load_balancer.so
> with following error:
>
> May 13 16:40:18 kuat opensips: INFO:core:shm_mem_init: allocating SHM block
>
> May 13 16:40:18 kuat opensips[22969]: NOTICE:core:

[OpenSIPS-Users] Issues running opensips with load balancer.

2017-05-13 Thread Ravitez Ravi
Hi All,

I’m trying to run opensips with load balancer module but it fails to come
up. Below are details of what I have done and been trying. My questions are
in *bold italics and highlighted in yellow*. Request you to take a look and
help.



*Objective:* Install OpenSIPS 1.11.10 with TLS on RHEL 6.5 for load
balancing SIP traffic

*Procedure followed:*

1.   Download and install OpenSIPS1.11.10 on RHEL 6.5 with default
configuration:

a.   Downloaded
http://opensips.org/pub/opensips/1.11.10/opensips-1.11.10-tls.tar.gz

b.  Un-tar and un-zip the downloaded file

c.   Go to opensips-1.11.10-tls folder, ran make menuconfig, select Compile
And Install OpenSIPS and followed by Exit & Save All Changes

d.  Run opensips on command line, ensure the opensips process is
running using ‘ps -ef | grep opensips’ command and stop the process
using ‘killall
opensips’



2.   Get necessary dependencies straightened out for load balancer as
mentioned in section 1.4 in
http://www.opensips.org/html/docs/modules/1.11.x/load_balancer.html

a.   The section lists the following OpenSIPS modules: i) *Dialog* –
Dialog module, ii) *Dialog* – TM module, iii) *database* – one of the DB
modules.

b.  I did not see any specific dialog module either in Configure
Compile Flags or Configure Excluded Modules, however, I could see
/usr/local/lib64/opensips/modules/dialog.so and assumed this is the
intended module. *Not sure if it covers both Dialog and TM. Please clarify.*

c.   I selected db_mysql from Configure Excluded Modules and got a
message “You have enabled the 'db_mysql' module, so please install '
development libraries of mysql-client , typically libmysqlclient-dev'”
while saving. I could not find the RPM for RHEL. The closed I could
find is libmysqlclient16-devel-5.1.69-1.w6.x86_64.rpm
which fails to get installed. *Am I in right path here? Please advise.*

d.  I was following an example mentioned section 3.2 in
http://www.opensips.org/Documentation/Tutorials-LoadBalancing.

The section shows following modules to be loaded:

loadmodule "modules/maxfwd/maxfwd.so"

loadmodule "modules/sl/sl.so"

loadmodule "modules/db_mysql/db_mysql.so"

loadmodule "modules/tm/tm.so"

loadmodule "modules/xlog/xlog.so"

loadmodule "modules/uri/uri.so"

loadmodule "modules/rr/rr.so"

loadmodule "modules/dialog/dialog.so"

loadmodule "modules/mi_fifo/mi_fifo.so"

loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so"

loadmodule "modules/signaling/signaling.so"

loadmodule "modules/textops/textops.so"

loadmodule "modules/load_balancer/load_balancer.so"

However, the sub-directories mentioned in above list is not seen on my file
system after OpenSIPS installation, yet I see some of the above list shared
libraries under /usr/local/lib64/opensips/modules. *Hope this is ok.*

e.  The defaults opensips.cfg provided includes most of the above
listed modules, but the below libraries were missing which are needed for
load balancer:

loadmodule "modules/dialog.so"

loadmodule "modules/textops.so"

loadmodule "modules/load_balancer/load_balancer.so"

loadmodule "modules/db_mysql/db_mysql.so"

loadmodule "modules/xlog/xlog.so"

loadmodule "modules/mi_xmlrpc/mi_xmlrpc.so

I was able to successfully start opensips after loading dialog.so and
textops.so, however, opensips refuses to start when I load
load_balancer.so with
following error:

May 13 16:40:18 kuat opensips: INFO:core:shm_mem_init: allocating SHM block

May 13 16:40:18 kuat opensips[22969]: NOTICE:core:main: version: opensips
1.11.10-tls (x86_64/linux)

May 13 16:40:18 kuat opensips[22969]: INFO:core:main: using 32 Mb shared
memory

May 13 16:40:18 kuat opensips[22969]: INFO:core:main: using 2 Mb private
memory per process

May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
Registered event 

May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
Registered event 

May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
Registered event 

May 13 16:40:18 kuat opensips[22969]: NOTICE:signaling:mod_init:
initializing module ...

May 13 16:40:18 kuat opensips[22969]: INFO:sl:mod_init: Initializing
StateLess engine

May 13 16:40:18 kuat opensips[22969]: INFO:tm:mod_init: TM - initializing...

May 13 16:40:18 kuat opensips[22969]: INFO:rr:mod_init: rr - initializing

May 13 16:40:18 kuat opensips[22969]: INFO:maxfwd:mod_init: initializing...

May 13 16:40:18 kuat opensips[22969]: INFO:sipmsgops:mod_init:
initializing...

May 13 16:40:18 kuat opensips[22969]: INFO:usrloc:ul_init_locks: locks
array size 512

May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
Registered event 

May 13 16:40:18 kuat opensips[22969]: INFO:core:evi_publish_event:
Registered event 

May 13 16:40:18 kuat opensips[22969]: INFO:registrar:mod_init:
initializing...

May 13 16:40:18 kuat opensips[22969]: INFO:acc:mod_init: 

Re: [OpenSIPS-Users] REG::Opensips V1.11.5 & V1.11.10 Duplicate TCP Conections

2017-05-11 Thread Ravitez Ravi
Hello Razvan,
Good Day,
Would like to bring up that if children(workes) try to
create TCP connections without a locking mechanism we may hit TCP
connection limit and  not process or handle valid requests

eg :
tcp_max_connections=10;
tcp_connection_lifetime=43200;
tcp_children=32

  Considering the above configuration with the existing
framework we can use up all 10 connections and then reject new connections.
  Please advise.Thank you :)


Regard,
Ravitez.D


On Tue, May 9, 2017 at 10:20 AM, Ravitez Ravi <ravitez.dond...@gmail.com>
wrote:

> Hello Razvan,
>God Day,
>Thank you for the update,it seems that though we create
> multiple TCP connections opensips uses only one tcp connection to send the
> data out.
>should a child be locking the tcp connection mechanism?
> while creating a new tcp connection as we will be overwriting the
> tcpconn_aliases_has to the
>latest/recent fd.
>
>  I believe here's the root cause :
> - When a child tries to find a connection to the destination it
> calls _tcpconn_find() (assuming we are using ip and not id) system checks 
> *tcpconn_aliases_hash
> *for the connection info.
>  * this map is maintained by the parent process and each child lock
> its while reaing tcpconn_get().in order to simulate the scenario lets
> assume a->parent->state is BAD this method*
> *  will return null and so the child tries to create a new
> connections,assuming there's a second child trying to find the same
> connections and goes through the same process*
>
>   - *Now each child thinks there's no connection to the destination and
> calls tcpconn_connect() this will create a socket to the destination and
> passes over the fd to the *
> *main process to update the has map.*
>
>   - *Not sure if tcp_connect() should have locking mechanism as in
> tcpconn_get().*
>
>Thank you :)
>
> Regards,
> Ravitez.D
>
> On Mon, May 8, 2017 at 10:48 AM, Răzvan Crainea <raz...@opensips.org>
> wrote:
>
>> Hi, Ravitez!
>>
>> You are right - if opensips gets multiple messages in parallel that need
>> to get to a single destination, each process will open a different
>> connection to that destination. However, all sequential messages will use a
>> single TCP connection.
>> Synchronizing all the TCP actions to ensure you will have a single
>> connection might be a bit overkill in terms of performance.
>>
>> May I ask if this is a problem for you? Can you detail a bit why?
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>> On 05/04/2017 04:11 PM, Ravitez Ravi wrote:
>>
>> Hi All,
>> Good Day,
>> I have been seeing opensips creating mutiple(duplicate) TCP
>> connections to the same destination if hit with heavy call load.
>>
>> *What do i mean?*
>> opensips ip : 10.10.10.1
>> Destination  : 10.10.10.2
>> Tcp Children : 32
>>
>> Ideally opensips will create only one tcp connections and reuses
>> it,if there's a heavy call load i see there are several tcp connections
>> which are created to the same destination.
>> I believe here's the root cause :
>> - When a child tries to find a connection to the destination it calls
>> _tcpconn_find() (assuming we are using ip and not id) system checks
>> tcpconn_aliases_hash for the connection info.
>>   this map is maintained by the parent process and each child lock
>> its while reaing tcpconn_get().in order to simulate the scenario lets
>> assume a->parent->state is BAD this method
>>   will return null and so the child tries to create a new
>> connections,assuming there's a second child trying to find the same
>> connections and goes through the same process
>>
>>   - Now each child thinks there's no connection to the destination and
>> calls tcpconn_connect() this will create a socket to the destination and
>> passes over the fd to the
>> main process to update the has map.
>>
>>   - Not sure if tcp_connect() should have locking mechanism as in
>> tcpconn_get().
>>
>>
>>
>> Please correct me if my understanding is wrong,please share your thoughts.
>> Thank you.
>>
>>
>>
>> Regards,
>> Ravitez.D
>>
>>
>> ___
>> 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] REG::Multiple TCP Connections to Same Destination.

2017-05-11 Thread Ravitez Ravi
Hello Bogdan,
  Good Day,
  Congestion happens on the receive Q of opensips(UAS -> opensips)
when UAS tries to send ~3000 messages in one second.
  and  i see multiple tcp_connections being created to the same
destination (SBC) but based on the logic only the recent or the last
connection is
  being used,when tcp_async is used i see readQ (USA->opensips) not
being read (still see n number of bytes).
  Thank you.

Regards,
Ravitez.D


On Thu, May 11, 2017 at 4:13 AM, Bogdan-Andrei Iancu <bog...@opensips.org>
wrote:

> Hello Ravitez,
>
> yes, there will be only one connection between OpenSIPS and SBC, which
> will be shared between all the SIP workers. In OpenSIPS TCP, there is no
> concept of "connection per child". Still, what is the kind of congestion
> you are experience ? could you provide here some more details ?
>
> Best regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 05/01/2017 05:48 PM, Ravitez Ravi wrote:
>
> Hi Bogdan,
>Good Day,
>Thank you for reaching out.
>Considering the below example,though we have multiple UAC
>opensips creates only one tcp connection to SBC which is
> valid because it only sees the SBC
>but this creates congestion and in few scenarios opensips
> creates too many tcp connections(bug).
>in order to solve this i was thinking if we can have 1 tcp
> connection per child.
>Please share your thoughts.
>Thank you.
>
>
>
> [image: Inline image 1]
>
>
> Regards,
> Ravitez.D
>
>
> On Mon, May 1, 2017 at 4:43 AM, Bogdan-Andrei Iancu <
> <bog...@opensips.org>bog...@opensips.org> wrote:
>
>> Hi Ravitez,
>>
>> OpenSIPS is doing connection reusage, so, if there IP destination is the
>> same, the existing connection will be used.
>>
>> Why do you want to change this ?
>>
>> Best regards,
>>
>> Bogdan-Andrei Iancu
>>   OpenSIPS Founder and Developer
>>   http://www.opensips-solutions.com
>>
>> OpenSIPS Summit May 2017 Amsterdam
>>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>>
>> On 04/28/2017 07:28 AM, Ravitez Ravi wrote:
>>
>> Hello,
>>I have been using opensips 1.11.5 as a proxy between the
>> application server and clients,things were fine as each client had a
>> dedicated tcp connection to opensips.
>>once i introduced SBC ,opensips has only one TCP connection to SBC
>> .would it be possible to create multiple TCP connections to the same
>> destination?.
>> eg :
>>  Each child having a TCP connection to the same destination.
>>  from what i understand is if a tcp connection exists to a
>> destination opensips passes on the fd to a requesting child to send data.
>>  please share your thoughts.
>> Regards,
>> Ravitez.D
>>
>> ___
>> 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] REG::Opensips V1.11.5 & V1.11.10 Duplicate TCP Conections

2017-05-09 Thread Ravitez Ravi
Hello Razvan,
   God Day,
   Thank you for the update,it seems that though we create
multiple TCP connections opensips uses only one tcp connection to send the
data out.
   should a child be locking the tcp connection mechanism?
while creating a new tcp connection as we will be overwriting the
tcpconn_aliases_has to the
   latest/recent fd.

 I believe here's the root cause :
- When a child tries to find a connection to the destination it
calls _tcpconn_find() (assuming we are using ip and not id) system
checks *tcpconn_aliases_hash
*for the connection info.
 * this map is maintained by the parent process and each child lock its
while reaing tcpconn_get().in order to simulate the scenario lets
assume a->parent->state is BAD this method*
*  will return null and so the child tries to create a new
connections,assuming there's a second child trying to find the same
connections and goes through the same process*

  - *Now each child thinks there's no connection to the destination and
calls tcpconn_connect() this will create a socket to the destination and
passes over the fd to the *
*main process to update the has map.*

  - *Not sure if tcp_connect() should have locking mechanism as in
tcpconn_get().*

   Thank you :)

Regards,
Ravitez.D

On Mon, May 8, 2017 at 10:48 AM, Răzvan Crainea <raz...@opensips.org> wrote:

> Hi, Ravitez!
>
> You are right - if opensips gets multiple messages in parallel that need
> to get to a single destination, each process will open a different
> connection to that destination. However, all sequential messages will use a
> single TCP connection.
> Synchronizing all the TCP actions to ensure you will have a single
> connection might be a bit overkill in terms of performance.
>
> May I ask if this is a problem for you? Can you detail a bit why?
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 05/04/2017 04:11 PM, Ravitez Ravi wrote:
>
> Hi All,
> Good Day,
> I have been seeing opensips creating mutiple(duplicate) TCP
> connections to the same destination if hit with heavy call load.
>
> *What do i mean?*
> opensips ip : 10.10.10.1
> Destination  : 10.10.10.2
> Tcp Children : 32
>
> Ideally opensips will create only one tcp connections and reuses it,if
> there's a heavy call load i see there are several tcp connections which are
> created to the same destination.
> I believe here's the root cause :
> - When a child tries to find a connection to the destination it calls
> _tcpconn_find() (assuming we are using ip and not id) system checks
> tcpconn_aliases_hash for the connection info.
>   this map is maintained by the parent process and each child lock its
> while reaing tcpconn_get().in order to simulate the scenario lets assume a
> ->parent->state is BAD this method
>   will return null and so the child tries to create a new
> connections,assuming there's a second child trying to find the same
> connections and goes through the same process
>
>   - Now each child thinks there's no connection to the destination and
> calls tcpconn_connect() this will create a socket to the destination and
> passes over the fd to the
> main process to update the has map.
>
>   - Not sure if tcp_connect() should have locking mechanism as in
> tcpconn_get().
>
>
>
> Please correct me if my understanding is wrong,please share your thoughts.
> Thank you.
>
>
>
> Regards,
> Ravitez.D
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] REG::Opensips V1.11.5 & V1.11.10 Duplicate TCP Conections

2017-05-04 Thread Ravitez Ravi
Hi All,
Good Day,
I have been seeing opensips creating mutiple(duplicate) TCP
connections to the same destination if hit with heavy call load.

*What do i mean?*
opensips ip : 10.10.10.1
Destination  : 10.10.10.2
Tcp Children : 32

Ideally opensips will create only one tcp connections and reuses it,if
there's a heavy call load i see there are several tcp connections which are
created to the same destination.
I believe here's the root cause :
- When a child tries to find a connection to the destination it calls
_tcpconn_find() (assuming we are using ip and not id) system checks
tcpconn_aliases_hash for the connection info.
  this map is maintained by the parent process and each child lock its
while reaing tcpconn_get().in order to simulate the scenario lets assume a->
parent->state is BAD this method
  will return null and so the child tries to create a new
connections,assuming there's a second child trying to find the same
connections and goes through the same process

  - Now each child thinks there's no connection to the destination and
calls tcpconn_connect() this will create a socket to the destination and
passes over the fd to the
main process to update the has map.

  - Not sure if tcp_connect() should have locking mechanism as in
tcpconn_get().



Please correct me if my understanding is wrong,please share your thoughts.
Thank you.



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


[OpenSIPS-Users] REG::Multiple TCP Connections to Same Destination.

2017-04-27 Thread Ravitez Ravi
Hello,
   I have been using opensips 1.11.5 as a proxy between the application
server and clients,things were fine as each client had a dedicated tcp
connection to opensips.
   once i introduced SBC ,opensips has only one TCP connection to SBC
.would it be possible to create multiple TCP connections to the same
destination?.
eg :
 Each child having a TCP connection to the same destination.

 from what i understand is if a tcp connection exists to a destination
opensips passes on the fd to a requesting child to send data.
 please share your thoughts.


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


[OpenSIPS-Users] Opensips(1.11.5) Crash - " #0 0x00007fcd7223ae2c in vfprintf () from /lib64/libc.so.6"

2017-02-01 Thread Ravitez Ravi
Hi All,
Good Day,
OpenSips(1.11.5) is constantly crashing at " vfprintf ()"
Logs are filled up with the following error message
  2017-01-24T18:14:02.000-05:00 [local2] [err] E01Z01.dev.com
/usr/sbin/opensips[4473]: ERROR:core:io_watch_del: trying to delete already
erased entry 46 in the hash(0, 0, (nil)) )
  2017-01-24T18:14:02.000-05:00 [local2] [err] E01Z01.dev.com
/usr/sbin/opensips[4473]: ERROR:core:tcp_read_req: bad request, state=0,
error=2 buf:

We see the following in tcp_connection list :
Connection::  ID=4029 Type=*tcp*
*State=18446744073709551615* Source=172.29.106.95:5060 Destination=
172.29.106.10:5060 Timeout=2017-01-25 19:35:35 Pending lifetime=0
not sure if its a valid state.
Here's the debug log :
[20758]: DBG:core:tcp_read_req: - received from: port 5060
[20758]: DBG:core:print_ip: - received from: ip *172.29.106.95*
[20758]: DBG:core:io_watch_del: io_watch_del op on index -1 52
(0x8100e0, 52, -1, 0x10,0x3) fd_no=2 called
[20758]: ERROR:core:io_watch_del: trying to delete already erased
entry 52 in the hash(0, 0, (nil)) )
[20758]: DBG:core:release_tcpconn:  releasing con 0x7f543179d700,
state -2, fd=52, id=4029
[20758]: DBG:core:release_tcpconn:  extra_data (nil)
[20758]: DBG:core:tcp_read_req: Using the global ( per process )
buff
[20758]: ERROR:core:tcp_read_req: bad request, state=0, error=2 buf

 Please find the attached Stack Trace and logs generated.
 Not sure if this is already address in a different version of
OpenSips or a know issue,please share your thoughts.
 Thank you for your time.

Attached Log File Contains Following Sections :
Line 1: ## Core 1  Time : 2017-01-24T18:04 ##
Line 174: ## Log Information ##
Line 175: ## Before Crash ##
Line 188: 2017-01-24T18:04:29.000-05:00 [local2] [err] E01Z01.dev.com
/usr/sbin/opensips[31607]: ERROR:core:tls_shutdown: something wrong in SSL:
    Crash 
Line 190: ## After Crash ##
Line 215: ## Continuous Errors ##
Line 235: ##   Second Crash ##
Line 249: ##  Core 2  Time : 2017-01-25T09:08 ##
Line 421: # Core 3 Time : 2017-01-25T09:08 #
Line 619: # Core 4 Time : 2017-01-25T09:08 #
Line 820: # Core 5 Time : 2017-01-25T19:35 #
Line 1011: # Additional Logs # --> This section contains TCP
Connection list and Debug information from Opensips


Regards,
Ravitez.D
## Core 1  Time : 2017-01-24T18:04 ##
gdb /usr/sbin/opensips core.31643
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6_4.1)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/sbin/opensips...done.

warning: core file may not match specified executable file.
[New Thread 31643]
Missing separate debuginfo for /usr/lib64/opensips/modules/signaling.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/a5/6fe5f3fb5f5a5945cd0fd8384403a1610ac723
Missing separate debuginfo for /usr/lib64/opensips/modules/sl.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/a0/3aa3c43c41ef6b5a3443edee6b57557f99e95f
Missing separate debuginfo for /usr/lib64/opensips/modules/tm.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/86/ec031a2c632fc2c1c2ebc807d134588c879e8f
Missing separate debuginfo for /usr/lib64/opensips/modules/rr.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/f9/5a55b1e8ec652178bbf56f1de12a130f2d3fc2
Missing separate debuginfo for /usr/lib64/opensips/modules/maxfwd.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/3c/bcedbe5e2cb56ce0232c168ce10d01549154e9
Missing separate debuginfo for /usr/lib64/opensips/modules/sipmsgops.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/68/3d8e3c5d0e47bb4e69df2e47f62b8a6c2b02e1
Missing separate debuginfo for /usr/lib64/opensips/modules/mi_fifo.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/25/0c6e832f8702623763334c66d80701abd2f757
Missing separate debuginfo for /usr/lib64/opensips/modules/uri.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 
/usr/lib/debug/.build-id/6c/8c7108c432cb039e548473b9c190265cb21c3c
Missing separate debuginfo for /usr/lib64/opensips/modules/usrloc.so
Try: yum --disablerepo='*' --enablerepo='*-debug*' install 

[OpenSIPS-Users] IS_MYSELF() always uses 5060 if received port is 0

2016-05-13 Thread Ravitez Ravi
Hi All,
Good Day,
Here's the problem i'm facing and would be a great help if you
could comment.
Thank you.

is_myself() does not check for SIPS port if connection type is TLS
*Configuration :*
- Opensips V1.11.5 running in secure mode on port 5061
- Avaya trying to communicate with Opensips server.
- Opensips server ip 192.168.1.11
- Avaya ip : 192.168.1.20


*Steps :*
- Avaya sends INVITE to Opensips with route header
Route: 

- Opensips tries to process it but fails.
*DBG:rr:is_preloaded: is_preloaded: Yes*
* DBG:core:grep_sock_info: checking if host==us: 14==14 &&  [192.168.1.11]
== [192.168.1.11]*
* DBG:core:grep_sock_info: checking if port 5061 matches port 5060*
* DBG:core:check_self: host != me*
* DBG:rr:after_loose: Topmost URI is NOT myself*



SIP/2.0 403 Preload Route denied

*Code Snippet :*
/*
 * Check if URI is myself
 */
#ifdef ENABLE_USER_CHECK
static inline int is_myself(str *_user, str* _host, unsigned short _port)
#else
static inline int is_myself(str* _host, unsigned short _port)
#endif
{
int ret;

*ret = check_self(_host, _port ? _port : SIP_PORT, 0);/* match all protos*/*
if (ret < 0) return 0;

*Should is_myself() check for connection type and then decide to either use
SIP or SIPS port.*



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


[OpenSIPS-Users] REG::failed to accept connection(24):Too many open file

2016-03-19 Thread Ravitez Ravi
Hi All,
I see the following error "failed to accept connection(24):Too many
open file"  when there are multiple devices trying to establish connection
with opensips server .
it would be great if you could share your thoughts.

*Version :1.11.5*

*Process Limits :*
Limit Soft Limit   Hard Limit   Units
Max cpu time  unlimitedunlimitedseconds
Max file size unlimitedunlimitedbytes
Max data size unlimitedunlimitedbytes
Max stack size10485760 unlimitedbytes
Max core file sizeunlimitedunlimitedbytes
Max resident set  unlimitedunlimitedbytes
Max processes 257434   257434
processes
*Max open files1638416384files*
Max locked memory 6553665536bytes
Max address space unlimitedunlimitedbytes
Max file locksunlimitedunlimitedlocks
Max pending signals   257434   257434   signals
Max msgqueue size 819200   819200   bytes
Max nice priority 00
Max realtime priority 00

*Configuration :*
tcp_children=8
tcp_max_connections=4096
tcp_accept_aliases=no
tcp_connect_timeout=2000
tcp_connection_lifetime=43200
tcp_keepalive=1
tcp_async=1

-M 16
-m 256

*Logs :*
[26453]: ERROR:core:handle_new_connect: failed to accept connection(24):
Too many open file
[26440]: ERROR:core:tcpconn_new: shared memory allocation failure


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


[OpenSIPS-Users] REG::opensipsctl with multiple opensips instances

2016-01-06 Thread Ravitez Ravi
Hello All,
Good Day and a Happy New Year.
I have two instances of openSips(V1.11) executable running say
"opensips1" and "opensips2"
when i execute opensipsctl it always picks up data from
"opensips2" is there a way that we can
choose which executable to pick.Thank you for the help.

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


[OpenSIPS-Users] REG::TLS connection to non 5061 port

2015-11-23 Thread Ravitez Ravi
Hello All,
When a TLS request is sent to a non standard sip port opensips
does not initiate "client hello"

Logs :
 ERROR:core:tls_connect: SSL_ERROR_SYSCALL err=Success(0)
 ERROR:core:tls_connect: New TLS connection to 1.2.3.4:5062 failed (example
ip)
 ERROR:core:tls_connect: TLS error: 5 (ret=0) err=Success(0


Can you please provide your comments.
Thank you for the help.

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


[OpenSIPS-Users] Opensips fails to ESTABLISH TLS for non-slandered Secure SIP port

2015-11-23 Thread Ravitez Ravi
*Hello All,*
OpenSIPS fails to establish TLS connection with far end which
is listening to non-standard secure SIP port (i.e., far end listening on
port other than 5061).

*Setup details:*
TLS client: OpenSIPS 1.11.5 running on RHEL 6.5
TLS client listen port: 5061
TLS client IP: 10.204.182.27
TLS server: Blink VOIP soft phone running on Windows 7 desktop
TLS server listen port: 5062
TLS server IP: 10.204.45.62

*Scenario:*
OpenSIPS is TLS client & Blink VOIP soft phone is TLS server.
OpenSIPS tries to initiate a TLS session & successfully establishes a TCP
connection:
• OpenSIPS/Client[49384] -> Blink/Server[5062] - TCP [SYN]
• Blink/Server[5062] -> OpenSIPS/Client[49384] – TCP [SYN, ACK]
• OpenSIPS/Client[49384] -> Blink/Server[5062] – TCP [ACK]
• OpenSIPS/Client[49384] -> Blink/Server[5062] – TCP [PSH, ACK]

*Expected to see OpenSIPS sending ‘Client Hello’ to Blink, however, I see
nothing here after. *
The OpenSIPS logs show the following:
INFO:core:probe_max_sock_buff: using snd buffer of 244 kb
INFO:core:init_sock_keepalive: -- TCP keepalive enabled on socket
DBG:core:print_ip: tcpconn_new: new tcp connection to: 10.204.45.62
DBG:core:tcpconn_new: on port 5062, type 3
DBG:core:tls_tcpconn_init: entered: Creating a whole new ssl connection
DBG:core:tls_tcpconn_init: name based TLS client domains are disabled
DBG:core:tls_tcpconn_init: no TLS client doman AVP set, looking for socket
based TLS client domain
DBG:core:tls_find_client_domain: virtual TLS client domain not found, Using
default TLS client domain settings
DBG:core:tls_tcpconn_init: found socket based TLS client domain [0.0.0.0:0]
DBG:core:tls_tcpconn_init: Setting in CONNECT mode (client)
DBG:core:tcp_send: sending...
DBG:core:tls_update_fd: New fd is 6
DBG:core:handle_ser_child: read response= 7f18813378a8, 2, fd 31 from 2
(8886)
DBG:core:tcpconn_add: hashes: 972, 1
DBG:core:io_watch_add: io_watch_add op on 31 (0x80ff80, 31, 2,
0x7f18813378a8,1), fd_no=25
*ERROR:core:tls_connect: SSL_ERROR_SYSCALL err=Success(0)*
*ERROR:core:tls_connect: New TLS connection to 10.204.45.62:5062
 failed*
*ERROR:core:tls_connect: TLS error: 5 (ret=0) err=Success(0) *
*DBG:core:handle_tcpconn_ev: data available on 0x7f18813378a8 31*
*DBG:core:tcp_send: after write: c= 0x7f18813378a8 n=-1 fd=6*
*DBG:core:io_watch_del: io_watch_del op on index -1 31 (0x80ff80, 31, -1,
0x0,0x1) fd_no=26 called*
*DBG:core:tcp_send: buf=*
*ERROR:core:tcp_send: failed to send*
*DBG:core:send2child: to tcp child 0 0(8892), 0x7f18813378a8 rw 1*
*ERROR:core:msg_send: tcp_send failed*
*DBG:core:handle_ser_child: read response= 7f18813378a8, -2, fd -1 from 2
(8886)*
*DBG:core:destroy_avp_list: destroying list (nil)*
*DBG:core:receive_msg: cleaning up*
DBG:core:tcpconn_destroy: delaying (0x7f18813378a8, flags 0002) ref = 1 ...
DBG:core:handle_io: We have received conn 0x7f18813378a8 with rw 1
DBG:core:io_watch_add: io_watch_add op on 18 (0x8100e0, 18, 2,
0x7f18813378a8,1), fd_no=1
DBG:core:io_watch_del: io_watch_del op on index -1 18 (0x8100e0, 18, -1,
0x10,0x1) fd_no=2 called
DBG:core:release_tcpconn:  releasing con 0x7f18813378a8, state -2, fd=18,
id=1
DBG:core:release_tcpconn:  extra_data 0x7f1881337a28
DBG:core:handle_tcp_child: reader response= 7f18813378a8, -2 from 0
DBG:core:tcpconn_destroy: destroying connection 0x7f18813378a8, flags 0002
DBG:core:tls_close: closing TLS connection



Please provide your comments..


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


[OpenSIPS-Users] REG::VOIP Client with TLS Support

2015-11-12 Thread Ravitez Ravi
Hello All,
Can you please suggest a Free VOIP client with TLS support.
Thank you for your time.

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


Re: [OpenSIPS-Users] REG::VOIP Client with TLS Support

2015-11-12 Thread Ravitez Ravi
I have it installed but when i initiate a tls connection,i see client hello
being sent to the client(zoiper) but it never responds.
Can you please point out if there's any setting that has to be updated.I'm
using V3.9.32144 32-bit
Thank you

On Thu, Nov 12, 2015 at 11:28 AM, Rodrigo Pimenta Carvalho <
pime...@inatel.br> wrote:

> Hi.
>
>
> I would suggest Zoiper too.
>
> I´m using it since 5 mounths ago and I have tested TLS with it, and
> getting success.
>
>
> Regards.
>
>
> 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 Ravitez Ravi <ravitez.dond...@gmail.com>
> *Enviado:* quinta-feira, 12 de novembro de 2015 13:53
> *Para:* users@lists.opensips.org
> *Assunto:* [OpenSIPS-Users] REG::VOIP Client with TLS Support
>
> Hello All,
> Can you please suggest a Free VOIP client with TLS support.
> Thank you for your time.
>
> Regards,
> Ravitez.D
>
> ___
> 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] REG::VOIP Client with TLS Support

2015-11-12 Thread Ravitez Ravi
Thank you will try it out.

On Thu, Nov 12, 2015 at 11:06 AM, Adrian Georgescu <a...@ag-projects.com>
wrote:

> Try Blink
>
> http://icanblink.com
>
>
> On 12 Nov 2015, at 12:53, Ravitez Ravi <ravitez.dond...@gmail.com> wrote:
>
> Hello All,
> Can you please suggest a Free VOIP client with TLS support.
> Thank you for your time.
>
> Regards,
> Ravitez.D
> ___
> 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


[OpenSIPS-Users] REG::Adding user_avp

2015-11-03 Thread Ravitez Ravi
Hello Everybody,
   Can some one suggest on how to add user_avp's.
   Thank you.

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


[OpenSIPS-Users] REG::Opensips 1.11.5 with dual client domain

2015-11-01 Thread Ravitez Ravi
Hello Everybody,
Unable to configure opensips with dual client domains,below
is the configuration and opesips logs
opensips.cfg
{
...
listen=tls:IP_2:port2
listen=tls:IP_3:port4
...
# set the TLS client domain AVP
tls_client_domain_avp = 400

# name based TLS client domains (for virtual SIPS hosting)
tls_client_domain["atlanta.com"] {
tls_certificate = "/certs/atlanta.com/cert.pem"
tls_private_key = "/certs/atlanta.com/privkey.pem"
tls_ca_list = "/certs/wellknownCAs"
tls_method=tlsv1
tls_verify_server = 1
}
tls_client_domain["biloxi.com"] {
tls_certificate = "/certs/biloxy.com/cert.pem"
tls_private_key = "/certs/biloxy.com/privkey.pem"
tls_ca_list = "/certs/wellknownCAs"
tls_method=tlsv1
tls_verify_server = 0
}

route{
...
# calls to other SIP domains
# set the proper SSL context (certificate) for local hosted domains
*avp_write("$fd","$avp(i:400)"); # does not exists in
1.11.5 can you please share the alternate function.!*
forward(); # uses NAPTR and SRV lookups
exit;
}


*Opensips Log :*
""no TLS client doman AVP set, looking for socket based TLS client domain""


I think internal_search_ID_avp in user_avp.c is failing.
Can some one please comment on how to get this working.
Thank you.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Fwd: REG::Multi Domain Handling in Opensips

2015-10-30 Thread Ravitez Ravi
Hello All,
 I'm developing a system which will be using opensips,one of the
requirement is that when the system acts as a client/server
 it should use a specific certificate for a similar bunch of
servers,eg one certificate for all local end points and other
 for all Trunks,it would be great if you could provide your
suggestions on how to achieve this

   opensips
HS Cert  Trunk Cert
||
Handset 1<---   | |--->Trunk 1
Handset 2<---| |---> Trunk 2
Handset 3<---| |---> Trunk 3


opesips.cfg

//Sample
tls_server_domain[Handset]
{
//use handset  certs
}

tls_server_domain[Trunk]
{
//Use trunk  certs
}

tls_client_domain[Handset]
{
//user handset certs
}

tls_client_domain[Trunk]
{
//use trunk certs
}


Thank you for the help.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users