Make sure to not dereference con->con in error handling, as it
could be null due to failed reconnect attempt.
Change-Id: I06c3b1e26803b7ffc05c9c2fcbfbf2d27dc58163
We removed the init script, let's cleanup fully. Remove now obsolete
preinst maintscript. And remove unused and incorrectly named lintian
override file.
Change-Id: Ie08720a5c44d27f698de52f038608b47e5901ce7
The current problem is massive services restart on: systemctl restart glusterd.service
which is not really necessary on NGCP.
Use 'Wants' instead of 'Requires' so dependent services aren't
restarted on restart of remote-fs.target.
Change-Id: Ie2b776b02bdf28f0fba0bdb6301f1d0b4f932daf
Is service B "Requires" service A to be started before B
and B does NOT require B restart on A restart, B should use "Wants=A".
Change-Id: Ie2dce6571d2086f5478e90f726bf0a0cbcdc68c4
This is a revert of what fixed in upstream commit
57c4ec824fdd6c6c797bd7d6bfb3d65159a8d7c6
Exchanging from and to tag was causing a missed notification
to the subscribers.
Change-Id: If10597c4df3927c6fbbbe21c4a585acbbd94a673
When pre-loading e.g. the location table with >50k records,
we have to make sure to:
* scan and process DB_ROWs in batch of 1000 to balance a
trade-of between number of redis commands and memory
consumption
* prepend to list of keys instead of append in order to keep
this operation as O(1)
Change-Id: Ifc4a2318af4a786391bcae4001f658aea28d1099
The files are not copied/installed in the package correctly, probably because
there are different calls to dh_installinit with different --name parameters,
but not any invocation in which "ngcp-kamailio" or the others are used, thus the
files are ignored.
Change-Id: Iec42bf7e78a83f74961af37878a94effd05d1f91
Migrate to use proper systemd unit files for full support, and thus to increase
consistency when bringing up and shutting down the system, or when restarting
services, to have more integration with the init system as a whole.
As part of this change and since we are revamping the init support, we also
remove sysvinit support.
There are systemd-unit files for different distributions under pkg/kamailio, but
we have a special set-up in which "-lb" and "-proxy" are different services.
Change-Id: Ib8b4c335339f6362503f6c74f637058a81a81e51
Hiredis sends queued commands to redis only after first call
of getReply, and if that fails, we need to have the appended
commands queued up, so we can re-queue them and re-execute
again after reconnect.
Also refresh code using upstream fixes, like declaring vars
at the beginning of functions instead of inline in for() loops.
Change-Id: I2de5da00818aaa27d3c10ba81074cfa83083e5b5
In the system there were some naming inconsistency between templates
and init scripts. Move everything to use "minus" convention in order
to have everything name 'kamailio-lb' and 'kamailio-proxy'.
Change-Id: I7bd90a7b5b2af5007c6b368f40d8064852c95966
If we do not wait, and make sure kamailio is not running any more, we
exit and it's still running which means a subsequent start will see the
service is indeed aready running and exit successfully. Add the needed
--retry options to start-stop-daemon.
Change-Id: I4bfbd394ca5233478d68361e4084b36f03afa435
- Update debian/.gitignore file.
- Switch to automatic debug symbol packages.
- Let debhelper handle DEB_BUILD_OPTIONS by itself.
- Do not specify init script runlevels, we use the LSB metadata instead.
Change-Id: I77aab74becf0dedc5922ba7f7c3489c6793495d3
* Switch the init script from sh to bash
* Fix shellcheck warnings
* Rename ngcp-check_active to new ngcp-check-active
Change-Id: I40d2974097f87135ae3900919f47f399427e3720
- Bump debhelper compatibility version 10.
- Switch from Priority extra to optional.
- Canonicalize Homepage URL.
- New debian/.gitignore file.
Change-Id: I41785c6cfafb71b4f012e8bbcc91f6202dadc131
With newer OpenSSL versions it seems a threaded application needs to
cleanup properly, otherwise the now automatic atexit() cleanup handler
will segfault when the pthread variables have been deallocated already
by the pthreads library.
Change-Id: I08ac91cf63b1a74c17a0bd70b40202a5baf7771f
> dpkg-source: info: applying upstream/dialog-check-if-dialog-exists-after-event-route-exec.patch
> patching file modules/dialog/dlg_handlers.c
> Hunk #1 succeeded at 1179 (offset -47 lines).
> Hunk #2 succeeded at 1276 (offset -47 lines).
> Hunk #3 FAILED at 1368.
> 1 out of 3 hunks FAILED
> dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
> dpkg-source: info: if patch 'upstream/dialog-check-if-dialog-exists-after-event-route-exec.patch' is correctly applied by quilt, use 'quilt refresh' to update it
Change-Id: I61458d08945784b7e38fff598fa5aa6cb2c879da
* [to|from]_avp module parameters
* sca_call_info_update() fallback if no Contact
header is present
* implement unsubscribe for call-info
* use rr is_direction() to select tag for search
* fix core on RPC command release_appearance
* fix on-hold detection when direction is upstream
Change-Id: I29c71374da6ae918b82a32987e5d9a52a252e478
* sipwise/tm-deep-cloning-of-the-request-for-fake-environment.patch
introduced a memory leak on reset_path_vector()
Change-Id: Iec8341920e54c769fdc6107765d9a6401a3f64b0