Import commit fcf1d3d778a903852b6e21103a23bd7fd6e3bbc9 from upstream that
solves the issue with masking Contact in 302 response from UAS.
Change-Id: I13ffa4d17c80d6dbf2e509d82e30980931e54cbe
- allow_trusted() now can take optional parameter of value to match.
- provided parameter will be used instead of From header in match_res() and match_hash_table()
- documentation extended with 3-arguments allow_trusted() function description
Change-Id: I45226cbba489bd7a60e7d8481777401b4f52024f
* avp_subst(dst, subst_rx)
- "subst_rx" now supports pvars
in addition to the static string
e.g.:
- avp_subst("$avp(s:dst)", "$avp(s:my_subst)");
- avp_subst("$avp(s:dst)", "$(rU{uri.param,my_subst})");
- inline mixed pvars are not supported
- static subst values are precomplied during the module init
(as it was before)
- dynamic pvar subst regex is evaluated and compiled on
each avp_subst() call
- optimise internal param handling for static subst values,
they are stored as (fparam_t*)->type==FPARAM_SUBST
Change-Id: Iea7a91ba87b892edd6fa405aa7cc285d69d9caa9
The function is necessary to extract the FCI code from the
variable instead of reading it from the SIP message.
Change-Id: If8a19d205e1ccad64e44cfa75501daa672165a59
When iterating through entry keys while searching for proper key,
reset manual key count when going to next entry key to avoid
writing beyond manaul key array.
Also fix memleak when deleting via table scan, where scanned
keys and manual keys were not properly deleted.
Also fix memleak when deleting in general, where type keys
were not properly deleted.
Change-Id: I60bb57ec95d863ace89a927341a9031bf67723ad
The kamailio-proxy daemon really requires a mariadb instance running,
otherwise it will fail to even start. It might be able to manage a
mariadb instance disappearing for a short period of time during normal
operation depending on the options given.
Fixes: commit 27c63cdf14
Change-Id: I3d59b48f8054d402a3609fef43a9f617a7d47216
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