From razvan at opensips.org Wed Jan 3 04:44:36 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 03 Jan 2018 01:44:36 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 596271: json: add $json_pretty and $json_compact vars Message-ID: <5a4ca604c871b_5b0e2ac191d61c089726@hookshot-fe-dfcc362.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 596271ae13bb28669a4d907885c0303165b708fb https://github.com/OpenSIPS/opensips/commit/596271ae13bb28669a4d907885c0303165b708fb Author: Razvan Crainea Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/json/README M modules/json/doc/json_admin.xml M modules/json/json.c Log Message: ----------- json: add $json_pretty and $json_compact vars Credits go to Nick Altmann for providing the idea for this and a patch. From bogdan at opensips.org Wed Jan 3 06:46:44 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 3 Jan 2018 13:46:44 +0200 Subject: [OpenSIPS-Devel] A Happy New 2018 ! Message-ID: In behave of the OpenSIPS project, we wish you you A Happy New Year. Let 2018 be a better year, with a better OpenSIPS release (do not forget, 2.4 is on the pipe) and a better and larger OpenSIPS Summit in Amsterdam ! Best regards, -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit 2018 http://www.opensips.org/events/Summit-2018Amsterdam From bogdan at opensips.org Wed Jan 3 08:20:39 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 03 Jan 2018 05:20:39 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] b4d74e: Fixed handling of TTL 0 in DNS answers. Message-ID: <5a4cd8a7231af_c372ab2a5abfc0c232f7@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: b4d74ebd5fee055065e2e400f10c97a8bad3d9dd https://github.com/OpenSIPS/opensips/commit/b4d74ebd5fee055065e2e400f10c97a8bad3d9dd Author: Bogdan-Andrei Iancu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/dns_cache/dns_cache.c Log Message: ----------- Fixed handling of TTL 0 in DNS answers. RFC1035 states : "Zero TTL values are interpreted to mean that the RR can only be used for the transaction in progress, and should not be cached." Reported by Marcin Luczkiewicz @ Magrathea Telecom From bogdan at opensips.org Wed Jan 3 08:26:39 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 03 Jan 2018 05:26:39 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 7dbb7c: Fixed handling of TTL 0 in DNS answers. Message-ID: <5a4cda0f81afa_5cea2ae529c6fc084487@hookshot-fe-2cc8887.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 7dbb7c7ddd241d6879c4a240d8cb4bdddb24f67b https://github.com/OpenSIPS/opensips/commit/7dbb7c7ddd241d6879c4a240d8cb4bdddb24f67b Author: Bogdan-Andrei Iancu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/dns_cache/dns_cache.c Log Message: ----------- Fixed handling of TTL 0 in DNS answers. RFC1035 states : "Zero TTL values are interpreted to mean that the RR can only be used for the transaction in progress, and should not be cached." Reported by Marcin Luczkiewicz @ Magrathea Telecom (cherry picked from commit b4d74ebd5fee055065e2e400f10c97a8bad3d9dd) From bogdan at opensips.org Wed Jan 3 08:27:16 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 03 Jan 2018 05:27:16 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 399741: Fixed handling of TTL 0 in DNS answers. Message-ID: <5a4cda3445308_13b62ae195b8fc085752c@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 39974122e2d8861138afd933db540d68f0c6697f https://github.com/OpenSIPS/opensips/commit/39974122e2d8861138afd933db540d68f0c6697f Author: Bogdan-Andrei Iancu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/dns_cache/dns_cache.c Log Message: ----------- Fixed handling of TTL 0 in DNS answers. RFC1035 states : "Zero TTL values are interpreted to mean that the RR can only be used for the transaction in progress, and should not be cached." Reported by Marcin Luczkiewicz @ Magrathea Telecom (cherry picked from commit b4d74ebd5fee055065e2e400f10c97a8bad3d9dd) From liviu at opensips.org Wed Jan 3 11:25:01 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 03 Jan 2018 08:25:01 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 4489e3: opensipsctl improvements Message-ID: <5a4d03dd56dfc_15162afe8b0a9c18613af@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 4489e307b5dc469235a16acf42a696b8331a622a https://github.com/OpenSIPS/opensips/commit/4489e307b5dc469235a16acf42a696b8331a622a Author: Liviu Chircu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M scripts/opensipsctl.fifo Log Message: ----------- opensipsctl improvements * use $CHROOT_DIR/tmp instead of /var/lock - the latter may be read-only * avoid dangling osips_rply_* files on error / SIGTERM From liviu at opensips.org Wed Jan 3 11:38:32 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 03 Jan 2018 08:38:32 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] fa558c: Fix previous commit Message-ID: <5a4d070882aaf_6bf62ab7c71a3c14145cd@hookshot-fe-b0febf1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: fa558c7c2a66ecbf6b6970554d07b0a30374b769 https://github.com/OpenSIPS/opensips/commit/fa558c7c2a66ecbf6b6970554d07b0a30374b769 Author: Liviu Chircu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M scripts/opensipsctl.fifo Log Message: ----------- Fix previous commit Avoid trapping the "EXIT" pseudo-signal altogether, as it may misbehave on some shells (hangs the console or does not trap anything at all). From bogdan at opensips.org Wed Jan 3 13:05:34 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 03 Jan 2018 10:05:34 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] f72160: Improve docs on db_url setting Message-ID: <5a4d1b6e518ee_68122afd3519fc1418210@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: f7216003b5d19a80fbf115987c9b4f8b4f43bc5e https://github.com/OpenSIPS/opensips/commit/f7216003b5d19a80fbf115987c9b4f8b4f43bc5e Author: Bogdan-Andrei Iancu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/permissions/README M modules/permissions/doc/permissions_admin.xml Log Message: ----------- Improve docs on db_url setting From bogdan at opensips.org Wed Jan 3 13:06:30 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 03 Jan 2018 10:06:30 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] f9b26f: Improve docs on db_url setting Message-ID: <5a4d1ba6792da_4ef52b10aec9dc104118b@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: f9b26fbc87bb93c697a23ec8f48458ef3854c2d0 https://github.com/OpenSIPS/opensips/commit/f9b26fbc87bb93c697a23ec8f48458ef3854c2d0 Author: Bogdan-Andrei Iancu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/permissions/README M modules/permissions/doc/permissions_admin.xml Log Message: ----------- Improve docs on db_url setting (cherry picked from commit f7216003b5d19a80fbf115987c9b4f8b4f43bc5e) From bogdan at opensips.org Wed Jan 3 13:06:49 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 03 Jan 2018 10:06:49 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 496bcb: Improve docs on db_url setting Message-ID: <5a4d1bb992593_5e842b140e181c109253c@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 496bcb5e7d6af0f8ec5076fc250c93a5bd068fd2 https://github.com/OpenSIPS/opensips/commit/496bcb5e7d6af0f8ec5076fc250c93a5bd068fd2 Author: Bogdan-Andrei Iancu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/permissions/README M modules/permissions/doc/permissions_admin.xml Log Message: ----------- Improve docs on db_url setting (cherry picked from commit f7216003b5d19a80fbf115987c9b4f8b4f43bc5e) From vladp at opensips.org Wed Jan 3 13:23:34 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Wed, 03 Jan 2018 10:23:34 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] bf4ce8: dialog: fix a clusterer module registration bug Message-ID: <5a4d1fa67628f_52f42add2e329c00321a0@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: bf4ce8e30dc813fffdd8c9f2d23aa3f69a795963 https://github.com/OpenSIPS/opensips/commit/bf4ce8e30dc813fffdd8c9f2d23aa3f69a795963 Author: rvlad-patrascu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/dialog/dialog.c Log Message: ----------- dialog: fix a clusterer module registration bug Bad cluster id provided to the clusterer module when only the accept_replicated_profiles parameter was defined without accept_replicated_dialogs. Thanks go to Nick Altmann for reporting this. Closes #1243 From vladp at opensips.org Wed Jan 3 13:24:14 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Wed, 03 Jan 2018 10:24:14 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] dfe4cd: dialog: fix a clusterer module registration bug Message-ID: <5a4d1fcec9c13_63322aeb90845c1490915@hookshot-fe-2cc8887.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: dfe4cd43e94b7bbf2f83923efe0667b986bed99d https://github.com/OpenSIPS/opensips/commit/dfe4cd43e94b7bbf2f83923efe0667b986bed99d Author: rvlad-patrascu Date: 2018-01-03 (Wed, 03 Jan 2018) Changed paths: M modules/dialog/dialog.c Log Message: ----------- dialog: fix a clusterer module registration bug Bad cluster id provided to the clusterer module when only the accept_replicated_profiles parameter was defined without accept_replicated_dialogs. Thanks go to Nick Altmann for reporting this. Closes #1243 (cherry picked from commit 9bb8021e257fe5db8a9be086fe41931e9b8741c3) From govoiper at gmail.com Wed Jan 3 14:10:22 2018 From: govoiper at gmail.com (SamyGo) Date: Wed, 3 Jan 2018 14:10:22 -0500 Subject: [OpenSIPS-Devel] OpenSIPS 2.4 rest_post behavior Message-ID: Hi, I've upgraded my opensips from 2.2.x to 2.4 version for testing and rest_client module has different results from older version. If I make a rest_post() query to the URL then the $var(body) contains the whole HTTP message along with the body eg: xlog("L_INFO","[XLOG-API] HTTP SERVER Body:$var(body) \n"); Prints: [XLOG-API] HTTP SERVER Body:HTTP/1.1 200 OK#015#012Date: Wed, 03 Jan 2018 18:56:44 GMT#015#012Content-Type: text/plain;charset=UTF-8#015#012Server: Apache#015#012Content-Length: 4#015#012#015#012PASS While the same line on older version Prints: [XLOG-API] HTTP SERVER Body:PASS VERSION: version: opensips 2.4.0-dev (x86_64/linux) flags: STATS: On, SHM_EXTRA_STATS, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, QM_MALLOC, DBG_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: d1a4419 main.c compiled on 18:03:59 Dec 2 2017 with gcc 4.8 Kindly advise is there is any discrepancy in my script usage or bug in the backend code. Regards, Sammy -------------- next part -------------- An HTML attachment was scrubbed... URL: From liviu at opensips.org Thu Jan 4 10:07:52 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 04 Jan 2018 07:07:52 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] a2dd10: Add a "struct ucontact_info" logging function Message-ID: <5a4e4348601a6_19e52adccab91c1c219d5@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: a2dd10a49b2557c1343cd87c364a1144e9ea7118 https://github.com/OpenSIPS/opensips/commit/a2dd10a49b2557c1343cd87c364a1144e9ea7118 Author: Liviu Chircu Date: 2018-01-04 (Thu, 04 Jan 2018) Changed paths: M lib/reg/ci.c M lib/reg/ci.h Log Message: ----------- Add a "struct ucontact_info" logging function Commit: 86628e6d418ed72d159ebb1b055b86daca0c4f6e https://github.com/OpenSIPS/opensips/commit/86628e6d418ed72d159ebb1b055b86daca0c4f6e Author: Liviu Chircu Date: 2018-01-04 (Thu, 04 Jan 2018) Changed paths: M modules/mid_registrar/Makefile M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix a PKG memory leak Although the TMCB_RESPONSE_IN callback provides a reference to the initial request during reply processing, this sip_msg must not be parsed (i.e. passed to parse_headers()), otherwise we leak PKG memory, since parsing is PKG-based, while the request buffer is copied in SHM. The current workaround for mid_registrar is to immediately duplicate all contact-related data we could possibly need, should the contact successfully register on the downstream registrar. This copying takes place during request processing. Once the reply arrives, we only make use of this info in order to store the contact in usrloc, and barely even use the "req" sip_msg provided by tm. Compare: https://github.com/OpenSIPS/opensips/compare/bf4ce8e30dc8...86628e6d418e From liviu at opensips.org Thu Jan 4 10:23:25 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 04 Jan 2018 07:23:25 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 3acaf2: mid_registrar: Fix unused variable Message-ID: <5a4e46edd7743_43882b0b782f9c08641f9@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 3acaf2e92a74cd8b13539eb75cf45a5edcc352ae https://github.com/OpenSIPS/opensips/commit/3acaf2e92a74cd8b13539eb75cf45a5edcc352ae Author: Liviu Chircu Date: 2018-01-04 (Thu, 04 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix unused variable From liviu at opensips.org Thu Jan 4 11:35:23 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 04 Jan 2018 08:35:23 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 7bafce: mid_registrar: Improve the advertised socket logic Message-ID: <5a4e57cbaf3f3_6d1b2ae0e4d09c0c860fb@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 7bafce982b1c7a2416025fed6b04b4d9dffc5b0a https://github.com/OpenSIPS/opensips/commit/7bafce982b1c7a2416025fed6b04b4d9dffc5b0a Author: Liviu Chircu Date: 2018-01-04 (Thu, 04 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Improve the advertised socket logic Instead of blindly advertising the first UDP interface in the self-generated, outgoing Contact URIs, the mid_registrar is now aware of the next SIP hop and properly advertises the actual sending interface which will be used. This includes any forced send socket logic at script level. From liviu at opensips.org Thu Jan 4 13:17:22 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 04 Jan 2018 10:17:22 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 34d0b1: mid_registrar: Add the "extra_ct_params_pvar" modp... Message-ID: <5a4e6fb24915b_caf2ad0d1a99bfc335d4@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 34d0b1bc244e2dd8ac8c6dc5a05b983f9b7a533b https://github.com/OpenSIPS/opensips/commit/34d0b1bc244e2dd8ac8c6dc5a05b983f9b7a533b Author: Liviu Chircu Date: 2018-01-04 (Thu, 04 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Add the "extra_ct_params_pvar" modparam Allows the script writer to append additional Contact URI parameters. Commit: 99c32a3e5f123d8ab42e1633826b77d6c8809194 https://github.com/OpenSIPS/opensips/commit/99c32a3e5f123d8ab42e1633826b77d6c8809194 Author: Liviu Chircu Date: 2018-01-04 (Thu, 04 Jan 2018) Changed paths: M modules/mid_registrar/README M modules/mid_registrar/doc/mid_registrar_admin.xml Log Message: ----------- mid_registrar: Update documentation Compare: https://github.com/OpenSIPS/opensips/compare/7bafce982b1c...99c32a3e5f12 From liviu at opensips.org Fri Jan 5 06:38:04 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 03:38:04 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] c1df32: acc: Simplify some startup parsing code Message-ID: <5a4f639c6373c_3cae2af5f4af5c0c96236@hookshot-fe-b0febf1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: c1df327865856e145fb6a0f5735b773e658397ed https://github.com/OpenSIPS/opensips/commit/c1df327865856e145fb6a0f5735b773e658397ed Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/acc/acc_extra.c Log Message: ----------- acc: Simplify some startup parsing code * use str_strcmp() more often * code only runs at startup, no need for static storage * remove redundant "inline" modifiers Commit: 468060b3e47d399bf94e14411db02dabf12e0cb0 https://github.com/OpenSIPS/opensips/commit/468060b3e47d399bf94e14411db02dabf12e0cb0 Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c Log Message: ----------- mid_registrar: Fix possible startup segfault If you don't set commit 34d0b1bc2's modparam, you win a corefile. Compare: https://github.com/OpenSIPS/opensips/compare/99c32a3e5f12...468060b3e47d From liviu at opensips.org Fri Jan 5 10:19:46 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 07:19:46 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] aab1ec: menuconfig: Fix a PREFIX handling bug Message-ID: <5a4f9792653e5_3c112afa93509c14455d@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: aab1ec7e0dcefdef173e327cd35a857895ad3a75 https://github.com/OpenSIPS/opensips/commit/aab1ec7e0dcefdef173e327cd35a857895ad3a75 Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M menuconfig/parser.c Log Message: ----------- menuconfig: Fix a PREFIX handling bug This patch fixes a bug where menuconfig corrupts the Makefile.conf PREFIX variable value by incorrectly trimming the last char in an attempt to ensure that the value has a trailing '/' char. This would happen each time the user launches menuconfig and chooses "Exit & Save All Changes". Reported by @Jeffrey2019 on GitHub. Fixes #1248. From liviu at opensips.org Fri Jan 5 10:21:17 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 07:21:17 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 5f8f3e: menuconfig: Fix a PREFIX handling bug Message-ID: <5a4f97ed280fb_219d2ace3aa8dc1027027@hookshot-fe-5a11256.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 5f8f3e1f6e1341e245af46f557bc102ce87b137f https://github.com/OpenSIPS/opensips/commit/5f8f3e1f6e1341e245af46f557bc102ce87b137f Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M menuconfig/parser.c Log Message: ----------- menuconfig: Fix a PREFIX handling bug This patch fixes a bug where menuconfig corrupts the Makefile.conf PREFIX variable value by incorrectly trimming the last char in an attempt to ensure that the value has a trailing '/' char. This would happen each time the user launches menuconfig and chooses "Exit & Save All Changes". Reported by @Jeffrey2019 on GitHub. Fixes #1248. (cherry picked from commit aab1ec7e0dcefdef173e327cd35a857895ad3a75) From liviu at opensips.org Fri Jan 5 10:24:20 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 07:24:20 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 6954ff: menuconfig: Fix a PREFIX handling bug Message-ID: <5a4f98a4e7a2_2d07d2adc19d55c0829025@hookshot-fe-dfcc362.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 6954ffdbd27d1db38bb53f12bf37104d6f65f92a https://github.com/OpenSIPS/opensips/commit/6954ffdbd27d1db38bb53f12bf37104d6f65f92a Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M menuconfig/parser.c Log Message: ----------- menuconfig: Fix a PREFIX handling bug This patch fixes a bug where menuconfig corrupts the Makefile.conf PREFIX variable value by incorrectly trimming the last char in an attempt to ensure that the value has a trailing '/' char. This would happen each time the user launches menuconfig and chooses "Exit & Save All Changes". Reported by @Jeffrey2019 on GitHub. Fixes #1248. (cherry picked from commit aab1ec7e0dcefdef173e327cd35a857895ad3a75) From liviu at opensips.org Fri Jan 5 10:25:34 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 07:25:34 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] d8a7a1: menuconfig: Fix a PREFIX handling bug Message-ID: <5a4f98ee71b60_79092ad638f1dc0c1104d0@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/2.1 Home: https://github.com/OpenSIPS/opensips Commit: d8a7a15d7034b89abb462c676001b32d3287e2b7 https://github.com/OpenSIPS/opensips/commit/d8a7a15d7034b89abb462c676001b32d3287e2b7 Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M menuconfig/parser.c Log Message: ----------- menuconfig: Fix a PREFIX handling bug This patch fixes a bug where menuconfig corrupts the Makefile.conf PREFIX variable value by incorrectly trimming the last char in an attempt to ensure that the value has a trailing '/' char. This would happen each time the user launches menuconfig and chooses "Exit & Save All Changes". Reported by @Jeffrey2019 on GitHub. Fixes #1248. (cherry picked from commit aab1ec7e0dcefdef173e327cd35a857895ad3a75) From liviu at opensips.org Fri Jan 5 10:27:34 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 07:27:34 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] d9e8bb: menuconfig: Fix a PREFIX handling bug Message-ID: <5a4f9966d2422_3f342aac817f3c148962f@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/1.11 Home: https://github.com/OpenSIPS/opensips Commit: d9e8bbf26fd47d6cf0282705a3c77341701077a6 https://github.com/OpenSIPS/opensips/commit/d9e8bbf26fd47d6cf0282705a3c77341701077a6 Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M menuconfig/parser.c Log Message: ----------- menuconfig: Fix a PREFIX handling bug This patch fixes a bug where menuconfig corrupts the Makefile.conf PREFIX variable value by incorrectly trimming the last char in an attempt to ensure that the value has a trailing '/' char. This would happen each time the user launches menuconfig and chooses "Exit & Save All Changes". Reported by @Jeffrey2019 on GitHub. Fixes #1248. (cherry picked from commit aab1ec7e0dcefdef173e327cd35a857895ad3a75) From bogdan at opensips.org Fri Jan 5 10:30:38 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 07:30:38 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] cec2d6: Fixed expantion of shm_info() for HP_MALLOC Message-ID: <5a4f9a1e36ef4_6adc2acf29577c0465344@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: cec2d66b72a1c65cd3c7fa0276211aa8566cc268 https://github.com/OpenSIPS/opensips/commit/cec2d66b72a1c65cd3c7fa0276211aa8566cc268 Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M mem/shm_mem.h Log Message: ----------- Fixed expantion of shm_info() for HP_MALLOC Reported by Nick Altmann Closes #1240 From bogdan at opensips.org Fri Jan 5 10:37:31 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 07:37:31 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 4f35c9: Fixed expantion of shm_info() for HP_MALLOC Message-ID: <5a4f9bbbb769e_77b82b00f20b1bfc803f5@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 4f35c99a03d797e7b14d30902607a3dbf168a1a3 https://github.com/OpenSIPS/opensips/commit/4f35c99a03d797e7b14d30902607a3dbf168a1a3 Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M mem/shm_mem.h Log Message: ----------- Fixed expantion of shm_info() for HP_MALLOC Reported by Nick Altmann Closes #1240 (cherry picked from commit cec2d66b72a1c65cd3c7fa0276211aa8566cc268) From bogdan at opensips.org Fri Jan 5 10:39:47 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 07:39:47 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 57065c: Fixed expantion of shm_info() for HP_MALLOC Message-ID: <5a4f9c438f960_3fd22b1191c1bc0473014@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 57065cadfbce0b5f4fc4233d2c1d69af0c765cf6 https://github.com/OpenSIPS/opensips/commit/57065cadfbce0b5f4fc4233d2c1d69af0c765cf6 Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M mem/shm_mem.h Log Message: ----------- Fixed expantion of shm_info() for HP_MALLOC Reported by Nick Altmann Closes #1240 (cherry picked from commit cec2d66b72a1c65cd3c7fa0276211aa8566cc268) From liviu at opensips.org Fri Jan 5 11:02:10 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 08:02:10 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 91d7e7: rest_client: Fix a rest_post() regression bug Message-ID: <5a4fa18275ab7_6f1e2ab0bdf4fc0c62115@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 91d7e7f4bc44857b6649dcbfd48b0ad9decf902c https://github.com/OpenSIPS/opensips/commit/91d7e7f4bc44857b6649dcbfd48b0ad9decf902c Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/rest_client/rest_methods.c Log Message: ----------- rest_client: Fix a rest_post() regression bug Commit c549e6ec added an unnecessary libcurl option which caused the HTTP headers to be logged into the output body pseudo-variable alongside the request body when performing a rest_post(). This patch disables the above-mentioned libcurl option (CURLOPT_HEADER). Reported by @goharahmed on GitHub. Fixes #1247. From liviu at opensips.org Fri Jan 5 11:02:34 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 05 Jan 2018 08:02:34 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] aa81c6: rest_client: Fix a rest_post() regression bug Message-ID: <5a4fa19a66ace_32b02ae84879fc1035587@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: aa81c6721f02bbc2173c1b34d1b71136970147e8 https://github.com/OpenSIPS/opensips/commit/aa81c6721f02bbc2173c1b34d1b71136970147e8 Author: Liviu Chircu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/rest_client/rest_methods.c Log Message: ----------- rest_client: Fix a rest_post() regression bug Commit c549e6ec added an unnecessary libcurl option which caused the HTTP headers to be logged into the output body pseudo-variable alongside the request body when performing a rest_post(). This patch disables the above-mentioned libcurl option (CURLOPT_HEADER). Reported by @goharahmed on GitHub. Fixes #1247. (cherry picked from commit 91d7e7f4bc44857b6649dcbfd48b0ad9decf902c) From bogdan at opensips.org Fri Jan 5 11:03:52 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 08:03:52 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] c6c937: Ignore tracing types which are not recognized. Message-ID: <5a4fa1e847d4e_66dd2b0ff0f25c083152a@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: c6c937d1e7e2fc14339de79590c49455bfe4eaf7 https://github.com/OpenSIPS/opensips/commit/c6c937d1e7e2fc14339de79590c49455bfe4eaf7 Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/siptrace/siptrace.c Log Message: ----------- Ignore tracing types which are not recognized. Instead of exiting with error and abording the whole tracing, better simple ignore the unrecognized tracing types. From bogdan at opensips.org Fri Jan 5 11:04:43 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 08:04:43 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] a3b332: Ignore tracing types which are not recognized. Message-ID: <5a4fa21b4ea81_67c52b243befdc085303d@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: a3b332ca4f60c308002097bba039f78b6e050bd7 https://github.com/OpenSIPS/opensips/commit/a3b332ca4f60c308002097bba039f78b6e050bd7 Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/siptrace/siptrace.c Log Message: ----------- Ignore tracing types which are not recognized. Instead of exiting with error and abording the whole tracing, better simple ignore the unrecognized tracing types. (cherry picked from commit c6c937d1e7e2fc14339de79590c49455bfe4eaf7) From bogdan at opensips.org Fri Jan 5 11:58:24 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 08:58:24 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 3fb581: The E_UL_CONTACT_INSERT event exposes the attr str... Message-ID: <5a4faeb0cff99_2cbb32aac7ff51c1072458@hookshot-fe-dfcc362.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 3fb5817be092655da9347f58515eb9563de3d95c https://github.com/OpenSIPS/opensips/commit/3fb5817be092655da9347f58515eb9563de3d95c Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/usrloc/README M modules/usrloc/doc/usrloc_admin.xml M modules/usrloc/udomain.c Log Message: ----------- The E_UL_CONTACT_INSERT event exposes the attr string. From bogdan at opensips.org Fri Jan 5 12:01:24 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Fri, 05 Jan 2018 09:01:24 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 824e21: Expose the ATTR field for event E_UL_CONTACT_INSER... Message-ID: <5a4faf647dba3_6ef02af6275adc0838942@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 824e21c9688bc747f2a4b2225df3ef0b52d49c4b https://github.com/OpenSIPS/opensips/commit/824e21c9688bc747f2a4b2225df3ef0b52d49c4b Author: Bogdan-Andrei Iancu Date: 2018-01-05 (Fri, 05 Jan 2018) Changed paths: M modules/tm/t_fwd.c Log Message: ----------- Expose the ATTR field for event E_UL_CONTACT_INSERT. Extract the attr event field and expose it as "attr" atribute in the EBR resume route. From liviu at opensips.org Sat Jan 6 18:22:33 2018 From: liviu at opensips.org (Liviu Chircu) Date: Sat, 06 Jan 2018 15:22:33 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 14baed: mid_registrar: Fix unsafe strdup operation Message-ID: <5a515a39a1448_41c42ae5f3de5c0c3063b@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 14baedfbd23cd513347d46f3a4412e3e3aad1adf https://github.com/OpenSIPS/opensips/commit/14baedfbd23cd513347d46f3a4412e3e3aad1adf Author: Liviu Chircu Date: 2018-01-07 (Sun, 07 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix unsafe strdup operation From razvan at opensips.org Tue Jan 9 03:48:32 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 00:48:32 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] fecb4b: msg: remove extra bytes from malformed bodies Message-ID: <5a5481e0da7c2_36292ab2da3b9c0c748a7@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: fecb4b244c3cf84435af03db88bfd88002a69177 https://github.com/OpenSIPS/opensips/commit/fecb4b244c3cf84435af03db88bfd88002a69177 Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M msg_translator.c Log Message: ----------- msg: remove extra bytes from malformed bodies This commit fixes an abort() generated by the message builder when a malformed message is received that has a Content-Length lower than the actual body. Thanks go to Jon Hunter for reporting this issue and offering all necessary information for debugging it. Closes #1244 From razvan at opensips.org Tue Jan 9 03:48:58 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 00:48:58 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 730d1b: msg: remove extra bytes from malformed bodies Message-ID: <5a5481fae4c0a_33b92b24af897c143621@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 730d1b0aad7ce2883616d68895764ab989e326fb https://github.com/OpenSIPS/opensips/commit/730d1b0aad7ce2883616d68895764ab989e326fb Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M msg_translator.c Log Message: ----------- msg: remove extra bytes from malformed bodies This commit fixes an abort() generated by the message builder when a malformed message is received that has a Content-Length lower than the actual body. Thanks go to Jon Hunter for reporting this issue and offering all necessary information for debugging it. Closes #1244 (cherry picked from commit fecb4b244c3cf84435af03db88bfd88002a69177) From razvan at opensips.org Tue Jan 9 04:03:16 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 01:03:16 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 4c94c9: jabber & xmpp: fix bogus pointer checks Message-ID: <5a548554cca5e_28132af72610bc04515bb@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 4c94c946a412454dc06051dc81d947ecebca005d https://github.com/OpenSIPS/opensips/commit/4c94c946a412454dc06051dc81d947ecebca005d Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/jabber/xode.c M modules/jabber/xstream.c M modules/xmpp/xode.c M modules/xmpp/xode_from.c M modules/xmpp/xstream.c Log Message: ----------- jabber & xmpp: fix bogus pointer checks From razvan at opensips.org Tue Jan 9 04:32:58 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 01:32:58 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 3ed75a: jabber: complete previous commit Message-ID: <5a548c4a16406_716b2b0a9de63c001388b@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 3ed75a85499cc0104182d51a1b67843c5751bc81 https://github.com/OpenSIPS/opensips/commit/3ed75a85499cc0104182d51a1b67843c5751bc81 Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/jabber/xode_from.c Log Message: ----------- jabber: complete previous commit Commit: a63e7b24eb7445c6f5bbf42b994dc3023f496f22 https://github.com/OpenSIPS/opensips/commit/a63e7b24eb7445c6f5bbf42b994dc3023f496f22 Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/db_perlvdb/Makefile M modules/perl/Makefile Log Message: ----------- perl*: enable optimizations if FORTIFY_SOURCE is used Compare: https://github.com/OpenSIPS/opensips/compare/4c94c946a412...a63e7b24eb74 From razvan at opensips.org Tue Jan 9 04:47:15 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 01:47:15 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 85a2f8: mongo: replace deprecated bulk function Message-ID: <5a548fa31b05b_372f2add3766fc084176e@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 85a2f86442b1e66190eacf87082be575458772dc https://github.com/OpenSIPS/opensips/commit/85a2f86442b1e66190eacf87082be575458772dc Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/cachedb_mongodb/cachedb_mongodb_dbase.c Log Message: ----------- mongo: replace deprecated bulk function replace mongoc_collection_create_bulk_operation() function from 1.8.0 with the newly added mongoc_collection_create_bulk_operation_with_opts() function in 1.9.0 From bogdan at opensips.org Tue Jan 9 04:56:31 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 09 Jan 2018 01:56:31 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 431638: Added support for RCP via IPC Message-ID: <5a5491cfae4cf_3d3e2aefa7c97c0c84287@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 431638e5841302487278467acec7072b96676c77 https://github.com/OpenSIPS/opensips/commit/431638e5841302487278467acec7072b96676c77 Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M ipc.c M ipc.h Log Message: ----------- Added support for RCP via IPC RPC allows you to request another process to run a function of yours. Commit: 35c432467234c817c86eacc1570b42a188bbdfe9 https://github.com/OpenSIPS/opensips/commit/35c432467234c817c86eacc1570b42a188bbdfe9 Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/drouting/drouting.c Log Message: ----------- Moved data loading outside child init Instead of loading the data in child_init routine, better fire a RPC to itself to perform the load after the child_init is done. This will speed up the OpenSIPS starting sequance, as we can complete the init part and daemonize without waiting for data loading. Commit: 421d67004d5264a073f61f20c3f3ecf6bf90ac36 https://github.com/OpenSIPS/opensips/commit/421d67004d5264a073f61f20c3f3ecf6bf90ac36 Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/dialplan/dialplan.c Log Message: ----------- Moved data loading outside child init Instead of loading the data in child_init routine, better fire a RPC to itself to perform the load after the child_init is done. This will speed up the OpenSIPS starting sequance, as we can complete the init part and daemonize without waiting for data loading. Commit: a4dcbfc670316c75863d90c43deafe8f7439f8ce https://github.com/OpenSIPS/opensips/commit/a4dcbfc670316c75863d90c43deafe8f7439f8ce Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/usrloc/ul_mod.c Log Message: ----------- Moved data loading outside child init Instead of loading the data in child_init routine, better fire a RPC to itself to perform the load after the child_init is done. This will speed up the OpenSIPS starting sequance, as we can complete the init part and daemonize without waiting for data loading. Commit: 1b9541432529799f7953b64d3e19f0789e4e3f65 https://github.com/OpenSIPS/opensips/commit/1b9541432529799f7953b64d3e19f0789e4e3f65 Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/drouting/drouting.c Log Message: ----------- Small code cleanup Commit: 719f620533e87cc8c0ce8cccce3501616d99a53d https://github.com/OpenSIPS/opensips/commit/719f620533e87cc8c0ce8cccce3501616d99a53d Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/dialplan/dialplan.c Log Message: ----------- Removed bogus connection close at shutdown There is not DB connection closed in proc MAIN (from dailplan) as the conn is closed in mod_init() after all the DB checks. Compare: https://github.com/OpenSIPS/opensips/compare/85a2f86442b1...719f620533e8 From razvan at opensips.org Tue Jan 9 07:59:33 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 04:59:33 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] cf190a: pike: enforce remove latency to at least sampling_... Message-ID: <5a54bcb5e1b9a_fa52adf9baffc0836283@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: cf190a95515def67333aeab2ab5b74629ed74d22 https://github.com/OpenSIPS/opensips/commit/cf190a95515def67333aeab2ab5b74629ed74d22 Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/pike/README M modules/pike/doc/pike_admin.xml M modules/pike/pike.c Log Message: ----------- pike: enforce remove latency to at least sampling_time_unit + 1 This prevents UNBLOCK events from being lost. From liviu at opensips.org Tue Jan 9 07:59:38 2018 From: liviu at opensips.org (Liviu Chircu) Date: Tue, 09 Jan 2018 04:59:38 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 66dd00: usrloc: Add generic, contact-level key-value stora... Message-ID: <5a54bcbaae553_42332af2e1cc9bfc432a4@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: 66dd00d5c7ce1c640d5fea2a0e7e3d01662265d3 https://github.com/OpenSIPS/opensips/commit/66dd00d5c7ce1c640d5fea2a0e7e3d01662265d3 Author: Liviu Chircu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h M ut.h Log Message: ----------- usrloc: Add generic, contact-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc contact. From razvan at opensips.org Tue Jan 9 07:59:49 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 04:59:49 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] f71f6f: pike: enforce remove latency to at least sampling_... Message-ID: <5a54bcc565c9f_50a2b2165553c1c742c9@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: f71f6f3b0b254fb27eceb5dc62446457f615288b https://github.com/OpenSIPS/opensips/commit/f71f6f3b0b254fb27eceb5dc62446457f615288b Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/pike/README M modules/pike/doc/pike_admin.xml M modules/pike/pike.c Log Message: ----------- pike: enforce remove latency to at least sampling_time_unit + 1 This prevents UNBLOCK events from being lost. (cherry picked from commit cf190a95515def67333aeab2ab5b74629ed74d22) From razvan at opensips.org Tue Jan 9 08:00:12 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 09 Jan 2018 05:00:12 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 3a2ea8: pike: enforce remove latency to at least sampling_... Message-ID: <5a54bcdc3dcc8_1ab52b14d0f97bfc58033@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 3a2ea8d6ac5fa42b509ef0aea81df51a20cb1e1f https://github.com/OpenSIPS/opensips/commit/3a2ea8d6ac5fa42b509ef0aea81df51a20cb1e1f Author: Razvan Crainea Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/pike/README M modules/pike/doc/pike_admin.xml M modules/pike/pike.c Log Message: ----------- pike: enforce remove latency to at least sampling_time_unit + 1 This prevents UNBLOCK events from being lost. (cherry picked from commit cf190a95515def67333aeab2ab5b74629ed74d22) From liviu at opensips.org Tue Jan 9 08:04:22 2018 From: liviu at opensips.org (Liviu Chircu) Date: Tue, 09 Jan 2018 05:04:22 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 2ee940: usrloc: Add generic, contact-level key-value stora... Message-ID: <5a54bdd660ce3_34ce2af0d3703c1433530@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: 2ee94070d5df0190fd33e15da442865f1656776f https://github.com/OpenSIPS/opensips/commit/2ee94070d5df0190fd33e15da442865f1656776f Author: Liviu Chircu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h M ut.h Log Message: ----------- usrloc: Add generic, contact-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc contact. From liviu at opensips.org Tue Jan 9 09:20:29 2018 From: liviu at opensips.org (Liviu Chircu) Date: Tue, 09 Jan 2018 06:20:29 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] aaa723: usrloc: Add generic, record-level key-value storag... Message-ID: <5a54cfad8e3d5_7512ac4b050bc0848947@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: aaa723e868117a2a23e9498504995ac963d174f0 https://github.com/OpenSIPS/opensips/commit/aaa723e868117a2a23e9498504995ac963d174f0 Author: Liviu Chircu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: A modules/usrloc/kv_store.c A modules/usrloc/kv_store.h M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h Log Message: ----------- usrloc: Add generic, record-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc record / AOR. From bogdan at opensips.org Tue Jan 9 13:32:20 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 09 Jan 2018 10:32:20 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 405baf: Fine tunning of IPC support in internal_fork() Message-ID: <5a550ab4cf5e3_46552afeadbe9c004194@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 405baf884fb09f5726a6654b586c3f08d52ed460 https://github.com/OpenSIPS/opensips/commit/405baf884fb09f5726a6654b586c3f08d52ed460 Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M mi/mi_core.c M net/net_tcp.c M net/net_udp.c M pt.c M pt.h M sr_module.c M timer.c Log Message: ----------- Fine tunning of IPC support in internal_fork() * introduced "flags" to internal_fork() for various options * added OSS_FORK_NO_IPC to prevent the creation of IPC pipes during internal_fork - to be used when creating new processes without IPC support * replaced id_of_pid() with get_process_ID_by_PID() Commit: 19756d46c3e80c7ee3915a5985bdbad849d605dc https://github.com/OpenSIPS/opensips/commit/19756d46c3e80c7ee3915a5985bdbad849d605dc Author: Bogdan-Andrei Iancu Date: 2018-01-09 (Tue, 09 Jan 2018) Changed paths: M main.c Log Message: ----------- Added support for graceful shutdown. Graceful shutdown is based on IPC commands sent to worker processes, rather than terminating them by SIGTERM. This will allow the workers to complete on ongoing task and to terminate in a consistent state (as locking or data consistency). TO DO: * move PKG memory dumping and memory stats to IPC/RPC (versus signals) Nice to have: * child_destroy() functions to allow modules to do per-child/process cleanup (like closing DB conns, flushing, etc) Compare: https://github.com/OpenSIPS/opensips/compare/cf190a95515d...19756d46c3e8 From bogdan at opensips.org Wed Jan 10 05:58:08 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Wed, 10 Jan 2018 02:58:08 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 5d1670: Repaid the IPC support in the external proc of FS ... Message-ID: <5a55f1c090a3a_67a52adfe80a5bfc102397@hookshot-fe-b0febf1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 5d1670a4aed424de52915833e197b66bae10d818 https://github.com/OpenSIPS/opensips/commit/5d1670a4aed424de52915833e197b66bae10d818 Author: Bogdan-Andrei Iancu Date: 2018-01-10 (Wed, 10 Jan 2018) Changed paths: M modules/freeswitch/fs_mod.c M sr_module.c M sr_module.h Log Message: ----------- Repaid the IPC support in the external proc of FS module Allow a module to inform the core if its additional processes are able or not to handle IPC jobs. New process flag (for the module interface) added - PROC_FLAG_HAS_IPC. From liviu at opensips.org Wed Jan 10 13:04:16 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 10 Jan 2018 10:04:16 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 0d1bc4: mid_registrar: Fix an AoR throttling bug Message-ID: <5a5655a07b6e4_114f2afe09463c1459698@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 0d1bc44237b8046b7ea0fb34c9806806c913de2d https://github.com/OpenSIPS/opensips/commit/0d1bc44237b8046b7ea0fb34c9806806c913de2d Author: Liviu Chircu Date: 2018-01-10 (Wed, 10 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix an AoR throttling bug Do not apply min/max "expires" module limitations when computing the main registrar's contact expiration value. From liviu at opensips.org Wed Jan 10 13:04:58 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 10 Jan 2018 10:04:58 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 0f83f9: usrloc: Add generic, contact-level key-value stora... Message-ID: <5a5655ca85d53_26f82b03e76a3c0c74158@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: 0f83f9a0949b6bba72597873d8d80c8297685caa https://github.com/OpenSIPS/opensips/commit/0f83f9a0949b6bba72597873d8d80c8297685caa Author: Liviu Chircu Date: 2018-01-10 (Wed, 10 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h M ut.h Log Message: ----------- usrloc: Add generic, contact-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc contact. Commit: 49965a617110f589ffe7a26cca58d35a9a48be12 https://github.com/OpenSIPS/opensips/commit/49965a617110f589ffe7a26cca58d35a9a48be12 Author: Liviu Chircu Date: 2018-01-10 (Wed, 10 Jan 2018) Changed paths: A modules/usrloc/kv_store.c A modules/usrloc/kv_store.h M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h Log Message: ----------- usrloc: Add generic, record-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc record / AOR. Commit: a9d7e422cea9494eb63593732d7663516415a5b9 https://github.com/OpenSIPS/opensips/commit/a9d7e422cea9494eb63593732d7663516415a5b9 Author: Liviu Chircu Date: 2018-01-10 (Wed, 10 Jan 2018) Changed paths: M modules/usrloc/kv_store.c Log Message: ----------- usrloc: K/V store - use map_find() instead of map_get() Commit: 7d05907d66069cdb50a8d3148b82a31064f0f5c8 https://github.com/OpenSIPS/opensips/commit/7d05907d66069cdb50a8d3148b82a31064f0f5c8 Author: Liviu Chircu Date: 2018-01-10 (Wed, 10 Jan 2018) Changed paths: M modules/mid_registrar/save.c A modules/mid_registrar/ul_storage.c A modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c M modules/usrloc/kv_store.c Log Message: ----------- mid_registrar: Refactor the AoR throttling implementation We now make use of usrloc's newly added k/v storage functions in order to store/retrieve the module data into/from each record. Compare: https://github.com/OpenSIPS/opensips/compare/aaa723e86811...7d05907d6606 From bogdan at opensips.org Thu Jan 11 05:08:56 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 11 Jan 2018 02:08:56 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 963f05: Fixed parameter passing for dr_is_gw(). Message-ID: <5a5737b824a6e_372f2add3766fc0861553@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 963f05169c18abd9b2ccdf26170e08628a54becb https://github.com/OpenSIPS/opensips/commit/963f05169c18abd9b2ccdf26170e08628a54becb Author: Bogdan-Andrei Iancu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/drouting/drouting.c Log Message: ----------- Fixed parameter passing for dr_is_gw(). If partitions are not used, do a logic shift for the parameters with one position to the left to compensate the missing partition param. Reported by Jonathan Hunter From bogdan at opensips.org Thu Jan 11 05:12:58 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 11 Jan 2018 02:12:58 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] d448ab: Fixed parameter passing for dr_is_gw(). Message-ID: <5a5738aa35594_24322af4dbe9bc0465163@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: d448ab6e3599dd188a0edd1cef591a7ef604fa06 https://github.com/OpenSIPS/opensips/commit/d448ab6e3599dd188a0edd1cef591a7ef604fa06 Author: Bogdan-Andrei Iancu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/drouting/drouting.c Log Message: ----------- Fixed parameter passing for dr_is_gw(). If partitions are not used, do a logic shift for the parameters with one position to the left to compensate the missing partition param. Reported by Jonathan Hunter (cherry picked from commit 963f05169c18abd9b2ccdf26170e08628a54becb) From bogdan at opensips.org Thu Jan 11 05:14:23 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 11 Jan 2018 02:14:23 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 1da701: Fixed parameter passing for dr_is_gw(). Message-ID: <5a5738ff487cf_dd82aae1f381c0422456@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 1da701a56bb2451479bad09101970c1c0dbff5e8 https://github.com/OpenSIPS/opensips/commit/1da701a56bb2451479bad09101970c1c0dbff5e8 Author: Bogdan-Andrei Iancu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/drouting/drouting.c Log Message: ----------- Fixed parameter passing for dr_is_gw(). If partitions are not used, do a logic shift for the parameters with one position to the left to compensate the missing partition param. Reported by Jonathan Hunter (cherry picked from commit 963f05169c18abd9b2ccdf26170e08628a54becb) (cherry picked from commit d448ab6e3599dd188a0edd1cef591a7ef604fa06) From bogdan at opensips.org Thu Jan 11 06:12:04 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 11 Jan 2018 03:12:04 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 769fb3: Fix TO parsing when there is a comma inside a quot... Message-ID: <5a5746848ac2c_3a7f2b148e64bc0c38632@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 769fb3c5913c9d7e583c4cdbdf26aae82cdaa205 https://github.com/OpenSIPS/opensips/commit/769fb3c5913c9d7e583c4cdbdf26aae82cdaa205 Author: Bogdan-Andrei Iancu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M parser/parse_to.c Log Message: ----------- Fix TO parsing when there is a comma inside a quoted display/value This bug was introduced during the re-factoring of the TO parser to support multple body parts - see 908b9f190bff3b356f76ce8ca75d43a2c149a412 Reported by Tito Cumpen From bogdan at opensips.org Thu Jan 11 06:12:38 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 11 Jan 2018 03:12:38 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 8bf502: Fix TO parsing when there is a comma inside a quot... Message-ID: <5a5746a642887_44342b21b62f7c10777a5@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 8bf502c7f3a649fcc06f97be76f9291b9d512ad2 https://github.com/OpenSIPS/opensips/commit/8bf502c7f3a649fcc06f97be76f9291b9d512ad2 Author: Bogdan-Andrei Iancu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M parser/parse_to.c Log Message: ----------- Fix TO parsing when there is a comma inside a quoted display/value This bug was introduced during the re-factoring of the TO parser to support multple body parts - see 908b9f190bff3b356f76ce8ca75d43a2c149a412 Reported by Tito Cumpen (cherry picked from commit 769fb3c5913c9d7e583c4cdbdf26aae82cdaa205) From bogdan at opensips.org Thu Jan 11 06:15:23 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Thu, 11 Jan 2018 03:15:23 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] c7cd7e: Fix TO parsing when there is a comma inside a quot... Message-ID: <5a57474b7c579_2e82afd663f5c087754d@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: c7cd7e1e4c95b60d4c4ab55782d7d2e728b81d96 https://github.com/OpenSIPS/opensips/commit/c7cd7e1e4c95b60d4c4ab55782d7d2e728b81d96 Author: Bogdan-Andrei Iancu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M parser/parse_to.c Log Message: ----------- Fix TO parsing when there is a comma inside a quoted display/value This bug was introduced during the re-factoring of the TO parser to support multple body parts - see 908b9f190bff3b356f76ce8ca75d43a2c149a412 Reported by Tito Cumpen (cherry picked from commit 769fb3c5913c9d7e583c4cdbdf26aae82cdaa205) From razvan at opensips.org Thu Jan 11 07:15:24 2018 From: razvan at opensips.org (Razvan Crainea) Date: Thu, 11 Jan 2018 04:15:24 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 5773e6: protos/tcp: respect async operations order Message-ID: <5a57555c4a5df_2ba2b1adc5dbc14104990@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 5773e65b9058643191544763e0f5ff26f5a7fb3b https://github.com/OpenSIPS/opensips/commit/5773e65b9058643191544763e0f5ff26f5a7fb3b Author: Razvan Crainea Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/proto_bin/proto_bin.c M modules/proto_hep/proto_hep.c M net/proto_tcp/proto_tcp.c Log Message: ----------- protos/tcp: respect async operations order In case there is a write request, before actually writing the data on the network, check if there are any async chunks left, and make sure they are sent before any other write happens. This is necessary to make sure the order of the packets is respected, otherwise we might end up with fragments of other packets in the stream. Thanks go to Vlad Patrascu for reporting and testing this. From razvan at opensips.org Thu Jan 11 07:15:45 2018 From: razvan at opensips.org (Razvan Crainea) Date: Thu, 11 Jan 2018 04:15:45 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] a3b192: protos/tcp: respect async operations order Message-ID: <5a575571a0914_35992b1a1926bc14364ea@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: a3b192739fd665865579f9631cfc83639ee49854 https://github.com/OpenSIPS/opensips/commit/a3b192739fd665865579f9631cfc83639ee49854 Author: Razvan Crainea Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/proto_bin/proto_bin.c M modules/proto_hep/proto_hep.c M net/proto_tcp/proto_tcp.c Log Message: ----------- protos/tcp: respect async operations order In case there is a write request, before actually writing the data on the network, check if there are any async chunks left, and make sure they are sent before any other write happens. This is necessary to make sure the order of the packets is respected, otherwise we might end up with fragments of other packets in the stream. Thanks go to Vlad Patrascu for reporting and testing this. (cherry picked from commit 5773e65b9058643191544763e0f5ff26f5a7fb3b) From razvan at opensips.org Thu Jan 11 07:16:13 2018 From: razvan at opensips.org (Razvan Crainea) Date: Thu, 11 Jan 2018 04:16:13 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] f1f9a9: protos/tcp: respect async operations order Message-ID: <5a57558db3ddc_2a06e2ae758c3fc0c83729@hookshot-fe-dfcc362.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: f1f9a9298e24f8c26285115959af8f180b3d22f5 https://github.com/OpenSIPS/opensips/commit/f1f9a9298e24f8c26285115959af8f180b3d22f5 Author: Razvan Crainea Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/proto_bin/proto_bin.c M modules/proto_hep/proto_hep.c M net/proto_tcp/proto_tcp.c Log Message: ----------- protos/tcp: respect async operations order In case there is a write request, before actually writing the data on the network, check if there are any async chunks left, and make sure they are sent before any other write happens. This is necessary to make sure the order of the packets is respected, otherwise we might end up with fragments of other packets in the stream. Thanks go to Vlad Patrascu for reporting and testing this. (cherry picked from commit 5773e65b9058643191544763e0f5ff26f5a7fb3b) From razvan at opensips.org Thu Jan 11 07:51:18 2018 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Thu, 11 Jan 2018 14:51:18 +0200 Subject: [OpenSIPS-Devel] [REALEASE] OpenSIPS 2.2.6 and 2.3.3 minor releases Message-ID: <4d9a1408-829b-f8d7-bd19-e40b4d973ebe@opensips.org> Hello, Everyone! A large number of bug fixes have been gathered since the last two stable versions were releasesed, so we decided it's time to let go to two new ones: OpenSIPS 2.2.6 and 2.3.3. The new releases are due next week, on Wednesday, January 25th 2018. If you have any pending GitHub issues/mailing list bug threads concerning OpenSIPS 2.2+ which are yet to be resolved, this would be a good time to bump them! Thank you for your contributions to this project! Best regards, -- Răzvan Crainea OpenSIPS Developer www.opensips-solutions.com From liviu at opensips.org Thu Jan 11 09:15:14 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 11 Jan 2018 06:15:14 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] cb8bc5: Refactor shm_str_resize() into shm_str_extend() Message-ID: <5a57717248bfe_71922ac8f3483c0872726@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: cb8bc5d6ca8efd3523f2b2a895cb7de63042572c https://github.com/OpenSIPS/opensips/commit/cb8bc5d6ca8efd3523f2b2a895cb7de63042572c Author: Liviu Chircu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/fraud_detection/fraud_detection.c M modules/usrloc/kv_store.c M ut.h Log Message: ----------- Refactor shm_str_resize() into shm_str_extend() This hints better at what the function actually does (i.e. it will not shrink your buffers) Commit: ef8f7a7b5e3348bdf1b8173d512adb64730f1a73 https://github.com/OpenSIPS/opensips/commit/ef8f7a7b5e3348bdf1b8173d512adb64730f1a73 Author: Liviu Chircu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/mid_registrar/save.c M modules/mid_registrar/ul_storage.c M modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c Log Message: ----------- mid_registrar: Refactor contact mirroring/throttling We now make use of usrloc's newly added k/v storage functions in order to store/retrieve the module data into/from each contact. Compare: https://github.com/OpenSIPS/opensips/compare/7d05907d6606...ef8f7a7b5e33 From liviu at opensips.org Thu Jan 11 09:54:46 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 11 Jan 2018 06:54:46 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] a85dba: usrloc: Simplify the callback API Message-ID: <5a577ab66c2ba_72402ad632551c10104596@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: a85dbaf650875cf380bd245580bf3402964327b5 https://github.com/OpenSIPS/opensips/commit/a85dbaf650875cf380bd245580bf3402964327b5 Author: Liviu Chircu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c M modules/mid_registrar/ulcb.c M modules/mid_registrar/ulcb.h M modules/pua_bla/pua_bla.c M modules/pua_bla/registrar_cb.c M modules/pua_bla/registrar_cb.h M modules/pua_usrloc/pua_usrloc.c M modules/pua_usrloc/pua_usrloc.h M modules/pua_usrloc/ul_publish.c M modules/snmpstats/interprocess_buffer.c M modules/snmpstats/interprocess_buffer.h M modules/snmpstats/openserSIPRegUserTable.c M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/ul_callback.c M modules/usrloc/ul_callback.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h Log Message: ----------- usrloc: Simplify the callback API The opaque buffer extension for the API (commit b0241c1318) is no longer needed, as the K/V usrloc extension completely replaces it. This commit also refactors the usrloc callback types as "ul_cb_type", thus making them easier to pick up / work with. From razvan at opensips.org Thu Jan 11 10:01:22 2018 From: razvan at opensips.org (Razvan Crainea) Date: Thu, 11 Jan 2018 07:01:22 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 672929: msg: properly compute the initial body size Message-ID: <5a577c4221c3b_26af2afaf133bc0810051e@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 672929eed0126fd19703a7f35b60920085170f9a https://github.com/OpenSIPS/opensips/commit/672929eed0126fd19703a7f35b60920085170f9a Author: Razvan Crainea Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M msg_translator.c M parser/parse_body.c Log Message: ----------- msg: properly compute the initial body size Also initialilize the body structure in case there is no body in the message. From razvan at opensips.org Thu Jan 11 10:02:33 2018 From: razvan at opensips.org (Razvan Crainea) Date: Thu, 11 Jan 2018 07:02:33 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 7d6f2f: msg: properly compute the initial body size Message-ID: <5a577c899bccb_45f92abf9f1bfc189079f@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 7d6f2fc6a291e448e734c65f660c922c37bbbc3d https://github.com/OpenSIPS/opensips/commit/7d6f2fc6a291e448e734c65f660c922c37bbbc3d Author: Razvan Crainea Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M msg_translator.c M parser/parse_body.c Log Message: ----------- msg: properly compute the initial body size Also initialilize the body structure in case there is no body in the message. Thanks go to Aqs Younas for reporting it From vladp at opensips.org Thu Jan 11 10:55:46 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Thu, 11 Jan 2018 07:55:46 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 0b06e6: sip_i: small doc fix for add_isup_part function Message-ID: <5a578902e74b9_38c22ac0406fdbfc53228@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 0b06e6ee3346dd60c5837c982608531e06d53416 https://github.com/OpenSIPS/opensips/commit/0b06e6ee3346dd60c5837c982608531e06d53416 Author: rvlad-patrascu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/sip_i/README M modules/sip_i/doc/sip_i_admin.xml Log Message: ----------- sip_i: small doc fix for add_isup_part function From vladp at opensips.org Thu Jan 11 10:56:56 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Thu, 11 Jan 2018 07:56:56 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] bfa1df: sip_i: small doc fix for add_isup_part function Message-ID: <5a57894828577_3d492b1f3f8c3c1c42746@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: bfa1df2a23ef2b44d20fc47e10a0d20fe7a34bfc https://github.com/OpenSIPS/opensips/commit/bfa1df2a23ef2b44d20fc47e10a0d20fe7a34bfc Author: rvlad-patrascu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/sip_i/README M modules/sip_i/doc/sip_i_admin.xml Log Message: ----------- sip_i: small doc fix for add_isup_part function (cherry picked from commit 0b06e6ee3346dd60c5837c982608531e06d53416) From vladp at opensips.org Thu Jan 11 13:30:26 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Thu, 11 Jan 2018 10:30:26 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 71960b: sql_cacher: do data loading for full caching in th... Message-ID: <5a57ad4224123_23bf2ab4ca6b3c0491580@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 71960b917deef997799c2abbd80cae2182642341 https://github.com/OpenSIPS/opensips/commit/71960b917deef997799c2abbd80cae2182642341 Author: rvlad-patrascu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/sql_cacher/sql_cacher.c Log Message: ----------- sql_cacher: do data loading for full caching in the first child process Speed up OpenSIPS starting sequence by doing the full caching data load in the first process, after child_init is done (via RPC), instead of during module init. From vladp at opensips.org Thu Jan 11 13:31:41 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Thu, 11 Jan 2018 10:31:41 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] ca2f66: sql_cacher: do data loading for full caching in th... Message-ID: <5a57ad8dbea44_39a52acad7109c18503f0@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: ca2f6633ed9d8fafa15a8a10c10471f3ac99cfaf https://github.com/OpenSIPS/opensips/commit/ca2f6633ed9d8fafa15a8a10c10471f3ac99cfaf Author: rvlad-patrascu Date: 2018-01-11 (Thu, 11 Jan 2018) Changed paths: M modules/sql_cacher/sql_cacher.c Log Message: ----------- sql_cacher: do data loading for full caching in the first child process Speed up OpenSIPS starting sequence by doing the full caching data load in the first process, after child_init is done (via RPC), instead of during module init. (cherry picked from commit 71960b917deef997799c2abbd80cae2182642341) From vladp at opensips.org Fri Jan 12 06:39:49 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Fri, 12 Jan 2018 03:39:49 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 7e4754: sql_cacher: fix data loading from previous commit Message-ID: <5a589e85d5be2_372c2ac7edd55c0c429c4@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 7e475405e9729077e6d813eb98a081847ccb37e1 https://github.com/OpenSIPS/opensips/commit/7e475405e9729077e6d813eb98a081847ccb37e1 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/sql_cacher/sql_cacher.c Log Message: ----------- sql_cacher: fix data loading from previous commit Fix backporting of previous commit and do data loading in the child_init function as the IPC framework doesn't have the ability to send RPC yet. From vladp at opensips.org Fri Jan 12 09:48:42 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Fri, 12 Jan 2018 06:48:42 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] ef81f3: Revert "sql_cacher: fix data loading from previous... Message-ID: <5a58cacaa0f0e_34d32aab9d4abc08121343@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: ef81f3be9b42bc045869afdc9e1061b933bc2dcf https://github.com/OpenSIPS/opensips/commit/ef81f3be9b42bc045869afdc9e1061b933bc2dcf Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/sql_cacher/sql_cacher.c Log Message: ----------- Revert "sql_cacher: fix data loading from previous commit" This reverts commit 7e475405e9729077e6d813eb98a081847ccb37e1. Commit: c30e59221e4916c616ea461259c3fb67463d8298 https://github.com/OpenSIPS/opensips/commit/c30e59221e4916c616ea461259c3fb67463d8298 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/sql_cacher/sql_cacher.c Log Message: ----------- Revert "sql_cacher: do data loading for full caching in the first child process" This reverts commit ca2f6633ed9d8fafa15a8a10c10471f3ac99cfaf. Compare: https://github.com/OpenSIPS/opensips/compare/7e475405e972...c30e59221e49 From vladp at opensips.org Fri Jan 12 14:32:11 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Fri, 12 Jan 2018 11:32:11 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 5b7bec: clusterer: add capabilities Message-ID: <5a590d3b3a3eb_1ce82ad45f471c0c19479@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/feature/clustering-enhancements Home: https://github.com/OpenSIPS/opensips Commit: 5b7bec8e9a4c3d1fdc199899cf0d297eea8c67e0 https://github.com/OpenSIPS/opensips/commit/5b7bec8e9a4c3d1fdc199899cf0d297eea8c67e0 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M bin_interface.c M bin_interface.h M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h M modules/dialog/dialog.c M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/drouting/drouting.c M modules/load_balancer/lb_replication.c M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c M modules/ratelimit/ratelimit_helper.c M modules/usrloc/ul_mod.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- clusterer: add capabilities Modules now register "capabilities" to clusterer. Instead of a single callback, a module now registers callbacks for each capability. Also, nodes discover the capabilities of all the other instances in the cluster. Commit: cfa7e31a7d9ce8ee9b9e89e8189dea83d99198b0 https://github.com/OpenSIPS/opensips/commit/cfa7e31a7d9ce8ee9b9e89e8189dea83d99198b0 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/api.h M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h Log Message: ----------- clusterer: clean up some leftover code Commit: 4ec8d9ba301f02f092d0781b7def9e93b1e6772a https://github.com/OpenSIPS/opensips/commit/4ec8d9ba301f02f092d0781b7def9e93b1e6772a Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix wrong capabilities for some clusterer messages Commit: 3264219307be8901fd5ed84d56af63ac67421fa3 https://github.com/OpenSIPS/opensips/commit/3264219307be8901fd5ed84d56af63ac67421fa3 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M bin_interface.c M bin_interface.h M modules/clusterer/README M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/doc/clusterer_admin.xml M modules/clusterer/node_info.h A modules/clusterer/sync.c A modules/clusterer/sync.h M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c M modules/ratelimit/ratelimit_helper.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- clusterer: add mechanism to synchronize data for a capability Implemented through separate API functions which allow a node to: * request to sync with another node * build and send BIN packets with delimited chunks of data * iterate through data chunks from the received sync packets Also, regular BIN packets received for the given capability are buffered until syncing is complete. Commit: 9bf5efc0e911bdd8933b759f7e036892b563396d https://github.com/OpenSIPS/opensips/commit/9bf5efc0e911bdd8933b759f7e036892b563396d Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/sync.c Log Message: ----------- clusterer: load info from DB at module init Commit: 00172f42eef045e2f937f0961ca198824b2cd34d https://github.com/OpenSIPS/opensips/commit/00172f42eef045e2f937f0961ca198824b2cd34d Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix node availability events Commit: 006eea599bf5bb82aee9fa43f303de68b7db7f16 https://github.com/OpenSIPS/opensips/commit/006eea599bf5bb82aee9fa43f303de68b7db7f16 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/usrloc/ul_mi.c M modules/usrloc/ul_mi.h M modules/usrloc/ul_mod.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- usrloc: sync contacts from another node in the replication cluster Contacts are synchronized at startup or through an MI command. A valid source node is established by the clusterer module. Commit: d8df847802175b43c2bed966df58062c9ecf87ed https://github.com/OpenSIPS/opensips/commit/d8df847802175b43c2bed966df58062c9ecf87ed Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix deadlock when receiving a BIN packet on disabled node Commit: 5e461c66868a52cd808a24ca620fe013c8aec4eb https://github.com/OpenSIPS/opensips/commit/5e461c66868a52cd808a24ca620fe013c8aec4eb Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: advertise links as directed in topology updates Links are now considered as bidirectional in each node's internal topology representation. This fixes some routing loops and inconsistencies during the convergence of the overall cluster topology. Commit: a24695a6447b8d0fb264687ca674f69d91d9e3dd https://github.com/OpenSIPS/opensips/commit/a24695a6447b8d0fb264687ca674f69d91d9e3dd Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: faster pinging restart Restart own pinging immediately, instead of on timer, when receiving a ping from a failed node. Commit: d6ee4c9a92cc5aa19af6ffffbaa44fe9c05d663d https://github.com/OpenSIPS/opensips/commit/d6ee4c9a92cc5aa19af6ffffbaa44fe9c05d663d Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/api.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h M modules/usrloc/dlist.c Log Message: ----------- usrloc: partition NAT pinging across the cluster when replicating contacts The node determines its pinging slice by performing an AOR hash modulo current_no_cluster_nodes. Commit: 2f7a9555ac6d1da1ebf934c2b65e2eac786e5a12 https://github.com/OpenSIPS/opensips/commit/2f7a9555ac6d1da1ebf934c2b65e2eac786e5a12 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/dialog/README M modules/dialog/dialog.c M modules/dialog/dlg_repl_profile.h M modules/dialog/doc/dialog_admin.xml M modules/drouting/drouting.c M modules/load_balancer/load_balancer.c M modules/ratelimit/README M modules/ratelimit/doc/ratelimit_admin.xml M modules/ratelimit/ratelimit.c M modules/ratelimit/ratelimit_helper.c M modules/usrloc/ul_mod.c Log Message: ----------- clusterer: always check address of received BIN messages Always check if the IP of the received BIN packets belongs to one of the nodes in the cluster. Therefore also remove the "auth_check" module parameters for the modules registered to clusterer. Commit: f06f3aa25371ff43d9004a3f87b6553fee9fc303 https://github.com/OpenSIPS/opensips/commit/f06f3aa25371ff43d9004a3f87b6553fee9fc303 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/dialog/README M modules/dialog/dialog.c M modules/dialog/dlg_handlers.c M modules/dialog/dlg_hash.c M modules/dialog/dlg_profile.c M modules/dialog/dlg_profile.h M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/dialog/doc/dialog_admin.xml Log Message: ----------- dialog: simplify replication related module parameters Replaced the dialog and profile replication module parameters (source and destination cluster ids) with a single one for each of these capabilites. Also update and improve docs regarding replication. Commit: 71c2353a6fb6b91dbf451c3930d334897509ff6f https://github.com/OpenSIPS/opensips/commit/71c2353a6fb6b91dbf451c3930d334897509ff6f Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/usrloc/README M modules/usrloc/dlist.c M modules/usrloc/doc/usrloc_admin.xml M modules/usrloc/ucontact.c M modules/usrloc/udomain.c M modules/usrloc/ul_mi.c M modules/usrloc/ul_mod.c M modules/usrloc/urecord.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- usrloc: reduce the two replication module params into a single one Commit: 1d8fb81565ec57cc6e63bb60e97714d5841c9efe https://github.com/OpenSIPS/opensips/commit/1d8fb81565ec57cc6e63bb60e97714d5841c9efe Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/ratelimit/README M modules/ratelimit/doc/ratelimit_admin.xml M modules/ratelimit/ratelimit.c M modules/ratelimit/ratelimit.h M modules/ratelimit/ratelimit_helper.c Log Message: ----------- ratelimit: reduce the two replication module params into a single one Commit: bb6e4f4d6a0589ab27c5fc646687f757308ed7d9 https://github.com/OpenSIPS/opensips/commit/bb6e4f4d6a0589ab27c5fc646687f757308ed7d9 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/load_balancer/README M modules/load_balancer/doc/load_balancer_admin.xml M modules/load_balancer/lb_data.c M modules/load_balancer/lb_replication.c M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c Log Message: ----------- load_balancer: reduce the two replication module params into a single one Commit: 86003da2d0078cd426b441b86e328e571e096838 https://github.com/OpenSIPS/opensips/commit/86003da2d0078cd426b441b86e328e571e096838 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/drouting/README M modules/drouting/doc/drouting_admin.xml M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/drouting/drouting.c Log Message: ----------- drouting: reduce the two replication module params into a single one Compare: https://github.com/OpenSIPS/opensips/compare/5b7bec8e9a4c^...86003da2d007 From razvan at opensips.org Tue Jan 16 09:24:22 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 16 Jan 2018 06:24:22 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 8c5651: net_tcp: remove fd from reactor before cleaning up Message-ID: <5a5e0b16e091d_48f42b09d222dc049616a@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 8c5651be24edfc3aef8478089fb7c6495638b5a9 https://github.com/OpenSIPS/opensips/commit/8c5651be24edfc3aef8478089fb7c6495638b5a9 Author: Razvan Crainea Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M net/net_tcp.c Log Message: ----------- net_tcp: remove fd from reactor before cleaning up From razvan at opensips.org Tue Jan 16 09:31:28 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 16 Jan 2018 06:31:28 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 4657dd: net_tcp: remove fd from reactor before cleaning up Message-ID: <5a5e0cc0916b4_2be32ade4d0e9c047179a@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 4657dd58d4e73c97196cc8142b5e8d0590577135 https://github.com/OpenSIPS/opensips/commit/4657dd58d4e73c97196cc8142b5e8d0590577135 Author: Razvan Crainea Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M net/net_tcp.c Log Message: ----------- net_tcp: remove fd from reactor before cleaning up (cherry picked from commit 8c5651be24edfc3aef8478089fb7c6495638b5a9) From razvan at opensips.org Tue Jan 16 09:32:16 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 16 Jan 2018 06:32:16 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 001936: net_tcp: remove fd from reactor before cleaning up Message-ID: <5a5e0cf0e3b7_24642b26a4455c181739b@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 001936624a72a39ded04e524995f1c4fdfba8f66 https://github.com/OpenSIPS/opensips/commit/001936624a72a39ded04e524995f1c4fdfba8f66 Author: Razvan Crainea Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M net/net_tcp.c Log Message: ----------- net_tcp: remove fd from reactor before cleaning up (cherry picked from commit 8c5651be24edfc3aef8478089fb7c6495638b5a9) From bogdan at opensips.org Tue Jan 16 11:46:03 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 16 Jan 2018 08:46:03 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 50735b: Fix RURI len calculation after removing param. Message-ID: <5a5e2c4bcd2df_27fb2acb0ede9c08654bd@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 50735b93508d77b4e44223450f60ae43082b14bb https://github.com/OpenSIPS/opensips/commit/50735b93508d77b4e44223450f60ae43082b14bb Author: Bogdan-Andrei Iancu Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M modules/uri/checks.c Log Message: ----------- Fix RURI len calculation after removing param. Reported by Denis Lemire From bogdan at opensips.org Tue Jan 16 11:46:48 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 16 Jan 2018 08:46:48 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 56571b: Fix RURI len calculation after removing param. Message-ID: <5a5e2c78b0a55_65182af9cca85c00282d@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 56571b2e03606867fddbd8b16ae1d14ff7bb8cb9 https://github.com/OpenSIPS/opensips/commit/56571b2e03606867fddbd8b16ae1d14ff7bb8cb9 Author: Bogdan-Andrei Iancu Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M modules/uri/checks.c Log Message: ----------- Fix RURI len calculation after removing param. Reported by Denis Lemire (cherry picked from commit 50735b93508d77b4e44223450f60ae43082b14bb) From bogdan at opensips.org Tue Jan 16 11:47:53 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 16 Jan 2018 08:47:53 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] c52714: Fix RURI len calculation after removing param. Message-ID: <5a5e2cb9855f6_54b52abc737c5c044231f@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: c527146cd0c30bdc6fea3f4b34a62b4b61e9f5d6 https://github.com/OpenSIPS/opensips/commit/c527146cd0c30bdc6fea3f4b34a62b4b61e9f5d6 Author: Bogdan-Andrei Iancu Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M modules/uri/checks.c Log Message: ----------- Fix RURI len calculation after removing param. Reported by Denis Lemire (cherry picked from commit 50735b93508d77b4e44223450f60ae43082b14bb) From basit.engg at gmail.com Tue Jan 16 11:58:05 2018 From: basit.engg at gmail.com (Abdul Basit) Date: Tue, 16 Jan 2018 21:58:05 +0500 Subject: [OpenSIPS-Devel] Send LUA logs via HEP to Homer server Message-ID: Hi team, I am processing incoming INVITE events in my lua script. To print the logs with kamailio syslog, i am using sr.log("info", "-- Collecting data from kamailio -- ") I am searching for a way to send selective logs for an incoming call from lua script through HEP3 towards Homer server. How can I make it work? What utility or library is helpful. *PS:* captagent is configured on the same server for SIP traces. I know this should go to kamailio team, but how opensips will implement this lua integration with HEP. -- regards, abdul basit -------------- next part -------------- An HTML attachment was scrubbed... URL: From razvan at opensips.org Tue Jan 16 12:08:35 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 16 Jan 2018 09:08:35 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] d33253: compression: fix memory leak due to whitelists Message-ID: <5a5e3193681f8_27082b16937afc045441b@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: d33253b6bdf4561f2a978fc093992d72a87773fb https://github.com/OpenSIPS/opensips/commit/d33253b6bdf4561f2a978fc093992d72a87773fb Author: Razvan Crainea Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M modules/compression/compression.c Log Message: ----------- compression: fix memory leak due to whitelists Thanks go to Nick Altmann for reporting this Closes #1252 From razvan at opensips.org Tue Jan 16 12:09:19 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 16 Jan 2018 09:09:19 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 96452b: compression: fix memory leak due to whitelists Message-ID: <5a5e31bf7760e_249f2b1706cbfc086511e@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 96452b15ad14b4fa6e1a45d6633c9602ceca2f6f https://github.com/OpenSIPS/opensips/commit/96452b15ad14b4fa6e1a45d6633c9602ceca2f6f Author: Razvan Crainea Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M modules/compression/compression.c Log Message: ----------- compression: fix memory leak due to whitelists Thanks go to Nick Altmann for reporting this Closes #1252 (cherry picked from commit d33253b6bdf4561f2a978fc093992d72a87773fb) From razvan at opensips.org Tue Jan 16 12:09:39 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 16 Jan 2018 09:09:39 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 7202f1: compression: fix memory leak due to whitelists Message-ID: <5a5e31d35718d_76d22b06c3c61c14189a8@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 7202f18efafa3071b8bc3139cdc0518126f6d9f8 https://github.com/OpenSIPS/opensips/commit/7202f18efafa3071b8bc3139cdc0518126f6d9f8 Author: Razvan Crainea Date: 2018-01-16 (Tue, 16 Jan 2018) Changed paths: M modules/compression/compression.c Log Message: ----------- compression: fix memory leak due to whitelists Thanks go to Nick Altmann for reporting this Closes #1252 (cherry picked from commit d33253b6bdf4561f2a978fc093992d72a87773fb) From basit.engg at gmail.com Tue Jan 16 13:16:49 2018 From: basit.engg at gmail.com (Abdul Basit) Date: Tue, 16 Jan 2018 23:16:49 +0500 Subject: [OpenSIPS-Devel] [OpenSIPS-Users] Send LUA logs via HEP to Homer server In-Reply-To: <4420501516126122@web43j.yandex.ru> References: <4420501516126122@web43j.yandex.ru> Message-ID: Thank you for prompt reply. I will look into it. -- regards, abdul basit On 16 January 2018 at 23:08, Serge S. Yuriev wrote: > Hi > > I believe you should look at Pastash from Homer authors > > -- > Wbr, Serge via mobile > > 16.01.2018, 19:59, "Abdul Basit" : > > Hi team, > > I am processing incoming INVITE events in my lua script. > To print the logs with kamailio syslog, i am using > > sr.log("info", "-- Collecting data from kamailio -- ") > > I am searching for a way to send selective logs for an incoming call from > lua script through HEP3 towards Homer server. > > How can I make it work? What utility or library is helpful. > > *PS:* captagent is configured on the same server for SIP traces. > > I know this should go to kamailio team, but how opensips will implement > this lua integration with HEP. > > -- > regards, > > abdul basit > > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > _______________________________________________ > Users mailing list > Users at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liviu at opensips.org Wed Jan 17 04:16:51 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 17 Jan 2018 11:16:51 +0200 Subject: [OpenSIPS-Devel] [BLOG][TECHNICAL] How To Script Advanced FreeSWITCH Integrations with OpenSIPS 2.4 Message-ID: <754b566f-f7d7-aadf-0676-7e71764e1c4f@opensips.org> Hi all, In light of the recent FreeSWITCH integration enhancements for OpenSIPS 2.4 LTS, I have written a blog piece [1] explaining what they are and what we can build with them. Enjoy! Best regards, [1]: https://blog.opensips.org/2018/01/17/how-to-script-advanced-freeswitch-integrations-with-opensips-2-4/ -- Liviu Chircu OpenSIPS Developer http://www.opensips-solutions.com From liviu at opensips.org Wed Jan 17 04:53:25 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 17 Jan 2018 01:53:25 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 8d139f: usrloc API: Make get_urecord() more robust Message-ID: <5a5f1d15b9f82_33b72ac2982b5c0c10031@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 8d139f3756014b14b2f604cc24371044456f92ce https://github.com/OpenSIPS/opensips/commit/8d139f3756014b14b2f604cc24371044456f92ce Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/udomain.c Log Message: ----------- usrloc API: Make get_urecord() more robust Zeroize the output pointer if record is not found. (cherry picked from commit d4967201bf4243646eef0a92be1c37dff0aba29d) Commit: 99432b1a9af7874263884371a1c02caa694597d9 https://github.com/OpenSIPS/opensips/commit/99432b1a9af7874263884371a1c02caa694597d9 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/dlist.c Log Message: ----------- usrloc: Fix locking for contact_id-based deletion The delete_ucontact_from_id(), get_ucontact_from_id() pair of functions were masking possible code execution paths which would lead to unsafe memory access. This, in turn, would cause the ping_checker_timer() job of nathelper to occasionally crash and burn. Reported by solo at astercc.org. (cherry picked from commit 18a93c89aa1c32498689a6f6dd09911272c18896) Commit: 520b4d4d3ad07a6b99009b77d880f7c6a3a7c79d https://github.com/OpenSIPS/opensips/commit/520b4d4d3ad07a6b99009b77d880f7c6a3a7c79d Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M ut.h Log Message: ----------- Fix int2str() function signature Although implemented to be able to print 64-bit integers, int2str() downcasted all of its parameters to an "unsigned long" type, thus breaking behavior on 32-bit architectures. (cherry picked from commit a5d633924fc78cd4d9999a727ab529cb1bf50405) Commit: 3894087d52a991e9e7b5228beb559f89824fcd65 https://github.com/OpenSIPS/opensips/commit/3894087d52a991e9e7b5228beb559f89824fcd65 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M ut.h Log Message: ----------- Add str2int64() parsing function (cherry picked from commit e9be01680557a030c5fd6346299f5db663467018) Commit: f47d185e0148432dbe639c382cefee9427b5d76b https://github.com/OpenSIPS/opensips/commit/f47d185e0148432dbe639c382cefee9427b5d76b Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/udomain.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h Log Message: ----------- usrloc: Add some useful API functions * get_ucontact_from_id() - fetch both ct and rec from an id * next_contact_id() - fetch and advance the current ct counter (cherry picked from commit 15a5067b2d493c273842b723199d42c695a1b93f) Commit: b2554c3c3a75f0ce8ef67c932e9dfd978eeff524 https://github.com/OpenSIPS/opensips/commit/b2554c3c3a75f0ce8ef67c932e9dfd978eeff524 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/urecord.c Log Message: ----------- usrloc: Allow forced IDs during contact inserts (cherry picked from commit 7d4894943ad522406d1f2cb9231821c91f423562) Commit: 3a079a756aafbf1cf306ff99d7cb8b9ad8d11f14 https://github.com/OpenSIPS/opensips/commit/3a079a756aafbf1cf306ff99d7cb8b9ad8d11f14 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/udomain.c M modules/usrloc/urecord.c M modules/usrloc/urecord.h Log Message: ----------- usrloc: Add urecord reference counting mechanism This mechanism is required by the mid-registrar, which needs to "reserve" contact IDs while the main registrar decides upon them. This means that a blank urecord structure must be kept alive during this process. By reference counting the blank urecord structures, we prevent them from being cleared by the timer before the outgoing registrations get a chance to receive a reply. (cherry picked from commit ad274fad9a6fd072737d45230a0c297d0e4b9329) Commit: 512acb13b284a542c909bbeab25d7497587418f1 https://github.com/OpenSIPS/opensips/commit/512acb13b284a542c909bbeab25d7497587418f1 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix possible crash in mirror mode (cherry picked from commit 8c46ab3cad07029a1e78fdb1d57300247c00c4eb) Commit: 1c0ea020746d1f010b7d224b216d97ce6cab6cf6 https://github.com/OpenSIPS/opensips/commit/1c0ea020746d1f010b7d224b216d97ce6cab6cf6 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/lookup.c M modules/mid_registrar/lookup.h M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix NAT issues in "contact" insertion mode This patch completely reworks the saving/matching logic with regards to the SIP contacts generated by the mid-registrar. It is only relevant to working modes "0" (mirror) and "1" (contact throttling). The former logic (encoding the requests's Contact as a URI parameter of the outgoing contact) was somewhat stateless, as it would forward requests to the mid-registrar's contacts directly to their actual Contact URIs (UA side). When NAT comes into play, this no longer works well. Fortunately, the user location already handles this problem. Thus, we change the mid-registrar to advertise contact IDs instead of the device's contact. As requests arrive for the contact IDs, we are easily able to look up their corresponding user location AoR, contact, along with any other useful information for NAT traversal. (cherry picked from commit 7e190a8b1cdcdfe66afe9eea4b0be4c75f275a89) Commit: 695e7d4309021c489b53d5c780af88d75c94963c https://github.com/OpenSIPS/opensips/commit/695e7d4309021c489b53d5c780af88d75c94963c Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c M modules/mid_registrar/ulcb.c Log Message: ----------- mid_registrar: Fix CSeq handling for De-REGISTERs Keep track of outgoing CSeq values and use this value during self-generated de-registrations, rather than using the tm's built-in default CSeq value of "13". (cherry picked from commit 016da2f7f31b764da5dcce1d4189b8f9ef77b5cb) Commit: a8b63f5a7c36d3b4bf2de4a3004de07a507c7111 https://github.com/OpenSIPS/opensips/commit/a8b63f5a7c36d3b4bf2de4a3004de07a507c7111 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c M modules/usrloc/urecord.c Log Message: ----------- usrloc: Fix bad comparison Also complete commit d3790e6c Reported by Răzvan Crainea Fixes Coverity CID #180087 Fixes Coverity CID #180093 (cherry picked from commit 0124344f9733a123753435367525ec9f56e06f1b) Commit: 16bd2dd273d93dddf948cc6eb5fd5f609cbb8291 https://github.com/OpenSIPS/opensips/commit/16bd2dd273d93dddf948cc6eb5fd5f609cbb8291 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Restore reply contact mangling The contact rework commits have rendered the restore_reply_contacts() function obsolete, thus the contact headers were propagating upstream unchanged. We now rebuild the reply contact set in all modes by using build_contacts() Thanks to Răzvan Crainea for spotting the issue (cherry picked from commit f298587d6277d28e01ab26f64655a8b5d1bcf100) Commit: 478637e0e8f43f308de1395efc820d19fd65263c https://github.com/OpenSIPS/opensips/commit/478637e0e8f43f308de1395efc820d19fd65263c Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix a CSeq bug in mode == 1 Contact updates would not also update the last cseq value. This, in turn, would lead to SIP-wise incorrect self-generated de-registrations. (cherry picked from commit 7bcf0323369587ae0f153de1f7a87c7f85aefd4d) Commit: d3bcf482bb67d0b787d7ebcf4050f7eb0eca1573 https://github.com/OpenSIPS/opensips/commit/d3bcf482bb67d0b787d7ebcf4050f7eb0eca1573 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Restore "default_expires" and "max_expires" These registrar modparams were left unmaintained / ignored during development. However, they are still valid and completely separate from "outgoing_expires". The former two params control ingress expirations, while the latter one controls egress expirations. To match the newly introduced defaults, we also increase the default "outgoing_expires" from 600s to 3600s. (cherry picked from commit 67c31603e2215bca6211bcaaa4b0682d9325fa18) Commit: 2adf24ff2fffa96cc237d332b48d5acead1cb7bb https://github.com/OpenSIPS/opensips/commit/2adf24ff2fffa96cc237d332b48d5acead1cb7bb Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/README M modules/mid_registrar/doc/mid_registrar_admin.xml Log Message: ----------- mid_registrar: Update docs (cherry picked from commit fee1ccb72bc62823259dedfaccd5a262c8dbd1e3) Commit: 59f98e968945cec3b8220c4100145d1e0a27f07b https://github.com/OpenSIPS/opensips/commit/59f98e968945cec3b8220c4100145d1e0a27f07b Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/lookup.c Log Message: ----------- mid_registrar: Never parallel fork in "mode == 1" This patch fixes a subtle bug where a "mode == 1" mid-registrar would parallel fork to a random number of contacts by walking the remaining "->next" values of the currently looked up contact. (cherry picked from commit 02b114902dc91ea3a1f2dfc36d00658150cb9946) Commit: 370705422853538bcfef30d28f283a3b4ef7ba5a https://github.com/OpenSIPS/opensips/commit/370705422853538bcfef30d28f283a3b4ef7ba5a Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M lib/reg/ci.c M lib/reg/ci.h Log Message: ----------- Add a "struct ucontact_info" logging function (cherry picked from commit a2dd10a49b2557c1343cd87c364a1144e9ea7118) Commit: dbfc155d9cbd60a0ab72e49a9310cc3a25fdbda6 https://github.com/OpenSIPS/opensips/commit/dbfc155d9cbd60a0ab72e49a9310cc3a25fdbda6 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/Makefile M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix a PKG memory leak Although the TMCB_RESPONSE_IN callback provides a reference to the initial request during reply processing, this sip_msg must not be parsed (i.e. passed to parse_headers()), otherwise we leak PKG memory, since parsing is PKG-based, while the request buffer is copied in SHM. The current workaround for mid_registrar is to immediately duplicate all contact-related data we could possibly need, should the contact successfully register on the downstream registrar. This copying takes place during request processing. Once the reply arrives, we only make use of this info in order to store the contact in usrloc, and barely even use the "req" sip_msg provided by tm. (cherry picked from commit 86628e6d418ed72d159ebb1b055b86daca0c4f6e) Commit: f48a0cc906dd73ae13d07f21d0373332b48c2ce0 https://github.com/OpenSIPS/opensips/commit/f48a0cc906dd73ae13d07f21d0373332b48c2ce0 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix unused variable (cherry picked from commit 3acaf2e92a74cd8b13539eb75cf45a5edcc352ae) Commit: 6894b3ce3acd5fb59a054824f81a6948be4f2d86 https://github.com/OpenSIPS/opensips/commit/6894b3ce3acd5fb59a054824f81a6948be4f2d86 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Improve the advertised socket logic Instead of blindly advertising the first UDP interface in the self-generated, outgoing Contact URIs, the mid_registrar is now aware of the next SIP hop and properly advertises the actual sending interface which will be used. This includes any forced send socket logic at script level. (cherry picked from commit 7bafce982b1c7a2416025fed6b04b4d9dffc5b0a) Commit: 66a0cd5d2cbcc0a443ade31c76838dd8f9d3248d https://github.com/OpenSIPS/opensips/commit/66a0cd5d2cbcc0a443ade31c76838dd8f9d3248d Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix unsafe strdup operation (cherry picked from commit 14baedfbd23cd513347d46f3a4412e3e3aad1adf) Commit: b00e6ffbe49326ac63a85138bcb995a42d364560 https://github.com/OpenSIPS/opensips/commit/b00e6ffbe49326ac63a85138bcb995a42d364560 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Fix an AoR throttling bug Do not apply min/max "expires" module limitations when computing the main registrar's contact expiration value. (cherry picked from commit 0d1bc44237b8046b7ea0fb34c9806806c913de2d) Compare: https://github.com/OpenSIPS/opensips/compare/96452b15ad14...b00e6ffbe493 From liviu at opensips.org Wed Jan 17 05:48:03 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 17 Jan 2018 02:48:03 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 95ab8c: xlog: Fix a series of issues Message-ID: <5a5f29e3d1241_2af62b0d03361c04101280@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 95ab8c05f7f34d83267fc8950367d98ac8e9e3b9 https://github.com/OpenSIPS/opensips/commit/95ab8c05f7f34d83267fc8950367d98ac8e9e3b9 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M action.c M xlog.c Log Message: ----------- xlog: Fix a series of issues * properly report xlog() success/failure at script level * differentiate between xlog errors (-1) and HEP errors (-2) * do not cancel logging because of HEP errors * remove bogus error log * hint at 'xlog_buf_size' if the print string is too large From liviu at opensips.org Wed Jan 17 05:49:50 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 17 Jan 2018 02:49:50 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 34da7a: xlog: Fix a series of issues Message-ID: <5a5f2a4e177c7_72172b151f92bbfc413eb@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 34da7a7738e5385fc2eb1486e26958634e0f2d16 https://github.com/OpenSIPS/opensips/commit/34da7a7738e5385fc2eb1486e26958634e0f2d16 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M action.c M xlog.c Log Message: ----------- xlog: Fix a series of issues * properly report xlog() success/failure at script level * differentiate between xlog errors (-1) and HEP errors (-2) * do not cancel logging because of HEP errors * remove bogus error log * hint at 'xlog_buf_size' if the print string is too large (cherry picked from commit 95ab8c05f7f34d83267fc8950367d98ac8e9e3b9) From vladp at opensips.org Wed Jan 17 07:07:25 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Wed, 17 Jan 2018 04:07:25 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 1134b2: clusterer: fix mem leak when sending BIN packets f... Message-ID: <5a5f3c7d57258_2db62b16eb9cdc188259c@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 1134b2e37c6c51b667c2d4d5af3a7818c1a08df6 https://github.com/OpenSIPS/opensips/commit/1134b2e37c6c51b667c2d4d5af3a7818c1a08df6 Author: rvlad-patrascu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix mem leak when sending BIN packets from script Reported by Gohar Ahmed in #1254 From razvan at opensips.org Wed Jan 17 08:53:10 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 17 Jan 2018 05:53:10 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 151c1c: rtpengine: handle POLLHUP while draining Message-ID: <5a5f55462fe_26642ab57fdf1c04302ca@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 151c1cf0e7b0b600a7ce2ec2807738aec214b607 https://github.com/OpenSIPS/opensips/commit/151c1cf0e7b0b600a7ce2ec2807738aec214b607 Author: Razvan Crainea Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/rtpengine/rtpengine.c Log Message: ----------- rtpengine: handle POLLHUP while draining Thanks go to Pete Kelly for reporting this From razvan at opensips.org Wed Jan 17 08:53:32 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 17 Jan 2018 05:53:32 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 907743: rtpengine: handle POLLHUP while draining Message-ID: <5a5f555c770a5_3c442aba27a8bc0c289c2@hookshot-fe-b0febf1.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 90774364bc2e709cb5ee3084ab7ddd1b0355ee59 https://github.com/OpenSIPS/opensips/commit/90774364bc2e709cb5ee3084ab7ddd1b0355ee59 Author: Razvan Crainea Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/rtpengine/rtpengine.c Log Message: ----------- rtpengine: handle POLLHUP while draining Thanks go to Pete Kelly for reporting this (cherry picked from commit 151c1cf0e7b0b600a7ce2ec2807738aec214b607) From razvan at opensips.org Wed Jan 17 08:56:08 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 17 Jan 2018 05:56:08 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 211671: rtpengine: handle POLLHUP while draining Message-ID: <5a5f55f8c2165_26c42abbc4ce1c1086998@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 211671cb5f0a551577de3d73cf5a3f6e3f1f4153 https://github.com/OpenSIPS/opensips/commit/211671cb5f0a551577de3d73cf5a3f6e3f1f4153 Author: Razvan Crainea Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/rtpengine/rtpengine.c Log Message: ----------- rtpengine: handle POLLHUP while draining Thanks go to Pete Kelly for reporting this (cherry picked from commit 151c1cf0e7b0b600a7ce2ec2807738aec214b607) From razvan at opensips.org Wed Jan 17 09:30:31 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 17 Jan 2018 06:30:31 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 24507b: Bump version to 2.2.6 Message-ID: <5a5f5e07bb630_2be32ade4d0e9c047926d@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 24507b1ce9dd828cbdefbe935e3334b238b852b0 https://github.com/OpenSIPS/opensips/commit/24507b1ce9dd828cbdefbe935e3334b238b852b0 Author: Razvan Crainea Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M ChangeLog M Makefile.defs M packaging/debian/changelog M packaging/freebsd/Makefile R packaging/gentoo/opensips-2.2.5.ebuild A packaging/gentoo/opensips-2.2.6.ebuild M packaging/netbsd/Makefile M packaging/openbsd/Makefile M packaging/redhat_fedora/opensips.spec M packaging/solaris/base-pkginfo M packaging/solaris/berkeley-pkginfo M packaging/solaris/carrierroute-pkginfo M packaging/solaris/identity-pkginfo M packaging/solaris/ldap-pkginfo M packaging/solaris/mmgeoip-pkginfo M packaging/solaris/mysql-pkginfo M packaging/solaris/perl-pkginfo M packaging/solaris/pgsql-pkginfo M packaging/solaris/regex-pkginfo M packaging/solaris/snmp-pkginfo M packaging/solaris/tls-pkginfo M packaging/solaris/xmlrpc-pkginfo Log Message: ----------- Bump version to 2.2.6 From razvan at opensips.org Wed Jan 17 09:30:33 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 17 Jan 2018 06:30:33 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] fdd5c0: Bump version to 2.3.3 Message-ID: <5a5f5e0971c94_73772b25d9f29c0012068@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: fdd5c0ba5a36e771da60179697b4336f5f910c28 https://github.com/OpenSIPS/opensips/commit/fdd5c0ba5a36e771da60179697b4336f5f910c28 Author: Razvan Crainea Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M ChangeLog M Makefile.defs M packaging/debian/changelog R packaging/gentoo/opensips-2.3.2.ebuild A packaging/gentoo/opensips-2.3.3.ebuild M packaging/redhat_fedora/opensips.spec M packaging/solaris/base-pkginfo M packaging/solaris/berkeley-pkginfo M packaging/solaris/carrierroute-pkginfo M packaging/solaris/identity-pkginfo M packaging/solaris/ldap-pkginfo M packaging/solaris/mmgeoip-pkginfo M packaging/solaris/mysql-pkginfo M packaging/solaris/perl-pkginfo M packaging/solaris/pgsql-pkginfo M packaging/solaris/regex-pkginfo M packaging/solaris/snmp-pkginfo M packaging/solaris/tls-pkginfo M packaging/solaris/xmlrpc-pkginfo Log Message: ----------- Bump version to 2.3.3 From razvan at opensips.org Wed Jan 17 09:30:49 2018 From: razvan at opensips.org (razvancrainea) Date: Wed, 17 Jan 2018 06:30:49 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] Message-ID: <5a5f5e1960be5_23ba2ac40bce3c1491721@hookshot-fe-5a11256.cp1-iad.github.net.mail> Branch: refs/tags/2.2.6 Home: https://github.com/OpenSIPS/opensips From razvan at opensips.org Wed Jan 17 09:31:02 2018 From: razvan at opensips.org (razvancrainea) Date: Wed, 17 Jan 2018 06:31:02 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] Message-ID: <5a5f5e267ac80_55c32aec76fa7c14717b9@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/tags/2.3.3 Home: https://github.com/OpenSIPS/opensips From razvan at opensips.org Wed Jan 17 09:58:40 2018 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Wed, 17 Jan 2018 16:58:40 +0200 Subject: [OpenSIPS-Devel] [REALEASE] OpenSIPS 2.2.6 and 2.3.3 minor releases In-Reply-To: <4d9a1408-829b-f8d7-bd19-e40b4d973ebe@opensips.org> References: <4d9a1408-829b-f8d7-bd19-e40b4d973ebe@opensips.org> Message-ID: Hello again! I am happy to announce you that the two new OpenSIPS minor release 2.2.6 and 2.3.3 are now out! After several months of spinning OpenSIPS in production environments we managed to track down and fix various bugs. You can find a full list of changes here: * OpenSIPS 2.3.3 ChangeLog: http://opensips.org/pub/opensips/2.3.3/ChangeLog * OpenSIPS 2.2.6 ChangeLog: http://opensips.org/pub/opensips/2.2.6/ChangeLog All of these were made possible by with the OpenSIPS community's help, for which we would like to thank you very much! PS: I've just noticed a typo in my previous email related to the release date - to clarify, the release was scheduled for today, 17th of January 2018. Luckyly we've managed to fix all the bugs we had on our list for this release. Happy Hacking! Răzvan Crainea OpenSIPS Developer www.opensips-solutions.com On 01/11/2018 02:51 PM, Răzvan Crainea wrote: > Hello, Everyone! > > A large number of bug fixes have been gathered since the last two > stable versions were releasesed, so we decided it's time to let go to > two new ones: OpenSIPS 2.2.6 and 2.3.3. > > The new releases are due next week, on Wednesday, January 25th 2018. > > If you have any pending GitHub issues/mailing list bug threads > concerning OpenSIPS 2.2+ which are yet to be resolved, this would be a > good time to bump them! > > Thank you for your contributions to this project! > > Best regards, > From liviu at opensips.org Wed Jan 17 11:57:46 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 17 Jan 2018 08:57:46 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] e5b5cf: freeswitch_scripting: Add table to opensipsdbctl i... Message-ID: <5a5f808ad8d6b_545b2afa09f15c103803a@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: e5b5cfc28e39c19e2a1cf1a5e13c1c8ac798a84f https://github.com/OpenSIPS/opensips/commit/e5b5cfc28e39c19e2a1cf1a5e13c1c8ac798a84f Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M scripts/db_berkeley/opensips/freeswitch M scripts/db_berkeley/opensips/version M scripts/dbtext/opensips/freeswitch M scripts/dbtext/opensips/version M scripts/opensipsdbctl.base Log Message: ----------- freeswitch_scripting: Add table to opensipsdbctl installer Also rebuild the DB schema. From liviu at opensips.org Wed Jan 17 12:03:09 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 17 Jan 2018 09:03:09 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 597daa: usrloc: Add generic, contact-level key-value stora... Message-ID: <5a5f81cdcf7c9_3afa2af9844b3c0c84424@hookshot-fe-b0febf1.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: 597daa366613c44a58b61df5ebf4ebd7adfb97a4 https://github.com/OpenSIPS/opensips/commit/597daa366613c44a58b61df5ebf4ebd7adfb97a4 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h M ut.h Log Message: ----------- usrloc: Add generic, contact-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc contact. Commit: b2ac38d70bcf837db0fed2891c1c1fe0999febbb https://github.com/OpenSIPS/opensips/commit/b2ac38d70bcf837db0fed2891c1c1fe0999febbb Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: A modules/usrloc/kv_store.c A modules/usrloc/kv_store.h M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h Log Message: ----------- usrloc: Add generic, record-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc record / AOR. Commit: 1fc88e8bae8ddbce6f559b6ae38c6e1a74216056 https://github.com/OpenSIPS/opensips/commit/1fc88e8bae8ddbce6f559b6ae38c6e1a74216056 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/kv_store.c Log Message: ----------- usrloc: K/V store - use map_find() instead of map_get() Commit: cfa7be5672e0e325b8919400d947242dc801e63d https://github.com/OpenSIPS/opensips/commit/cfa7be5672e0e325b8919400d947242dc801e63d Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c A modules/mid_registrar/ul_storage.c A modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c M modules/usrloc/kv_store.c Log Message: ----------- mid_registrar: Refactor the AoR throttling implementation We now make use of usrloc's newly added k/v storage functions in order to store/retrieve the module data into/from each record. Commit: e94d90d1653015f209dd19d86713fabc731a4f68 https://github.com/OpenSIPS/opensips/commit/e94d90d1653015f209dd19d86713fabc731a4f68 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/fraud_detection/fraud_detection.c M modules/usrloc/kv_store.c M ut.h Log Message: ----------- Refactor shm_str_resize() into shm_str_extend() This hints better at what the function actually does (i.e. it will not shrink your buffers) Commit: 7f71f3ff9032dcd404c775a6bd5c02c6cb012eff https://github.com/OpenSIPS/opensips/commit/7f71f3ff9032dcd404c775a6bd5c02c6cb012eff Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c M modules/mid_registrar/ul_storage.c M modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c Log Message: ----------- mid_registrar: Refactor contact mirroring/throttling We now make use of usrloc's newly added k/v storage functions in order to store/retrieve the module data into/from each contact. Commit: 6a86d54434813164330b55d8974658dc5442b959 https://github.com/OpenSIPS/opensips/commit/6a86d54434813164330b55d8974658dc5442b959 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c M modules/mid_registrar/ulcb.c M modules/mid_registrar/ulcb.h M modules/pua_bla/pua_bla.c M modules/pua_bla/registrar_cb.c M modules/pua_bla/registrar_cb.h M modules/pua_usrloc/pua_usrloc.c M modules/pua_usrloc/pua_usrloc.h M modules/pua_usrloc/ul_publish.c M modules/snmpstats/interprocess_buffer.c M modules/snmpstats/interprocess_buffer.h M modules/snmpstats/openserSIPRegUserTable.c M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/ul_callback.c M modules/usrloc/ul_callback.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h Log Message: ----------- usrloc: Simplify the callback API The opaque buffer extension for the API (commit b0241c1318) is no longer needed, as the K/V usrloc extension completely replaces it. This commit also refactors the usrloc callback types as "ul_cb_type", thus making them easier to pick up / work with. Compare: https://github.com/OpenSIPS/opensips/compare/a85dbaf65087...6a86d5443481 From liviu at opensips.org Thu Jan 18 06:36:49 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 18 Jan 2018 03:36:49 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] daea43: mid_registrar: Fix a bad startup check Message-ID: <5a6086d1dd760_77ac2aad4e137c181128f@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: daea4348e8e3ae1d2d26b73597b9529fab745f57 https://github.com/OpenSIPS/opensips/commit/daea4348e8e3ae1d2d26b73597b9529fab745f57 Author: Liviu Chircu Date: 2018-01-18 (Thu, 18 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c Log Message: ----------- mid_registrar: Fix a bad startup check From liviu at opensips.org Thu Jan 18 08:50:50 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 18 Jan 2018 05:50:50 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 8d3daa: usrloc: Fix broken contact_id generation Message-ID: <5a60a63a22044_6fa02ab642f55c0897542@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 8d3daae21d32c703b883d3f665a5c37fe3c17e20 https://github.com/OpenSIPS/opensips/commit/8d3daae21d32c703b883d3f665a5c37fe3c17e20 Author: Liviu Chircu Date: 2018-01-18 (Thu, 18 Jan 2018) Changed paths: M lib/reg/ci.c M modules/usrloc/ureplication.c Log Message: ----------- usrloc: Fix broken contact_id generation Commit b2554c3c3a actually broke contact_id generation during replicated usrloc contact inserts. We now ensure all registrar insert_ucontact() calling code passes on a zeroed "ucontact_info_t" struct, such that new contact_ids get properly generated with every call. Reported by @sekil on IRC From liviu at opensips.org Thu Jan 18 11:09:24 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 18 Jan 2018 08:09:24 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 95f81b: usrloc: Fix broken contact_id generation Message-ID: <5a60c6b410b49_33752b0775a0dc1c4555f@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 95f81bb8768b6fb5b660352960c72cf93ad96088 https://github.com/OpenSIPS/opensips/commit/95f81bb8768b6fb5b660352960c72cf93ad96088 Author: Liviu Chircu Date: 2018-01-18 (Thu, 18 Jan 2018) Changed paths: M lib/reg/ci.c M modules/usrloc/ureplication.c Log Message: ----------- usrloc: Fix broken contact_id generation Commit b2554c3c3a actually broke contact_id generation during replicated usrloc contact inserts. We now ensure all registrar insert_ucontact() calling code passes on a zeroed "ucontact_info_t" struct, such that new contact_ids get properly generated with every call. Reported by @sekil on IRC (cherry picked from commit 8d3daae21d32c703b883d3f665a5c37fe3c17e20) From razvan at opensips.org Thu Jan 18 11:24:48 2018 From: razvan at opensips.org (Razvan Crainea) Date: Thu, 18 Jan 2018 08:24:48 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 73eb19: update ChangeLog for 2.3.3 Message-ID: <5a60ca50e1f33_4b992b0e76875c084181c@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 73eb19c1d9f87a083f9d230ffd23ff60cb7302c4 https://github.com/OpenSIPS/opensips/commit/73eb19c1d9f87a083f9d230ffd23ff60cb7302c4 Author: Razvan Crainea Date: 2018-01-18 (Thu, 18 Jan 2018) Changed paths: M ChangeLog Log Message: ----------- update ChangeLog for 2.3.3 From razvan at opensips.org Thu Jan 18 11:26:17 2018 From: razvan at opensips.org (razvancrainea) Date: Thu, 18 Jan 2018 08:26:17 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] Message-ID: <5a60caa961eaf_3b5c2af4e7b7bc0c123594@hookshot-fe-b0febf1.cp1-iad.github.net.mail> Branch: refs/tags/2.3.3 Home: https://github.com/OpenSIPS/opensips From razvan at opensips.org Thu Jan 18 11:27:45 2018 From: razvan at opensips.org (razvancrainea) Date: Thu, 18 Jan 2018 08:27:45 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] Message-ID: <5a60cb0176f08_364c2aeeaca8bc0c103226@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/tags/2.3.3 Home: https://github.com/OpenSIPS/opensips From liviu at opensips.org Fri Jan 19 13:14:15 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 19 Jan 2018 10:14:15 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] d2527e: Improve the cJSON library Message-ID: <5a623577d361f_2dc72ac54be27c101359f3@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: d2527e88d5eefcf8f6ab8ae07b414119617de8ec https://github.com/OpenSIPS/opensips/commit/d2527e88d5eefcf8f6ab8ae07b414119617de8ec Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M lib/cJSON.c M lib/cJSON.h Log Message: ----------- Improve the cJSON library * add a str-based appending function * avoid defining yet another pair of malloc/free funcs * fix the resetted allocation functions from glibc to PKG Commit: bcae687fdf84da1c5adc96db3746bf03ac8af128 https://github.com/OpenSIPS/opensips/commit/bcae687fdf84da1c5adc96db3746bf03ac8af128 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M str.h Log Message: ----------- str.h: Add a quick str initialization function Commit: 90828299253da859617ca374ca54c1b37a9e4db8 https://github.com/OpenSIPS/opensips/commit/90828299253da859617ca374ca54c1b37a9e4db8 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M map.c M map.h Log Message: ----------- map.h: Refactor int flags into enum map_flags Commit: b674aa264f0cff7cf53d9994a7cd05b40a9d1edc https://github.com/OpenSIPS/opensips/commit/b674aa264f0cff7cf53d9994a7cd05b40a9d1edc Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/usrloc/kv_store.c M modules/usrloc/kv_store.h Log Message: ----------- usrloc K/V store: Add serialize/deserialize functions Commit: 7f1bef2f4cce695d3387094ed16154990a86ba6b https://github.com/OpenSIPS/opensips/commit/7f1bef2f4cce695d3387094ed16154990a86ba6b Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/udomain.c M modules/usrloc/ul_mod.c M modules/usrloc/ul_mod.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h Log Message: ----------- usrloc: Implement DB persistency for all K/V storage This patch adds a new location table column, named "kv_store". This column will hold any custom data that modules may intend to push into usrloc contact structures. Currently, only the mid_registrar module is making use of this feature. Moreover, the implementation also includes persistency for the record-level K/V storage. This is achieved with a special key, "_urec_kvs", that will only be present in one of the contacts' K/V store. Commit: ca0fc932137e0061ce1f75899d510f2d14b3619c https://github.com/OpenSIPS/opensips/commit/ca0fc932137e0061ce1f75899d510f2d14b3619c Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M db/schema/location.xml M modules/usrloc/ul_mod.h M scripts/db_berkeley/opensips/location M scripts/db_berkeley/opensips/version M scripts/dbtext/opensips/location M scripts/dbtext/opensips/version M scripts/mysql/usrloc-create.sql M scripts/oracle/usrloc-create.sql M scripts/pi_http/pi_framework.xml M scripts/pi_http/usrloc-mod M scripts/pi_http/usrloc-table M scripts/postgres/usrloc-create.sql M scripts/sqlite/usrloc-create.sql Log Message: ----------- Update DB schema Commit: d17722d0d870e2326373720e87dd307fdba48ce6 https://github.com/OpenSIPS/opensips/commit/d17722d0d870e2326373720e87dd307fdba48ce6 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Allow startup with DB-enabled usrloc Also swap the ordering of some usrloc API operations - this will help keep the DB in sync at runtime more often. Compare: https://github.com/OpenSIPS/opensips/compare/6a86d5443481...d17722d0d870 From liviu at opensips.org Fri Jan 19 13:21:32 2018 From: liviu at opensips.org (Liviu Chircu) Date: Fri, 19 Jan 2018 10:21:32 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 2b2e2a: usrloc: Remove bogus "const" modifiers Message-ID: <5a62372c6e277_17e62b1c0bbfdc0c694a0@hookshot-fe-2cc8887.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: 2b2e2ad6da600c93db81e08c6a398e45d65e2190 https://github.com/OpenSIPS/opensips/commit/2b2e2ad6da600c93db81e08c6a398e45d65e2190 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/usrloc/kv_store.c M modules/usrloc/kv_store.h Log Message: ----------- usrloc: Remove bogus "const" modifiers From vladp at opensips.org Tue Jan 23 04:51:42 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Tue, 23 Jan 2018 01:51:42 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 700422: mangler: accept variables for the public_ip parame... Message-ID: <5a6705ae2b95b_60372b0f7798fc18138242@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 700422325d3b8b7740254194adb0eb42c2b8349f https://github.com/OpenSIPS/opensips/commit/700422325d3b8b7740254194adb0eb42c2b8349f Author: rvlad-patrascu Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M modules/mangler/contact_ops.c M modules/mangler/contact_ops.h M modules/mangler/mangler.c Log Message: ----------- mangler: accept variables for the public_ip parameter of encode_contact() From liviu at opensips.org Tue Jan 23 09:30:18 2018 From: liviu at opensips.org (Liviu Chircu) Date: Tue, 23 Jan 2018 06:30:18 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 2333d0: usrloc: Fix SHM leaks in the K/V support Message-ID: <5a6746faa0e82_f272b0406b89c0c221e1@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: 2333d0d0cae63eb0256a914183a8ecf5f09db40f https://github.com/OpenSIPS/opensips/commit/2333d0d0cae63eb0256a914183a8ecf5f09db40f Author: Liviu Chircu Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/urecord.c Log Message: ----------- usrloc: Fix SHM leaks in the K/V support From liviu at opensips.org Tue Jan 23 09:35:45 2018 From: liviu at opensips.org (Liviu Chircu) Date: Tue, 23 Jan 2018 06:35:45 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] f7bf26: usrloc: Document the new "kv_store" column Message-ID: <5a674841c1906_7e0b2ad35bc8dc101021b8@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips Commit: f7bf26857f1eaa24f8d4a73ee445cb6d9a9bd8de https://github.com/OpenSIPS/opensips/commit/f7bf26857f1eaa24f8d4a73ee445cb6d9a9bd8de Author: Liviu Chircu Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M modules/usrloc/README M modules/usrloc/doc/usrloc_admin.xml M modules/usrloc/ul_mod.c Log Message: ----------- usrloc: Document the new "kv_store" column From liviu at opensips.org Tue Jan 23 09:39:33 2018 From: liviu at opensips.org (Liviu Chircu) Date: Tue, 23 Jan 2018 06:39:33 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 597daa: usrloc: Add generic, contact-level key-value stora... Message-ID: <5a67492561360_37b72adf4e49bc1013136f@hookshot-fe-265448d.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 597daa366613c44a58b61df5ebf4ebd7adfb97a4 https://github.com/OpenSIPS/opensips/commit/597daa366613c44a58b61df5ebf4ebd7adfb97a4 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h M ut.h Log Message: ----------- usrloc: Add generic, contact-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc contact. Commit: b2ac38d70bcf837db0fed2891c1c1fe0999febbb https://github.com/OpenSIPS/opensips/commit/b2ac38d70bcf837db0fed2891c1c1fe0999febbb Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: A modules/usrloc/kv_store.c A modules/usrloc/kv_store.h M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h Log Message: ----------- usrloc: Add generic, record-level key-value storage Allows various usrloc-dependent modules to easily store data into or to retrieve data from each usrloc record / AOR. Commit: 1fc88e8bae8ddbce6f559b6ae38c6e1a74216056 https://github.com/OpenSIPS/opensips/commit/1fc88e8bae8ddbce6f559b6ae38c6e1a74216056 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/usrloc/kv_store.c Log Message: ----------- usrloc: K/V store - use map_find() instead of map_get() Commit: cfa7be5672e0e325b8919400d947242dc801e63d https://github.com/OpenSIPS/opensips/commit/cfa7be5672e0e325b8919400d947242dc801e63d Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c A modules/mid_registrar/ul_storage.c A modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c M modules/usrloc/kv_store.c Log Message: ----------- mid_registrar: Refactor the AoR throttling implementation We now make use of usrloc's newly added k/v storage functions in order to store/retrieve the module data into/from each record. Commit: e94d90d1653015f209dd19d86713fabc731a4f68 https://github.com/OpenSIPS/opensips/commit/e94d90d1653015f209dd19d86713fabc731a4f68 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/fraud_detection/fraud_detection.c M modules/usrloc/kv_store.c M ut.h Log Message: ----------- Refactor shm_str_resize() into shm_str_extend() This hints better at what the function actually does (i.e. it will not shrink your buffers) Commit: 7f71f3ff9032dcd404c775a6bd5c02c6cb012eff https://github.com/OpenSIPS/opensips/commit/7f71f3ff9032dcd404c775a6bd5c02c6cb012eff Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/save.c M modules/mid_registrar/ul_storage.c M modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c Log Message: ----------- mid_registrar: Refactor contact mirroring/throttling We now make use of usrloc's newly added k/v storage functions in order to store/retrieve the module data into/from each contact. Commit: 6a86d54434813164330b55d8974658dc5442b959 https://github.com/OpenSIPS/opensips/commit/6a86d54434813164330b55d8974658dc5442b959 Author: Liviu Chircu Date: 2018-01-17 (Wed, 17 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c M modules/mid_registrar/ulcb.c M modules/mid_registrar/ulcb.h M modules/pua_bla/pua_bla.c M modules/pua_bla/registrar_cb.c M modules/pua_bla/registrar_cb.h M modules/pua_usrloc/pua_usrloc.c M modules/pua_usrloc/pua_usrloc.h M modules/pua_usrloc/ul_publish.c M modules/snmpstats/interprocess_buffer.c M modules/snmpstats/interprocess_buffer.h M modules/snmpstats/openserSIPRegUserTable.c M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/ul_callback.c M modules/usrloc/ul_callback.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h Log Message: ----------- usrloc: Simplify the callback API The opaque buffer extension for the API (commit b0241c1318) is no longer needed, as the K/V usrloc extension completely replaces it. This commit also refactors the usrloc callback types as "ul_cb_type", thus making them easier to pick up / work with. Commit: d2527e88d5eefcf8f6ab8ae07b414119617de8ec https://github.com/OpenSIPS/opensips/commit/d2527e88d5eefcf8f6ab8ae07b414119617de8ec Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M lib/cJSON.c M lib/cJSON.h Log Message: ----------- Improve the cJSON library * add a str-based appending function * avoid defining yet another pair of malloc/free funcs * fix the resetted allocation functions from glibc to PKG Commit: bcae687fdf84da1c5adc96db3746bf03ac8af128 https://github.com/OpenSIPS/opensips/commit/bcae687fdf84da1c5adc96db3746bf03ac8af128 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M str.h Log Message: ----------- str.h: Add a quick str initialization function Commit: 90828299253da859617ca374ca54c1b37a9e4db8 https://github.com/OpenSIPS/opensips/commit/90828299253da859617ca374ca54c1b37a9e4db8 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M map.c M map.h Log Message: ----------- map.h: Refactor int flags into enum map_flags Commit: b674aa264f0cff7cf53d9994a7cd05b40a9d1edc https://github.com/OpenSIPS/opensips/commit/b674aa264f0cff7cf53d9994a7cd05b40a9d1edc Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/usrloc/kv_store.c M modules/usrloc/kv_store.h Log Message: ----------- usrloc K/V store: Add serialize/deserialize functions Commit: 7f1bef2f4cce695d3387094ed16154990a86ba6b https://github.com/OpenSIPS/opensips/commit/7f1bef2f4cce695d3387094ed16154990a86ba6b Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/udomain.c M modules/usrloc/ul_mod.c M modules/usrloc/ul_mod.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h Log Message: ----------- usrloc: Implement DB persistency for all K/V storage This patch adds a new location table column, named "kv_store". This column will hold any custom data that modules may intend to push into usrloc contact structures. Currently, only the mid_registrar module is making use of this feature. Moreover, the implementation also includes persistency for the record-level K/V storage. This is achieved with a special key, "_urec_kvs", that will only be present in one of the contacts' K/V store. Commit: ca0fc932137e0061ce1f75899d510f2d14b3619c https://github.com/OpenSIPS/opensips/commit/ca0fc932137e0061ce1f75899d510f2d14b3619c Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M db/schema/location.xml M modules/usrloc/ul_mod.h M scripts/db_berkeley/opensips/location M scripts/db_berkeley/opensips/version M scripts/dbtext/opensips/location M scripts/dbtext/opensips/version M scripts/mysql/usrloc-create.sql M scripts/oracle/usrloc-create.sql M scripts/pi_http/pi_framework.xml M scripts/pi_http/usrloc-mod M scripts/pi_http/usrloc-table M scripts/postgres/usrloc-create.sql M scripts/sqlite/usrloc-create.sql Log Message: ----------- Update DB schema Commit: d17722d0d870e2326373720e87dd307fdba48ce6 https://github.com/OpenSIPS/opensips/commit/d17722d0d870e2326373720e87dd307fdba48ce6 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/save.c Log Message: ----------- mid_registrar: Allow startup with DB-enabled usrloc Also swap the ordering of some usrloc API operations - this will help keep the DB in sync at runtime more often. Commit: 2b2e2ad6da600c93db81e08c6a398e45d65e2190 https://github.com/OpenSIPS/opensips/commit/2b2e2ad6da600c93db81e08c6a398e45d65e2190 Author: Liviu Chircu Date: 2018-01-19 (Fri, 19 Jan 2018) Changed paths: M modules/usrloc/kv_store.c M modules/usrloc/kv_store.h Log Message: ----------- usrloc: Remove bogus "const" modifiers Commit: 2333d0d0cae63eb0256a914183a8ecf5f09db40f https://github.com/OpenSIPS/opensips/commit/2333d0d0cae63eb0256a914183a8ecf5f09db40f Author: Liviu Chircu Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M modules/usrloc/ucontact.c M modules/usrloc/urecord.c Log Message: ----------- usrloc: Fix SHM leaks in the K/V support Commit: f7bf26857f1eaa24f8d4a73ee445cb6d9a9bd8de https://github.com/OpenSIPS/opensips/commit/f7bf26857f1eaa24f8d4a73ee445cb6d9a9bd8de Author: Liviu Chircu Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M modules/usrloc/README M modules/usrloc/doc/usrloc_admin.xml M modules/usrloc/ul_mod.c Log Message: ----------- usrloc: Document the new "kv_store" column Commit: 1ec407b829abeaf8711617b5b6ed82a21cdde247 https://github.com/OpenSIPS/opensips/commit/1ec407b829abeaf8711617b5b6ed82a21cdde247 Author: Liviu Chircu Date: 2018-01-23 (Tue, 23 Jan 2018) Changed paths: M db/schema/location.xml M lib/cJSON.c M lib/cJSON.h M map.c M map.h M modules/fraud_detection/fraud_detection.c M modules/mid_registrar/mid_registrar.c M modules/mid_registrar/mid_registrar.h M modules/mid_registrar/save.c A modules/mid_registrar/ul_storage.c A modules/mid_registrar/ul_storage.h M modules/mid_registrar/ulcb.c M modules/mid_registrar/ulcb.h M modules/pua_bla/pua_bla.c M modules/pua_bla/registrar_cb.c M modules/pua_bla/registrar_cb.h M modules/pua_usrloc/pua_usrloc.c M modules/pua_usrloc/pua_usrloc.h M modules/pua_usrloc/ul_publish.c M modules/snmpstats/interprocess_buffer.c M modules/snmpstats/interprocess_buffer.h M modules/snmpstats/openserSIPRegUserTable.c M modules/usrloc/README M modules/usrloc/doc/usrloc_admin.xml A modules/usrloc/kv_store.c A modules/usrloc/kv_store.h M modules/usrloc/ucontact.c M modules/usrloc/ucontact.h M modules/usrloc/udomain.c M modules/usrloc/ul_callback.c M modules/usrloc/ul_callback.h M modules/usrloc/ul_mod.c M modules/usrloc/ul_mod.h M modules/usrloc/urecord.c M modules/usrloc/urecord.h M modules/usrloc/usrloc.c M modules/usrloc/usrloc.h M scripts/db_berkeley/opensips/location M scripts/db_berkeley/opensips/version M scripts/dbtext/opensips/location M scripts/dbtext/opensips/version M scripts/mysql/usrloc-create.sql M scripts/oracle/usrloc-create.sql M scripts/pi_http/pi_framework.xml M scripts/pi_http/usrloc-mod M scripts/pi_http/usrloc-table M scripts/postgres/usrloc-create.sql M scripts/sqlite/usrloc-create.sql M str.h M ut.h Log Message: ----------- Merge branch 'feature/usrloc-kv-contact-storage' Compare: https://github.com/OpenSIPS/opensips/compare/700422325d3b...1ec407b829ab From liviu at opensips.org Tue Jan 23 09:40:33 2018 From: liviu at opensips.org (liviuchircu) Date: Tue, 23 Jan 2018 06:40:33 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] Message-ID: <5a6749618b8b_6f202b15d2145c041270a5@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/feature/usrloc-kv-contact-storage Home: https://github.com/OpenSIPS/opensips From liviu at opensips.org Thu Jan 25 16:45:27 2018 From: liviu at opensips.org (Liviu Chircu) Date: Thu, 25 Jan 2018 13:45:27 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 2fe5dc: usrloc: Fix an off-by-one bug Message-ID: <5a6a4ff762a3c_26882ac63acf9c1811427b@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 2fe5dc35561d511c963d5585476114ca021b4881 https://github.com/OpenSIPS/opensips/commit/2fe5dc35561d511c963d5585476114ca021b4881 Author: Liviu Chircu Date: 2018-01-25 (Thu, 25 Jan 2018) Changed paths: M modules/usrloc/ucontact.c Log Message: ----------- usrloc: Fix an off-by-one bug From daniel.zanutti at gmail.com Fri Jan 26 12:32:14 2018 From: daniel.zanutti at gmail.com (Daniel Zanutti) Date: Fri, 26 Jan 2018 15:32:14 -0200 Subject: [OpenSIPS-Devel] Doubt about hash ID Message-ID: Hey I got this error on Opensips: */sbin/opensips[9189]: ERROR:dialog:parse_dlg_rr_param: invalid hash id 'efd60008'* Checking the failling function: inline static int reverse_hex2int( char *c, int len ) { char *pc; int r; char mychar; r=0; for (pc=c+len-1; len>0; pc--, len--) { r <<= 4 ; mychar=*pc; if ( mychar >='0' && mychar <='9') r+=mychar -'0'; else if (mychar >='a' && mychar <='f') r+=mychar -'a'+10; else if (mychar >='A' && mychar <='F') r+=mychar -'A'+10; else return -1; } return r; } Converting manually, looks like it passed int limit: efd60008 = 4023779336 > Limit 2147483647 The doubt is: Shouldn't this function return "unsigned int" instead of "int"? Is this the problem or am I seeing something wrong? I'm using opensips 1.11.9. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From vladp at opensips.org Mon Jan 29 09:43:20 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Mon, 29 Jan 2018 06:43:20 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 5b7bec: clusterer: add capabilities Message-ID: <5a6f3308c72e5_6e8a2b0b45a49c0c9290@hookshot-fe-88eb02d.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 5b7bec8e9a4c3d1fdc199899cf0d297eea8c67e0 https://github.com/OpenSIPS/opensips/commit/5b7bec8e9a4c3d1fdc199899cf0d297eea8c67e0 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M bin_interface.c M bin_interface.h M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h M modules/dialog/dialog.c M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/drouting/drouting.c M modules/load_balancer/lb_replication.c M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c M modules/ratelimit/ratelimit_helper.c M modules/usrloc/ul_mod.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- clusterer: add capabilities Modules now register "capabilities" to clusterer. Instead of a single callback, a module now registers callbacks for each capability. Also, nodes discover the capabilities of all the other instances in the cluster. Commit: cfa7e31a7d9ce8ee9b9e89e8189dea83d99198b0 https://github.com/OpenSIPS/opensips/commit/cfa7e31a7d9ce8ee9b9e89e8189dea83d99198b0 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/api.h M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h Log Message: ----------- clusterer: clean up some leftover code Commit: 4ec8d9ba301f02f092d0781b7def9e93b1e6772a https://github.com/OpenSIPS/opensips/commit/4ec8d9ba301f02f092d0781b7def9e93b1e6772a Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix wrong capabilities for some clusterer messages Commit: 3264219307be8901fd5ed84d56af63ac67421fa3 https://github.com/OpenSIPS/opensips/commit/3264219307be8901fd5ed84d56af63ac67421fa3 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M bin_interface.c M bin_interface.h M modules/clusterer/README M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/doc/clusterer_admin.xml M modules/clusterer/node_info.h A modules/clusterer/sync.c A modules/clusterer/sync.h M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c M modules/ratelimit/ratelimit_helper.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- clusterer: add mechanism to synchronize data for a capability Implemented through separate API functions which allow a node to: * request to sync with another node * build and send BIN packets with delimited chunks of data * iterate through data chunks from the received sync packets Also, regular BIN packets received for the given capability are buffered until syncing is complete. Commit: 9bf5efc0e911bdd8933b759f7e036892b563396d https://github.com/OpenSIPS/opensips/commit/9bf5efc0e911bdd8933b759f7e036892b563396d Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/sync.c Log Message: ----------- clusterer: load info from DB at module init Commit: 00172f42eef045e2f937f0961ca198824b2cd34d https://github.com/OpenSIPS/opensips/commit/00172f42eef045e2f937f0961ca198824b2cd34d Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix node availability events Commit: 006eea599bf5bb82aee9fa43f303de68b7db7f16 https://github.com/OpenSIPS/opensips/commit/006eea599bf5bb82aee9fa43f303de68b7db7f16 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/usrloc/ul_mi.c M modules/usrloc/ul_mi.h M modules/usrloc/ul_mod.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- usrloc: sync contacts from another node in the replication cluster Contacts are synchronized at startup or through an MI command. A valid source node is established by the clusterer module. Commit: d8df847802175b43c2bed966df58062c9ecf87ed https://github.com/OpenSIPS/opensips/commit/d8df847802175b43c2bed966df58062c9ecf87ed Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: fix deadlock when receiving a BIN packet on disabled node Commit: 5e461c66868a52cd808a24ca620fe013c8aec4eb https://github.com/OpenSIPS/opensips/commit/5e461c66868a52cd808a24ca620fe013c8aec4eb Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: advertise links as directed in topology updates Links are now considered as bidirectional in each node's internal topology representation. This fixes some routing loops and inconsistencies during the convergence of the overall cluster topology. Commit: a24695a6447b8d0fb264687ca674f69d91d9e3dd https://github.com/OpenSIPS/opensips/commit/a24695a6447b8d0fb264687ca674f69d91d9e3dd Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/clusterer.c Log Message: ----------- clusterer: faster pinging restart Restart own pinging immediately, instead of on timer, when receiving a ping from a failed node. Commit: d6ee4c9a92cc5aa19af6ffffbaa44fe9c05d663d https://github.com/OpenSIPS/opensips/commit/d6ee4c9a92cc5aa19af6ffffbaa44fe9c05d663d Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/api.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h M modules/usrloc/dlist.c Log Message: ----------- usrloc: partition NAT pinging across the cluster when replicating contacts The node determines its pinging slice by performing an AOR hash modulo current_no_cluster_nodes. Commit: 2f7a9555ac6d1da1ebf934c2b65e2eac786e5a12 https://github.com/OpenSIPS/opensips/commit/2f7a9555ac6d1da1ebf934c2b65e2eac786e5a12 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/dialog/README M modules/dialog/dialog.c M modules/dialog/dlg_repl_profile.h M modules/dialog/doc/dialog_admin.xml M modules/drouting/drouting.c M modules/load_balancer/load_balancer.c M modules/ratelimit/README M modules/ratelimit/doc/ratelimit_admin.xml M modules/ratelimit/ratelimit.c M modules/ratelimit/ratelimit_helper.c M modules/usrloc/ul_mod.c Log Message: ----------- clusterer: always check address of received BIN messages Always check if the IP of the received BIN packets belongs to one of the nodes in the cluster. Therefore also remove the "auth_check" module parameters for the modules registered to clusterer. Commit: f06f3aa25371ff43d9004a3f87b6553fee9fc303 https://github.com/OpenSIPS/opensips/commit/f06f3aa25371ff43d9004a3f87b6553fee9fc303 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/dialog/README M modules/dialog/dialog.c M modules/dialog/dlg_handlers.c M modules/dialog/dlg_hash.c M modules/dialog/dlg_profile.c M modules/dialog/dlg_profile.h M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/dialog/doc/dialog_admin.xml Log Message: ----------- dialog: simplify replication related module parameters Replaced the dialog and profile replication module parameters (source and destination cluster ids) with a single one for each of these capabilites. Also update and improve docs regarding replication. Commit: 71c2353a6fb6b91dbf451c3930d334897509ff6f https://github.com/OpenSIPS/opensips/commit/71c2353a6fb6b91dbf451c3930d334897509ff6f Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/usrloc/README M modules/usrloc/dlist.c M modules/usrloc/doc/usrloc_admin.xml M modules/usrloc/ucontact.c M modules/usrloc/udomain.c M modules/usrloc/ul_mi.c M modules/usrloc/ul_mod.c M modules/usrloc/urecord.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h Log Message: ----------- usrloc: reduce the two replication module params into a single one Commit: 1d8fb81565ec57cc6e63bb60e97714d5841c9efe https://github.com/OpenSIPS/opensips/commit/1d8fb81565ec57cc6e63bb60e97714d5841c9efe Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/ratelimit/README M modules/ratelimit/doc/ratelimit_admin.xml M modules/ratelimit/ratelimit.c M modules/ratelimit/ratelimit.h M modules/ratelimit/ratelimit_helper.c Log Message: ----------- ratelimit: reduce the two replication module params into a single one Commit: bb6e4f4d6a0589ab27c5fc646687f757308ed7d9 https://github.com/OpenSIPS/opensips/commit/bb6e4f4d6a0589ab27c5fc646687f757308ed7d9 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/load_balancer/README M modules/load_balancer/doc/load_balancer_admin.xml M modules/load_balancer/lb_data.c M modules/load_balancer/lb_replication.c M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c Log Message: ----------- load_balancer: reduce the two replication module params into a single one Commit: 86003da2d0078cd426b441b86e328e571e096838 https://github.com/OpenSIPS/opensips/commit/86003da2d0078cd426b441b86e328e571e096838 Author: rvlad-patrascu Date: 2018-01-12 (Fri, 12 Jan 2018) Changed paths: M modules/drouting/README M modules/drouting/doc/drouting_admin.xml M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/drouting/drouting.c Log Message: ----------- drouting: reduce the two replication module params into a single one Commit: 97380d90599d185e57bcf7ccf2d48f56f7389e14 https://github.com/OpenSIPS/opensips/commit/97380d90599d185e57bcf7ccf2d48f56f7389e14 Author: rvlad-patrascu Date: 2018-01-26 (Fri, 26 Jan 2018) Changed paths: M db/schema/clusterer.xml M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/node_info.c M modules/clusterer/node_info.h M modules/clusterer/sync.c M modules/clusterer/sync.h M modules/usrloc/dlist.c M scripts/db_berkeley/opensips/clusterer M scripts/db_berkeley/opensips/version M scripts/dbtext/opensips/clusterer M scripts/dbtext/opensips/version M scripts/mysql/clusterer-create.sql M scripts/oracle/clusterer-create.sql M scripts/pi_http/clusterer-mod M scripts/pi_http/clusterer-table M scripts/pi_http/pi_framework.xml M scripts/postgres/clusterer-create.sql M scripts/sqlite/clusterer-create.sql Log Message: ----------- clusterer: automatically choose the node to sync data from Given a provisioned "seed" node that is considered from the start to have the complete data set, every other node in the cluster synchronizes data from an eligible node (synced successfuly itself / is seed). Also, the get_my_index() API function now operates on a pool of nodes which have the complete data set. Commit: 0ca2f04187a53b72818474145218c7f269ec5d41 https://github.com/OpenSIPS/opensips/commit/0ca2f04187a53b72818474145218c7f269ec5d41 Author: rvlad-patrascu Date: 2018-01-29 (Mon, 29 Jan 2018) Changed paths: M bin_interface.c M bin_interface.h M db/schema/clusterer.xml M modules/clusterer/README M modules/clusterer/api.h M modules/clusterer/clusterer.c M modules/clusterer/clusterer.h M modules/clusterer/clusterer_mod.c M modules/clusterer/doc/clusterer_admin.xml M modules/clusterer/node_info.c M modules/clusterer/node_info.h A modules/clusterer/sync.c A modules/clusterer/sync.h M modules/dialog/README M modules/dialog/dialog.c M modules/dialog/dlg_handlers.c M modules/dialog/dlg_hash.c M modules/dialog/dlg_profile.c M modules/dialog/dlg_profile.h M modules/dialog/dlg_repl_profile.h M modules/dialog/dlg_replication.c M modules/dialog/dlg_replication.h M modules/dialog/doc/dialog_admin.xml M modules/drouting/README M modules/drouting/doc/drouting_admin.xml M modules/drouting/dr_replication.c M modules/drouting/dr_replication.h M modules/drouting/drouting.c M modules/load_balancer/README M modules/load_balancer/doc/load_balancer_admin.xml M modules/load_balancer/lb_data.c M modules/load_balancer/lb_replication.c M modules/load_balancer/lb_replication.h M modules/load_balancer/load_balancer.c M modules/ratelimit/README M modules/ratelimit/doc/ratelimit_admin.xml M modules/ratelimit/ratelimit.c M modules/ratelimit/ratelimit.h M modules/ratelimit/ratelimit_helper.c M modules/usrloc/README M modules/usrloc/dlist.c M modules/usrloc/doc/usrloc_admin.xml M modules/usrloc/ucontact.c M modules/usrloc/udomain.c M modules/usrloc/ul_mi.c M modules/usrloc/ul_mi.h M modules/usrloc/ul_mod.c M modules/usrloc/urecord.c M modules/usrloc/ureplication.c M modules/usrloc/ureplication.h M scripts/db_berkeley/opensips/clusterer M scripts/dbtext/opensips/clusterer M scripts/mysql/clusterer-create.sql M scripts/oracle/clusterer-create.sql M scripts/pi_http/clusterer-mod M scripts/pi_http/clusterer-table M scripts/pi_http/pi_framework.xml M scripts/postgres/clusterer-create.sql M scripts/sqlite/clusterer-create.sql Log Message: ----------- Merge branch 'feature/clustering-enhancements' Conflicts: modules/usrloc/README Compare: https://github.com/OpenSIPS/opensips/compare/2fe5dc35561d...0ca2f04187a5 From vladp at opensips.org Mon Jan 29 09:49:04 2018 From: vladp at opensips.org (rvlad-patrascu) Date: Mon, 29 Jan 2018 06:49:04 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] Message-ID: <5a6f34602f8db_2f6b2ab64b9d9c0857146@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/feature/clustering-enhancements Home: https://github.com/OpenSIPS/opensips From bogdan at opensips.org Mon Jan 29 16:54:19 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Mon, 29 Jan 2018 23:54:19 +0200 Subject: [OpenSIPS-Devel] Doubt about hash ID In-Reply-To: References: Message-ID: <46a86fb4-a107-a56a-f0de-1bb873e16759@opensips.org> Hi Daniel, Thanks for the report. Hard to believe but this may actually happen if you run OpenSIPS for long time under heavy load, making the id counter (per hash entry) to overflow the signed int. Let me investigate more. Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com OpenSIPS Summit 2018 http://www.opensips.org/events/Summit-2018Amsterdam On 01/26/2018 07:32 PM, Daniel Zanutti wrote: > Hey > > I got this error on Opensips: > */sbin/opensips[9189]: ERROR:dialog:parse_dlg_rr_param: invalid hash > id 'efd60008'* > > Checking the failling function: > inline static int reverse_hex2int( char *c, int len ) > { > char *pc; > int r; > char mychar; > > r=0; > for (pc=c+len-1; len>0; pc--, len--) { > r <<= 4 ; > mychar=*pc; > if ( mychar >='0' && mychar <='9') r+=mychar -'0'; > else if (mychar >='a' && mychar <='f') r+=mychar -'a'+10; > else if (mychar >='A' && mychar <='F') r+=mychar -'A'+10; > else return -1; > } > return r; > } > > Converting manually, looks like it passed int limit: efd60008 = > 4023779336 > Limit 2147483647 > > The doubt is: Shouldn't this function return "unsigned int" instead of > "int"? Is this the problem or am I seeing something wrong? > > I'm using opensips 1.11.9. > > Thanks > > > > > > _______________________________________________ > Devel mailing list > Devel at lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/devel -------------- next part -------------- An HTML attachment was scrubbed... URL: From bogdan at opensips.org Mon Jan 29 16:56:06 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Mon, 29 Jan 2018 13:56:06 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 091149: Added new load support based on active/idle time. Message-ID: <5a6f9876a7330_ad52b1d79815c104518@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 091149b07902cf770618a9715e6738b9c2714fe5 https://github.com/OpenSIPS/opensips/commit/091149b07902cf770618a9715e6738b9c2714fe5 Author: Bogdan-Andrei Iancu Date: 2018-01-29 (Mon, 29 Jan 2018) Changed paths: M modules/proto_ws/ws_common.h M net/net_tcp.c M net/net_tcp_proc.c M net/net_udp.c M net/proto_tcp/tcp_common.h M pt.c M pt.h A pt_load.c A pt_load.h M statistics.c M timer.c Log Message: ----------- Added new load support based on active/idle time. The way the internal load is calculated and reported is radically changed. Instead of providing per-interface load and only for SIP related processing, the new "load" support calculates per process the amount of time spent in any processing (outside the I/O reactor) versus total time. The time granularity is 1us. This new system covers any kind of handling (SIP, timer, async, etc) inside a process. The TCP main and timer handler will also provide load information. In the future, the extra processes (per module) may easily record their load information. Each process (and globally) reports 3 load statistics: * realtime load, computed over the last 1s * last 1 minute load * last 10 minutes load Example via "opensipsctl fifo get_statistics load:" : load:load:: 24 load:load1m:: 19 load:load10m:: 1 load:load-proc-1:: 0 load:load1m-proc-1:: 0 load:load10m-proc-1:: 0 load:load-proc-2:: 0 load:load1m-proc-2:: 0 load:load10m-proc-2:: 0 load:load-proc-3:: 0 load:load1m-proc-3:: 0 load:load10m-proc-3:: 0 load:load-proc-4:: 67 load:load1m-proc-4:: 22 load:load10m-proc-4:: 2 load:load-proc-5:: 79 load:load1m-proc-5:: 24 load:load10m-proc-5:: 2 From bogdan at opensips.org Tue Jan 30 04:26:23 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 30 Jan 2018 01:26:23 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 065a91: Avoid calling clusterer_api.request_sync if no clu... Message-ID: <5a703a3fc1d80_51732ad7aa4afc0c47530@hookshot-fe-31feec6.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 065a91776a095aaaf0038acf5a85a05d271d0700 https://github.com/OpenSIPS/opensips/commit/065a91776a095aaaf0038acf5a85a05d271d0700 Author: Bogdan-Andrei Iancu Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M modules/usrloc/ul_mod.c Log Message: ----------- Avoid calling clusterer_api.request_sync if no cluster configured From bogdan at opensips.org Tue Jan 30 07:10:14 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 30 Jan 2018 04:10:14 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 095dc5: Fix reverse_hex2int() prototype Message-ID: <5a7060a6ab36f_62e62af274a7bc14647cd@hookshot-fe-5a11256.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 095dc57300b9665b090e999a540db8b391f8d22e https://github.com/OpenSIPS/opensips/commit/095dc57300b9665b090e999a540db8b391f8d22e Author: Bogdan-Andrei Iancu Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M forward.c M modules/dialog/dlg_handlers.c M modules/dialog/dlg_handlers.h M modules/nathelper/sip_pinger.h M modules/tm/t_lookup.c M ut.h Log Message: ----------- Fix reverse_hex2int() prototype As the computed value is an unsigned (as data size), it cannot be returned as int as it will overflow and get converted to a negative value. This will colide with the negative error ret code -1 Reported by Daniel Zanutti. From bogdan at opensips.org Tue Jan 30 07:53:43 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 30 Jan 2018 04:53:43 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] c1d46c: Avoid bool test on float values Message-ID: <5a706ad79b8b3_170a62acf6ee57c1c927ce@hookshot-fe-dfcc362.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: c1d46c187960c95de9f48435dca3b789166b939e https://github.com/OpenSIPS/opensips/commit/c1d46c187960c95de9f48435dca3b789166b939e Author: Bogdan-Andrei Iancu Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M pt_load.c Log Message: ----------- Avoid bool test on float values Trevis reported. From bogdan at opensips.org Tue Jan 30 07:43:27 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 30 Jan 2018 04:43:27 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] a61fa8: Explicit reset of conn ID on error Message-ID: <5a70686f1ece5_1fa72af6097f1c0885257@hookshot-fe-d252ca1.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: a61fa8646e6f865b347b3e725c6362dc15d4e57b https://github.com/OpenSIPS/opensips/commit/a61fa8646e6f865b347b3e725c6362dc15d4e57b Author: Bogdan-Andrei Iancu Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M forward.c Log Message: ----------- Explicit reset of conn ID on error if reverse_hex2int fails, be sure the conn id stays 0. From bogdan at opensips.org Tue Jan 30 08:03:37 2018 From: bogdan at opensips.org (Bogdan-Andrei Iancu) Date: Tue, 30 Jan 2018 05:03:37 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] ed12eb: Fix reverse_hex2int64() prototype Message-ID: <5a706d2984ad6_29302ae14910bc10739a@hookshot-fe-6b2eebc.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: ed12eb97c06a23491c8b831124600361b0b63f2f https://github.com/OpenSIPS/opensips/commit/ed12eb97c06a23491c8b831124600361b0b63f2f Author: Bogdan-Andrei Iancu Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M modules/nathelper/sip_pinger.h M ut.h Log Message: ----------- Fix reverse_hex2int64() prototype As the computed value is an unsigned (as data size), it cannot be returned as int as it will overflow and get converted to a negative value. This will colide with the negative error ret code -1 From razvan at opensips.org Tue Jan 30 11:46:08 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 30 Jan 2018 08:46:08 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 6243d5: dialog: fix README to reflect actual event params Message-ID: <5a70a15099666_169b32ae1cbd0dc0c829b@hookshot-fe-dfcc362.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 6243d57bab3918b2714cdfd1ff509a89fa324f5a https://github.com/OpenSIPS/opensips/commit/6243d57bab3918b2714cdfd1ff509a89fa324f5a Author: Razvan Crainea Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M modules/dialog/README M modules/dialog/doc/dialog_admin.xml Log Message: ----------- dialog: fix README to reflect actual event params From razvan at opensips.org Tue Jan 30 11:47:10 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 30 Jan 2018 08:47:10 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 1fa34b: dialog: fix README to reflect actual event params Message-ID: <5a70a18eccc1b_71b22b0207705c043446f@hookshot-fe-da92815.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 1fa34b4cd04261c0b4f1dcec3bbdda887318a90a https://github.com/OpenSIPS/opensips/commit/1fa34b4cd04261c0b4f1dcec3bbdda887318a90a Author: Razvan Crainea Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M modules/dialog/README M modules/dialog/doc/dialog_admin.xml Log Message: ----------- dialog: fix README to reflect actual event params (cherry picked from commit 6243d57bab3918b2714cdfd1ff509a89fa324f5a) From razvan at opensips.org Tue Jan 30 11:48:18 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 30 Jan 2018 08:48:18 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 7a99d7: dialog: fix README to reflect actual event params Message-ID: <5a70a1d23064e_15682af3b24ffc10933cd@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 7a99d7e96cfe23b8cf1d54421e6d174ee101b6d8 https://github.com/OpenSIPS/opensips/commit/7a99d7e96cfe23b8cf1d54421e6d174ee101b6d8 Author: Razvan Crainea Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M modules/dialog/README M modules/dialog/doc/dialog_admin.xml Log Message: ----------- dialog: fix README to reflect actual event params (cherry picked from commit 6243d57bab3918b2714cdfd1ff509a89fa324f5a) From razvan at opensips.org Tue Jan 30 12:27:14 2018 From: razvan at opensips.org (=?UTF-8?Q?R=c4=83zvan_Crainea?=) Date: Tue, 30 Jan 2018 19:27:14 +0200 Subject: [OpenSIPS-Devel] OpenSIPS at FOSDEM 2018 Message-ID: <02edf02e-6ede-6317-2707-17d24270a465@opensips.org> Hi, everyone! This year the OpenSIPS team is going to be present again at FOSDEM, the largest open-source conference in Europe. Our talk for FOSDEM 2018 is going to present one of the main attraction of the upcoming OpenSIPS release: *Real Time Clustering* using OpenSIPS 2.4. Join us for this talk on Saturday, 15:00, in Room H.1309 (Van Rijn)[1] to find out what are the new and powerful tools we've been working on for the OpenSIPS Clustering! [1] https://fosdem.org/2018/schedule/event/opensips/ See you in Brussels! Cheers, -- Răzvan Crainea OpenSIPS Core Developer http://www.opensips-solutions.com OpenSIPS Summit 2018 http://www.opensips.org/events/Summit-2018Amsterdam From razvan at opensips.org Wed Jan 31 02:56:53 2018 From: razvan at opensips.org (=?UTF-8?B?UsSDenZhbg==?= Crainea) Date: Tue, 30 Jan 2018 23:56:53 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 8498dc: tls_client_domain_avp mismatch in readme Message-ID: <5a7176c59411e_204b2ae50c023c141152a8@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 8498dc8949b8fbc9ac153f7c90d29e19f25e41e4 https://github.com/OpenSIPS/opensips/commit/8498dc8949b8fbc9ac153f7c90d29e19f25e41e4 Author: netaskd Date: 2018-01-30 (Tue, 30 Jan 2018) Changed paths: M modules/tls_mgm/README Log Message: ----------- tls_client_domain_avp mismatch in readme Parameter must be not "tls_client_domain_avp" but "client_domain_avp" Commit: a94423dbce0a9af00322e3f860e4182521e05c6a https://github.com/OpenSIPS/opensips/commit/a94423dbce0a9af00322e3f860e4182521e05c6a Author: Răzvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M modules/tls_mgm/README Log Message: ----------- Merge pull request #1269 from netaskd/patch-1 tls_client_domain_avp mismatch in readme Compare: https://github.com/OpenSIPS/opensips/compare/6243d57bab39...a94423dbce0a From razvan at opensips.org Wed Jan 31 02:59:29 2018 From: razvan at opensips.org (Razvan Crainea) Date: Tue, 30 Jan 2018 23:59:29 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] c71021: tls_mgm: fix doc for client_domain_avp Message-ID: <5a7177613514d_12782ac50616bc1411129d@hookshot-fe-2cc8887.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: c71021e84f7ac9cca3116b13f354aa91072fe4c5 https://github.com/OpenSIPS/opensips/commit/c71021e84f7ac9cca3116b13f354aa91072fe4c5 Author: Razvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M modules/tls_mgm/README M modules/tls_mgm/doc/tls_mgm_admin.xml Log Message: ----------- tls_mgm: fix doc for client_domain_avp From razvan at opensips.org Wed Jan 31 03:00:56 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 31 Jan 2018 00:00:56 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 84a8ef: tls_mgm: fix doc for client_domain_avp Message-ID: <5a7177b89c825_11422ab3f0f53c18101799@hookshot-fe-2cc8887.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: 84a8efc25a1e50afcd097834b9db608585c28acc https://github.com/OpenSIPS/opensips/commit/84a8efc25a1e50afcd097834b9db608585c28acc Author: Razvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M modules/tls_mgm/README M modules/tls_mgm/doc/tls_mgm_admin.xml Log Message: ----------- tls_mgm: fix doc for client_domain_avp (cherry picked from commit c71021e84f7ac9cca3116b13f354aa91072fe4c5) From razvan at opensips.org Wed Jan 31 03:04:26 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 31 Jan 2018 00:04:26 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 654a7a: tls_mgm: fix doc for client_domain_avp Message-ID: <5a71788a2e19e_4ed02ada5a743c18136a@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 654a7a3f9c81332d7e00286d3578f3f99493fdb1 https://github.com/OpenSIPS/opensips/commit/654a7a3f9c81332d7e00286d3578f3f99493fdb1 Author: Razvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M modules/tls_mgm/README M modules/tls_mgm/doc/tls_mgm_admin.xml Log Message: ----------- tls_mgm: fix doc for client_domain_avp From razvan at opensips.org Wed Jan 31 04:27:43 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 31 Jan 2018 01:27:43 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] b7862c: pvar: fix $hdr() to allow variable headers Message-ID: <5a718c0f76a42_1cfd2aac393cfc0c2145f@hookshot-fe-32b5f5b.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: b7862ccdd5290ebd8d41e2f5b0aadc6e93f1e8dd https://github.com/OpenSIPS/opensips/commit/b7862ccdd5290ebd8d41e2f5b0aadc6e93f1e8dd Author: Razvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M pvar.c Log Message: ----------- pvar: fix $hdr() to allow variable headers From razvan at opensips.org Wed Jan 31 04:27:56 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 31 Jan 2018 01:27:56 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] e3fa69: pvar: fix $hdr() to allow variable headers Message-ID: <5a718c1cb2f9b_e012b22704dbc102469b@hookshot-fe-6e9b612.cp1-iad.github.net.mail> Branch: refs/heads/2.3 Home: https://github.com/OpenSIPS/opensips Commit: e3fa6952f9a9fb5594b2f21e4082fba8a1ccb0ed https://github.com/OpenSIPS/opensips/commit/e3fa6952f9a9fb5594b2f21e4082fba8a1ccb0ed Author: Razvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M pvar.c Log Message: ----------- pvar: fix $hdr() to allow variable headers (cherry picked from commit b7862ccdd5290ebd8d41e2f5b0aadc6e93f1e8dd) From razvan at opensips.org Wed Jan 31 04:29:20 2018 From: razvan at opensips.org (Razvan Crainea) Date: Wed, 31 Jan 2018 01:29:20 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 1802e9: pvar: fix $hdr() to allow variable headers Message-ID: <5a718c7064d97_111b2b1b5a3f3c0c2873c@hookshot-fe-cace476.cp1-iad.github.net.mail> Branch: refs/heads/2.2 Home: https://github.com/OpenSIPS/opensips Commit: 1802e9cbe045da0c4700011602120651bc4db1fa https://github.com/OpenSIPS/opensips/commit/1802e9cbe045da0c4700011602120651bc4db1fa Author: Razvan Crainea Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M pvar.c Log Message: ----------- pvar: fix $hdr() to allow variable headers (cherry picked from commit b7862ccdd5290ebd8d41e2f5b0aadc6e93f1e8dd) From liviu at opensips.org Wed Jan 31 07:30:39 2018 From: liviu at opensips.org (Liviu Chircu) Date: Wed, 31 Jan 2018 04:30:39 -0800 Subject: [OpenSIPS-Devel] [OpenSIPS/opensips] 9c0bf6: process load: Fix some minor issues Message-ID: <5a71b6ef928f2_45c22ab94c677c145422a@hookshot-fe-d2afb11.cp1-iad.github.net.mail> Branch: refs/heads/master Home: https://github.com/OpenSIPS/opensips Commit: 9c0bf6bbf4ec884b2e642ae4cec1d0f6ee11d2c0 https://github.com/OpenSIPS/opensips/commit/9c0bf6bbf4ec884b2e642ae4cec1d0f6ee11d2c0 Author: Liviu Chircu Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M pt_load.c Log Message: ----------- process load: Fix some minor issues * fix possibly incorrect 1m window values during very active periods * fix possible zero activity reported during very active periods Commit: 2e24c55e9a9e460032ad66a5531077690c84e44d https://github.com/OpenSIPS/opensips/commit/2e24c55e9a9e460032ad66a5531077690c84e44d Author: Liviu Chircu Date: 2018-01-31 (Wed, 31 Jan 2018) Changed paths: M pt.c M pt_load.c M pt_load.h Log Message: ----------- process load: Code refactoring * move stat building code into pt_load.c * avoid using "pid" in order to refer to "process_no" Compare: https://github.com/OpenSIPS/opensips/compare/b7862ccdd529...2e24c55e9a9e