[OpenSIPS-Devel] [opensips] avp_ops: failure to start if db ops used only in async mode (#757)

2016-01-14 Thread Ovidiu Sas
If avp_db_query is used exclusively in async mode, during init, the 
avp_db_query function is not found in script and opensips is failing to start 
with the following error being reported:
```
ERROR:avpops:__fixup_db_query_avp: no db url defined to be used by this function
```

Workaround: define a dummy route where avp_db_query is used in sync mode
The debug logs will show:
```
DBG:core:is_mod_func_used: function avp_db_query found to be used in script
DBG:core:find_mod_export: found  in module db_mysql 
[/usr/local/lib64/opensips/modules/]
```

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/757___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [Release] OpenSIPS 1.11.6 and 2.1.2

2016-01-14 Thread Bogdan-Andrei Iancu

Hi all,

Two new minor releases are available now - 1.11.6 and 2.1.2. As usual 
they do not bring changes in functionality, but fixes. Especially for 
2.1.2 where many issues were addressed (consistency and bug fixes) in 
regards to the architecture change (the internal reactor, async support, 
proto enhancement).
2.1.2 is an important milestone in the lifetime of 2.1 branch, and it is 
strongly recommended to upgrade - it will expose all the 2.1 goodies in 
the most reliable way .


Many thanks to everyone involved in testing, troubleshooting and 
reporting - this is a tremendous help for the project and we do 
appreciate it.


Downloads and changelogs are available under:
 http://opensips.org/pub/opensips/1.11.6/
 http://opensips.org/pub/opensips/2.1.2/


Enjoy !

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


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 7023ad: RPM spec: update version to 2.1.2

2016-01-14 Thread Nick Altmann
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7023adea797f9b716f3f0daccba97093cd30f42e
  
https://github.com/OpenSIPS/opensips/commit/7023adea797f9b716f3f0daccba97093cd30f42e
  Author: Nick Altmann 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M packaging/fedora/opensips.spec

  Log Message:
  ---
  RPM spec: update version to 2.1.2


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 02fde2: 2.1.2: update changelog and minor version

2016-01-14 Thread Razvan Crainea
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 02fde2a590ea68874e5966c9b17e6f6fd8d448ce
  
https://github.com/OpenSIPS/opensips/commit/02fde2a590ea68874e5966c9b17e6f6fd8d448ce
  Author: Razvan Crainea 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M ChangeLog
M Makefile.defs

  Log Message:
  ---
  2.1.2: update changelog and minor version


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


[OpenSIPS-Devel] [OpenSIPS/opensips] f6a3e5: 1.11.6: update changelog and build version

2016-01-14 Thread Razvan Crainea
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f6a3e524f775a41b33082443894ec704da7a981f
  
https://github.com/OpenSIPS/opensips/commit/f6a3e524f775a41b33082443894ec704da7a981f
  Author: Razvan Crainea 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M ChangeLog
M Makefile.defs

  Log Message:
  ---
  1.11.6: update changelog and build version


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 57a7bf: fixing coverity found defects - invalid memory acc...

2016-01-14 Thread Liviu Chircu
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 57a7bf02a54f91020e5163be82b0ac3cf09e0531
  
https://github.com/OpenSIPS/opensips/commit/57a7bf02a54f91020e5163be82b0ac3cf09e0531
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M flags.c
M ip_addr.h
M modules/acc/acc.c
M modules/call_center/call_center.c
M modules/mi_datagram/datagram_fnc.c
M modules/presence/presentity.c
M modules/tm/t_reply.c
M obsolete_modules/mi_xmlrpc/xr_parser.c

  Log Message:
  ---
  fixing coverity found defects - invalid memory access / memory corruptions

(cherry picked from commit c537cb8151e9436d88a9410e02ef11a093008ff0)

Conflicts:
modules/dialog/dlg_tophiding.c


  Commit: 21083e84ede0551ae937bb4cea7c6ddab44d86f1
  
https://github.com/OpenSIPS/opensips/commit/21083e84ede0551ae937bb4cea7c6ddab44d86f1
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M daemonize.c
M modules/db_text/dbt_file.c
M modules/mi_fifo/fifo_fnc.c

  Log Message:
  ---
  fixing coverity found defects - resource leakage

(cherry picked from commit e09f09ae89aff31393b04e40b4f82632fd4f50ff)


  Commit: 50737ff2de91e55971512bf327042fe3f51ca619
  
https://github.com/OpenSIPS/opensips/commit/50737ff2de91e55971512bf327042fe3f51ca619
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/auth/challenge.c
M modules/drouting/drouting.c
M modules/pua/send_subscribe.c
M modules/uac/uac.c
M modules/usrloc/ucontact.c
M proxy.c
M rw_locking.h

  Log Message:
  ---
  fixing coverity found defects - processing initialized variables, control 
flow, invalid expressions

(cherry picked from commit b22844e0a1d4d54d0f8f836837f8447154799011)

Conflicts:
modules/drouting/drouting.c


  Commit: a152bdf3c0a3877827e1a02f7e05d611a0366a7f
  
https://github.com/OpenSIPS/opensips/commit/a152bdf3c0a3877827e1a02f7e05d611a0366a7f
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/usrloc/ul_callback.h

  Log Message:
  ---
  fixing coverity found defects - logical fix in ul callback check type, null 
dereference

(cherry picked from commit aeedb7d94439b774d35009899b04d2c6060437d0)

Conflicts:
modules/dispatcher/dispatcher.c


  Commit: ed699bfde4759434937349e198a694a4bab3f9ff
  
https://github.com/OpenSIPS/opensips/commit/ed699bfde4759434937349e198a694a4bab3f9ff
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M db/db.c
M evi/event_interface.c
M main.c
M modules/alias_db/alookup.c
M modules/usrloc/dlist.c

  Log Message:
  ---
  fixing coverity found defects - null dereference, break missing

(cherry picked from commit c004967f7c272e5b9043f5f3e330827f0682a009)

Conflicts:
db/db.c


  Commit: c48773cdb2ae9f8b6ab44b38df1d2c37127537ba
  
https://github.com/OpenSIPS/opensips/commit/c48773cdb2ae9f8b6ab44b38df1d2c37127537ba
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/rtpproxy/rtpproxy.c
M modules/uri/checks.c

  Log Message:
  ---
  fixing coverity found defects - null dereference, invalid e164 number check

(cherry picked from commit b8e2318ba58e56484294913e21a74a7cd79adf40)


  Commit: c9aaae3ac63970e3f394f66e048a1c82b99774c7
  
https://github.com/OpenSIPS/opensips/commit/c9aaae3ac63970e3f394f66e048a1c82b99774c7
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/ldap/iniparser.c
M modules/siptrace/siptrace.c

  Log Message:
  ---
  fixing coverity found defects - copying into fixed size buffer

(cherry picked from commit 92a7361eda2c6cd6e9ad637dab187cf87fefa987)


  Commit: 20004e4a87d4e84c216782dc06484a970183894a
  
https://github.com/OpenSIPS/opensips/commit/20004e4a87d4e84c216782dc06484a970183894a
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/db_http/http_dbase.c

  Log Message:
  ---
  fixing coverity found defects - copying into fixed size buffer without check, 
db_http

(cherry picked from commit d471234733de299c88f1036ba17a2406b8ae7a89)


  Commit: 19e518835dd0f88868613c5fe6fbf8fe19180252
  
https://github.com/OpenSIPS/opensips/commit/19e518835dd0f88868613c5fe6fbf8fe19180252
  Author: Dusan Klinec 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M blacklists.c
M modules/drouting/drouting.c
M modules/sipcapture/sipcapture.c
M modules/siptrace/siptrace.c
M resolve.h
M statistics.c

  Log Message:
  ---
  fixing coverity found defects - null dereference

(cherry picked from commit b578dda307f24e56f456e5b02c0c7591ed6746a4)


  Commit: 37a7466c8b7c3e8ec979444c37c9f738bd0e43d8
  
https://github.com/OpenSIPS/opensips/commit/37a7466c8b7c3e8ec979444c37c9f738bd0e43d8
  

[OpenSIPS-Devel] [OpenSIPS/opensips] 4b011b: proto_ws: fix common variable used

2016-01-14 Thread Razvan Crainea
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4b011be128cfbab17fd294469df995bd20cb1de2
  
https://github.com/OpenSIPS/opensips/commit/4b011be128cfbab17fd294469df995bd20cb1de2
  Author: Razvan Crainea 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/proto_ws/ws_handshake.c

  Log Message:
  ---
  proto_ws: fix common variable used


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 960806: tm: remove unused variables

2016-01-14 Thread Ovidiu Sas
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 9608063fc1509208af122aa12479e495181c9775
  
https://github.com/OpenSIPS/opensips/commit/9608063fc1509208af122aa12479e495181c9775
  Author: Ovidiu Sas 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/tm/t_fwd.c

  Log Message:
  ---
  tm: remove unused variables

(cherry picked from commit 666cf8316d3105a2920b68df8d600be02c8943bb)


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 785e4b: [proto_hep]don't htons one byte type variable

2016-01-14 Thread ionutrazvanionita
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 785e4b8358de21a28111303b32740f421881b76b
  
https://github.com/OpenSIPS/opensips/commit/785e4b8358de21a28111303b32740f421881b76b
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/proto_hep/hep.c

  Log Message:
  ---
  [proto_hep]don't htons one byte type variable


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 666cf8: tm: remove unused variables

2016-01-14 Thread Ovidiu Sas
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 666cf8316d3105a2920b68df8d600be02c8943bb
  
https://github.com/OpenSIPS/opensips/commit/666cf8316d3105a2920b68df8d600be02c8943bb
  Author: Ovidiu Sas 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/tm/t_fwd.c

  Log Message:
  ---
  tm: remove unused variables


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


[OpenSIPS-Devel] proto_ws doesn't compile on latest 2.1

2016-01-14 Thread Ovidiu Sas
Compiling ws_handshake.c
ws_handshake.c: In function âws_handshakeâ:
ws_handshake.c:152:15: error: â_ws_common_tcp_current_reqâ undeclared
(first use in this function)
   if (req != &_ws_common_tcp_current_req)
   ^
ws_handshake.c:152:15: note: each undeclared identifier is reported
only once for each function it appears in

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


Re: [OpenSIPS-Devel] [opensips] Critical security fixes: memory corruption, invalid read, null dereferences, overflows (#719)

2016-01-14 Thread Liviu Chircu
Thank you for taking the time to solve all these issues! @razvancrainea said 
he's actually going to Coverity analysis integration with OpenSIPS on GitHub!

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/719#issuecomment-171704798___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] c537cb: fixing coverity found defects - invalid memory acc...

2016-01-14 Thread Liviu Chircu
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c537cb8151e9436d88a9410e02ef11a093008ff0
  
https://github.com/OpenSIPS/opensips/commit/c537cb8151e9436d88a9410e02ef11a093008ff0
  Author: Dusan Klinec 
  Date:   2015-12-05 (Sat, 05 Dec 2015)

  Changed paths:
M flags.c
M ip_addr.h
M modules/acc/acc.c
M modules/call_center/call_center.c
M modules/dialog/dlg_tophiding.c
M modules/mi_datagram/datagram_fnc.c
M modules/mi_xmlrpc/xr_parser.c
M modules/presence/presentity.c
M modules/tm/t_reply.c

  Log Message:
  ---
  fixing coverity found defects - invalid memory access / memory corruptions


  Commit: e09f09ae89aff31393b04e40b4f82632fd4f50ff
  
https://github.com/OpenSIPS/opensips/commit/e09f09ae89aff31393b04e40b4f82632fd4f50ff
  Author: Dusan Klinec 
  Date:   2015-12-05 (Sat, 05 Dec 2015)

  Changed paths:
M daemonize.c
M modules/db_text/dbt_file.c
M modules/mi_fifo/fifo_fnc.c

  Log Message:
  ---
  fixing coverity found defects - resource leakage


  Commit: b22844e0a1d4d54d0f8f836837f8447154799011
  
https://github.com/OpenSIPS/opensips/commit/b22844e0a1d4d54d0f8f836837f8447154799011
  Author: Dusan Klinec 
  Date:   2015-12-05 (Sat, 05 Dec 2015)

  Changed paths:
M modules/auth/challenge.c
M modules/drouting/drouting.c
M modules/pua/send_subscribe.c
M modules/uac/uac.c
M modules/usrloc/ucontact.c
M proxy.c
M rw_locking.h

  Log Message:
  ---
  fixing coverity found defects - processing initialized variables, control 
flow, invalid expressions


  Commit: aeedb7d94439b774d35009899b04d2c6060437d0
  
https://github.com/OpenSIPS/opensips/commit/aeedb7d94439b774d35009899b04d2c6060437d0
  Author: Dusan Klinec 
  Date:   2015-12-05 (Sat, 05 Dec 2015)

  Changed paths:
M modules/dispatcher/dispatcher.c
M modules/usrloc/ul_callback.h

  Log Message:
  ---
  fixing coverity found defects - logical fix in ul callback check type, null 
dereference


  Commit: c004967f7c272e5b9043f5f3e330827f0682a009
  
https://github.com/OpenSIPS/opensips/commit/c004967f7c272e5b9043f5f3e330827f0682a009
  Author: Dusan Klinec 
  Date:   2015-12-05 (Sat, 05 Dec 2015)

  Changed paths:
M db/db.c
M evi/event_interface.c
M main.c
M modules/alias_db/alookup.c
M modules/usrloc/dlist.c

  Log Message:
  ---
  fixing coverity found defects - null dereference, break missing


  Commit: b8e2318ba58e56484294913e21a74a7cd79adf40
  
https://github.com/OpenSIPS/opensips/commit/b8e2318ba58e56484294913e21a74a7cd79adf40
  Author: Dusan Klinec 
  Date:   2015-12-05 (Sat, 05 Dec 2015)

  Changed paths:
M modules/rtpproxy/rtpproxy.c
M modules/uri/checks.c

  Log Message:
  ---
  fixing coverity found defects - null dereference, invalid e164 number check


  Commit: ef3d3de7d0607126fd8f149aa4c19ca3e05bb7a9
  
https://github.com/OpenSIPS/opensips/commit/ef3d3de7d0607126fd8f149aa4c19ca3e05bb7a9
  Author: Dusan Klinec 
  Date:   2015-12-06 (Sun, 06 Dec 2015)

  Changed paths:
M modules/dispatcher/dispatcher.c

  Log Message:
  ---
  fixing coverity found defects - null dereference in dispatcher


  Commit: 92a7361eda2c6cd6e9ad637dab187cf87fefa987
  
https://github.com/OpenSIPS/opensips/commit/92a7361eda2c6cd6e9ad637dab187cf87fefa987
  Author: Dusan Klinec 
  Date:   2015-12-06 (Sun, 06 Dec 2015)

  Changed paths:
M modules/ldap/iniparser.c
M modules/siptrace/siptrace.c

  Log Message:
  ---
  fixing coverity found defects - copying into fixed size buffer


  Commit: d471234733de299c88f1036ba17a2406b8ae7a89
  
https://github.com/OpenSIPS/opensips/commit/d471234733de299c88f1036ba17a2406b8ae7a89
  Author: Dusan Klinec 
  Date:   2015-12-06 (Sun, 06 Dec 2015)

  Changed paths:
M modules/db_http/http_dbase.c

  Log Message:
  ---
  fixing coverity found defects - copying into fixed size buffer without check, 
db_http


  Commit: b578dda307f24e56f456e5b02c0c7591ed6746a4
  
https://github.com/OpenSIPS/opensips/commit/b578dda307f24e56f456e5b02c0c7591ed6746a4
  Author: Dusan Klinec 
  Date:   2015-12-06 (Sun, 06 Dec 2015)

  Changed paths:
M blacklists.c
M modules/drouting/drouting.c
M modules/sipcapture/sipcapture.c
M modules/siptrace/siptrace.c
M resolve.h
M statistics.c

  Log Message:
  ---
  fixing coverity found defects - null dereference


  Commit: 906bb9172b4ce0ab0e7bf4eca7da58211aa8ac5b
  
https://github.com/OpenSIPS/opensips/commit/906bb9172b4ce0ab0e7bf4eca7da58211aa8ac5b
  Author: Dusan Klinec 
  Date:   2015-12-06 (Sun, 06 Dec 2015)

  Changed paths:
M cachedb/cachedb_id.c
M db/db_query.c
M modules/cachedb_local/cachedb_local.c
M modules/cachedb_sql/cachedb_sql.c
M modules/db_postgres/dbase.c
M modules/dialog/dlg_profile.c
M modules/httpd/httpd_proc.c
M modules/load_balancer/lb_db.c
M modules/permissions/hash.c

Re: [OpenSIPS-Devel] [opensips] Critical security fixes: memory corruption, invalid read, null dereferences, overflows (#719)

2016-01-14 Thread Liviu Chircu
Merged #719.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/719#event-515205014___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 5d813f: ws: release TCP connection if not static

2016-01-14 Thread Razvan Crainea
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5d813f6bb38b8715798324cc88bd728a70a3
  
https://github.com/OpenSIPS/opensips/commit/5d813f6bb38b8715798324cc88bd728a70a3
  Author: Razvan Crainea 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/proto_ws/ws_handshake.c

  Log Message:
  ---
  ws: release TCP connection if not static

This should fix a memory leak (reported in #743 by Eric Tamme)

(cherry picked from commit 29190f3898e33c410745a9acce2f5ae8df650da1)


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


Re: [OpenSIPS-Devel] [opensips] Critical security fixes: memory corruption, invalid read, null dereferences, overflows (#719)

2016-01-14 Thread Liviu Chircu
But it's still not NULL-terminated! Here's the proper fix:

```
size_t len = strlen(sec);
if (len > LONGKEYBUFF - 1)
len = LONGKEYBUFF - 1;
strncpy(longkey, sec, len + 1);
```

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/719#issuecomment-171693425___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] HELP PLEASE!! I modified Opensips presence server and performance worsens.

2016-01-14 Thread surya
Hi All,

My level of expertise- It's the first time that I worked on Unix and C.

I am using the Opensips 1.8.3.

*TL;DR* But hope someone reads. I am in deep trouble.
For a project, I modified the Presence server to have REST wrapper over
database calls and use REDIS as the cache (/instead of the in-memory hash/).

I managed to do all this and the Presence Server was functioning properly.

Problems surfaced when I started the performance testing. Even for just
PUBLISH-200OK test the response times becomes close to 100-200ms at 50CPS
and for SUBSCRIBE-NOTIFY (/with no presentities present/) the results are
worst, no calls in 10ms range and very high number of calls in 500 ms range
at 50CPS.

Everything is local (Opensips & REDIS in one VM and Tomcat & MYSQL in
another) I was testing from SIPP increasing the call rate by 10 every 5
seconds.

I monitored the response times of Tomcat and they were in acceptable range
(like 5ms) and same with REDIS.

I am using connection pooling at all levels, meaning, to connect with REDIS,
Tomcat and in REST service to connect to MYSQL. I confirmed this by checking
the logs of REDIS and MYSQL, couldn't confirm for Tomcat.

This means something I have done inOpensips that is notorious but I don't
know how I can troubleshoot this. I tried to use tools such as Valgrind,
gprof but couldn't make them work on Opensips (/The tutorials work though on
standalone codes./)

I did some test manually and found the snprintf( I was using heavily) takes
higher CPU, so, I replaced it with a custom function, this reduced the
number of calls in 500ms range of SUBSCRIBE-NOTIFY request but still the
performance is uncomparable to the Original.

Sorry for the long mail, I had to describe what I have done.

I'll greatly appreciate any help, guidance to troubleshoot this. I have no
local help available and this is last hope. It's over a month now since I am
struggling to troubleshoot this.

I'll be happy to share whatever details required.

Thanks,
Surya



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/HELP-PLEASE-I-modified-Opensips-presence-server-and-performance-worsens-tp7600722.html
Sent from the OpenSIPS - Devel mailing list archive at Nabble.com.

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


[OpenSIPS-Devel] [OpenSIPS/opensips] f14804: Import some changes from PR #661

2016-01-14 Thread Bogdan-Andrei Iancu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f14804b28a73fbcd442f54c76a62e59bf7b8bbd9
  
https://github.com/OpenSIPS/opensips/commit/f14804b28a73fbcd442f54c76a62e59bf7b8bbd9
  Author: Bogdan-Andrei Iancu 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/load_balancer/load_balancer.c

  Log Message:
  ---
  Import some changes from PR #661


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


Re: [OpenSIPS-Devel] [opensips] Wss manual/doc or usage. (#756)

2016-01-14 Thread Răzvan Crainea
The documentation will be put together ASAP.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/756#issuecomment-171686118___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Wss manual/doc or usage. (#756)

2016-01-14 Thread Bogdan Andrei IANCU
Closed #756.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/756#event-515125711___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] abandoned turn causes processes to sleep forever when handling retransmitted publishes (#754)

2016-01-14 Thread Will Mitchell
I could make the patch into an actual pull request, if you'd prefer, although 
for several reasons (including vulgarity of comments, sorry!) it would be more 
for discussion than an actual pull.  Let me know what you'd prefer.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/754#issuecomment-171683517___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] abandoned turn causes processes to sleep forever when handling retransmitted publishes (#754)

2016-01-14 Thread Will Mitchell
Here's a preliminary patch we put together:

https://gist.github.com/wakamoleguy/dc9d694e64364ba6f7d2

We haven't tested it yet, or even really compiled it.  The general idea is that 
if a process detects that it is about to throw away an old presentity, it still 
waits its turn and calls next_turn_phtable on the old one before moving on.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/754#issuecomment-171682508___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Wss manual/doc or usage. (#756)

2016-01-14 Thread Bogdan Andrei IANCU
Please use the opensips mailing list for help.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/756#issuecomment-171681619___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] abandoned turn causes processes to sleep forever when handling retransmitted publishes (#754)

2016-01-14 Thread Bogdan Andrei IANCU
Thank you for investigating this - now that is clear what is happens, I will 
work on a way to fix it. 

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/754#issuecomment-171680732___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [opensips] Wss manual/doc or usage. (#756)

2016-01-14 Thread cepehutu
Help me with tipsReally wont disable NGINX and use native WSS

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/756___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Memory leak/out of memory when using proto_wss (#743)

2016-01-14 Thread Eric Tamme
Closed #743.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/743#event-515068576___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] d2f90b: [sipcapture]mi_cmds were registered twice

2016-01-14 Thread ionutrazvanionita
  Branch: refs/heads/2.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d2f90b68ad121bcfb8303b710545f41a086dea05
  
https://github.com/OpenSIPS/opensips/commit/d2f90b68ad121bcfb8303b710545f41a086dea05
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/sipcapture/sipcapture.c

  Log Message:
  ---
  [sipcapture]mi_cmds were registered twice

(cherry picked from commit e36453ee6c687975382c3125b1dad9a382be041a)


  Commit: 548eb5310c1e6d972f4b3b1fe529de78d430a1b3
  
https://github.com/OpenSIPS/opensips/commit/548eb5310c1e6d972f4b3b1fe529de78d430a1b3
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/sipcapture/sipcapture.c

  Log Message:
  ---
  [sipcapture]completely remove mod_init mi_cmds registration

(cherry picked from commit 02defafe421fa1ff4ab0f05f63cc490fa1717ff3)


Compare: 
https://github.com/OpenSIPS/opensips/compare/4c775f2b63c4...548eb5310c1e___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Memory leak/out of memory when using proto_wss (#743)

2016-01-14 Thread Eric Tamme
yes - memory is completely stable after several days of usage, i will close the 
issue.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/743#issuecomment-171668395___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] 47bbc0: bin: report the dimension of the buffer

2016-01-14 Thread Razvan Crainea
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 47bbc079577d4e84b3f261e1a8485d92a6be9cfe
  
https://github.com/OpenSIPS/opensips/commit/47bbc079577d4e84b3f261e1a8485d92a6be9cfe
  Author: Razvan Crainea 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M bin_interface.c
M bin_interface.h

  Log Message:
  ---
  bin: report the dimension of the buffer

This allows the user to control how much info to send


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 16cea6: [sipcapture]completely remove mod_init mi_cmds reg...

2016-01-14 Thread ionutrazvanionita
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 16cea6a885d9bba23d28a93685cd794d9f3b8fc9
  
https://github.com/OpenSIPS/opensips/commit/16cea6a885d9bba23d28a93685cd794d9f3b8fc9
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/sipcapture/sipcapture.c

  Log Message:
  ---
  [sipcapture]completely remove mod_init mi_cmds registration


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


[OpenSIPS-Devel] [OpenSIPS/opensips] 2c52d1: [sipcapture]mi_cmds were registered twice

2016-01-14 Thread ionutrazvanionita
  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 2c52d1e03bf8adfaa478c68c6d2d9403813536cd
  
https://github.com/OpenSIPS/opensips/commit/2c52d1e03bf8adfaa478c68c6d2d9403813536cd
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/sipcapture/sipcapture.c

  Log Message:
  ---
  [sipcapture]mi_cmds were registered twice

(cherry picked from commit e36453ee6c687975382c3125b1dad9a382be041a)


  Commit: e4965d926bcec268df8a50cad649fa57ad1ce555
  
https://github.com/OpenSIPS/opensips/commit/e4965d926bcec268df8a50cad649fa57ad1ce555
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/sipcapture/sipcapture.c

  Log Message:
  ---
  [sipcapture]completely remove mod_init mi_cmds registration

(cherry picked from commit 02defafe421fa1ff4ab0f05f63cc490fa1717ff3)


Compare: 
https://github.com/OpenSIPS/opensips/compare/a533e7279147...e4965d926bce___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Memory leak/out of memory when using proto_wss (#743)

2016-01-14 Thread Răzvan Crainea
Could you confirm everything is ok, so we can close this ticket? Thanks!

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/743#issuecomment-171666064___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] opensipsctl statistics inconsistent formatting (#673)

2016-01-14 Thread Răzvan Crainea
Actually the only inconsistencies would appear if the name of the statistic 
contains `::`. Luckily we don't have this in opensips, so you could use the 
following logic, parsing the row from left to right:
1. search for `:` - this token represents the `Module`
2. search for `::` - this represents the `StatName`
3. everything else is the `Value`

Indeed, we used `:` to delimiter those tokens, but if we would have used 
something else, we would probably have the same problems with other statistics. 
So I think this is acceptable.

Best regards,
Răzvan

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/673#issuecomment-171663219___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] opensipsctl statistics inconsistent formatting (#673)

2016-01-14 Thread Rik Broers
Hmm missed that this one is closed.

I do not agree that it is consistent. This is only true for the load statistics.
Load statistics are suddenly formatted as follows

Module : Proto : Ip : port-statname : : value

pkmem:24-fragments:: 8
load:udp:185.47.2.231:5060-load:: 0



---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/673#issuecomment-171642511___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [OpenSIPS/opensips] e36453: [sipcapture]mi_cmds were registered twice

2016-01-14 Thread ionutrazvanionita
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e36453ee6c687975382c3125b1dad9a382be041a
  
https://github.com/OpenSIPS/opensips/commit/e36453ee6c687975382c3125b1dad9a382be041a
  Author: ionutrazvanionita 
  Date:   2016-01-14 (Thu, 14 Jan 2016)

  Changed paths:
M modules/sipcapture/sipcapture.c

  Log Message:
  ---
  [sipcapture]mi_cmds were registered twice


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


Re: [OpenSIPS-Devel] [opensips] Implement RTPProxy statistics fetching (#750)

2016-01-14 Thread vladpaiu
Ideally we could implement an algorithm similar to what's described at [1] , in 
order to get a single number describing the overall quality of the call.

[1] 
https://www.pingman.com/kb/article/how-is-mos-calculated-in-pingplotter-pro-50.html

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/750#issuecomment-171635081___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Radius accounting problem (#755)

2016-01-14 Thread Nick Altmann
Closed #755.

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/755#event-514925097___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] Radius accounting problem (#755)

2016-01-14 Thread Ionut Ionita
Tried to recreate your bug and used the following config [0] but as you can see 
in the pcap[1] the accounting requests are generated for both BYEs.

opensips -v output

version: opensips 2.2-dev (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, 
FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, 
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: 055f4b1
main.c compiled on 13:21:55 Jan 14 2016 with gcc 4.8

Can you provide more details, please?

[0] https://gist.github.com/ionutrazvanionita/1e911974013e8778db4a
[1] http://www.filedropper.com/radius_1

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/755#issuecomment-171632229___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


[OpenSIPS-Devel] [opensips] Radius accounting problem (#755)

2016-01-14 Thread Nick Altmann
When opensips has not received BYE packet from peers (both sides disconnected), 
but generated it by dialog module (dialog timeout), opensips doesn't generate 
radius accounting stop request

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/755___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] opensipsctl fifo ds_list show weight and priority and docs improvement (#672)

2016-01-14 Thread ionel-cerghit
Hi,

Feature implemented in https://github.com/OpenSIPS/opensips/pull/748 .
Does it satisfy you needs?

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/672#issuecomment-171608999___
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


Re: [OpenSIPS-Devel] [opensips] OpenSIPS 2.1 Crash (#732)

2016-01-14 Thread Muhammad Shahzad Shafi
I have updated opensips to v2.1.1 Git Rev. 4c775f2. I still have crash through 
frequency is a bit reduced now, previously it was crashing on every call, now 
it crashes every 2nd or 3rd call. I see two core dumps, here are their back 
traces.

Contents of core.opensips.8051.loadbalancer-dev.1452761363,

GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/local/adx-ipc/sbin/opensips...done.
[New LWP 8051]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Core was generated by `/usr/local/adx-ipc/sbin/opensips -P 
/var/run/opensips/opensips.pid -m 64 -M 4 -'.
Program terminated with signal 11, Segmentation fault.
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
86  asm volatile(
(gdb) bt
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
#1  get_lock (lock=) at ../../mem/../fastlock.h:176
#2  _lock (s=) at lock.h:100
#3  set_timer (ext_timeout=0xbfa9b7c8, list_id=FR_INV_TIMER_LIST, 
new_tl=0xb2c211d0) at timer.c:907
#4  set_timer (new_tl=new_tl@entry=0xb2c211d0, 
list_id=list_id@entry=FR_INV_TIMER_LIST, 
ext_timeout=ext_timeout@entry=0xbfa9b7c8) at timer.c:884
#5  0xb714b800 in reply_received (p_msg=0xb71c7300) at t_reply.c:1535
#6  0x080823e2 in forward_reply (msg=msg@entry=0xb71c7300) at forward.c:517
#7  0x080c4977 in receive_msg (
buf=0x827c720 "SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 
172.16.171.21:5060;branch=z9hG4bKc4b9.a142e77.0;received=172.16.171.21\r\nVia: 
SIP/2.0/UDP 
192.168.1.21:6000;received=172.16.253.35;rport=6000;branch=z9hG4bK17684605"..., 
len=, rcv_info=rcv_info@entry=0xbfa9b930) at receive.c:243
#8  0x081c3227 in udp_read_req (si=0xb7177af8, bytes_read=0xbfa9b9f8) at 
net/proto_udp/proto_udp.c:190
#9  0x081b43c1 in handle_io (fm=, idx=, 
event_type=) at net/net_udp.c:260
#10 handle_io (fm=, idx=, event_type=) at net/net_udp.c:287
#11 io_wait_loop_epoll (h=, t=, repeat=) at net/../io_wait_loop.h:215
#12 udp_rcv_loop (si=si@entry=0xb7177af8) at net/net_udp.c:308
#13 0x081b6bf1 in udp_start_processes (chd_rank=chd_rank@entry=0x82400bc, 
startup_done=startup_done@entry=0x0) at net/net_udp.c:448
#14 0x080603f6 in main_loop () at main.c:723
#15 main (argc=11, argv=0xbfa9bca4) at main.c:1260


Contents of core.opensips.8052.loadbalancer-dev.1452761363,


GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /usr/local/adx-ipc/sbin/opensips...done.
[New LWP 8052]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library 
"/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
Core was generated by `/usr/local/adx-ipc/sbin/opensips -P 
/var/run/opensips/opensips.pid -m 64 -M 4 -'.
Program terminated with signal 11, Segmentation fault.
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
86  asm volatile(
(gdb) bt
#0  0xb712c9e2 in tsl (lock=0x0) at ../../mem/../fastlock.h:86
#1  get_lock (lock=) at ../../mem/../fastlock.h:176
#2  _lock (s=) at lock.h:100
#3  set_timer (ext_timeout=0x0, list_id=RT_T1_TO_1, new_tl=0xb2c211b4) at 
timer.c:907
#4  set_timer (new_tl=new_tl@entry=0xb2c211b4, 
list_id=list_id@entry=RT_T1_TO_1, ext_timeout=0x0, ext_timeout@entry=0x1) at 
timer.c:884
#5  0xb71298b0 in _set_fr_retr (retr=, rb=0xb2c21180) at 
t_funcs.h:137
#6  start_retr (rb=0xb2c21180) at t_funcs.h:151
#7  t_forward_nonack (t=t@entry=0xb2c21068, p_msg=p_msg@entry=0xb71c6e44, 
proxy=proxy@entry=0x0) at t_fwd.c:736
#8  0xb712503d in t_relay_to (p_msg=p_msg@entry=0xb71c6e44, 
proxy=proxy@entry=0x0, flags=flags@entry=0) at t_funcs.c:247
#9  0xb713c244 in w_t_relay (p_msg=0xb71c6e44, proxy=0x0, flags=0x0) at 
tm.c:1213
#10 0x0806441c in do_action (a=a@entry=0xb7192344, msg=msg@entry=0xb71c6e44) at 
action.c:1862
#11 0x0806bd34 in run_action_list (a=0xb7192344, msg=msg@entry=0xb71c6e44) at 
action.c:169
#12 0x080dbb48 in eval_elem (e=0xb71923b8, msg=msg@entry=0xb71c6e44, 
val=val@entry=0x0) at route.c:1643
#13 0x080db439 in eval_expr (e=0xb71923b8, msg=msg@entry=0xb71c6e44, 
val=v