<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Removed not used variable "route_mode" in the tm module. This was discovered by @IvanRibakov when using a g++ compiler, which added more strict flags (Ivan's Github is [here](https://github.com/IvanRibakov))
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2406
-- Commit Summary --
* tm - remove not used route_mode var
-- File Changes --
M src/modules/tm/tm_load.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2406.patchhttps://github.com/kamailio/kamailio/pull/2406.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2406
Module: kamailio
Branch: 5.5
Commit: cf93317b4252fbae7bbc640dcc150fc52e5a196e
URL: https://github.com/kamailio/kamailio/commit/cf93317b4252fbae7bbc640dcc150fc…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/sworker/README
---
Diff: https://github.com/kamailio/kamailio/commit/cf93317b4252fbae7bbc640dcc150fc…
Patch: https://github.com/kamailio/kamailio/commit/cf93317b4252fbae7bbc640dcc150fc…
---
diff --git a/src/modules/sworker/README b/src/modules/sworker/README
index 241b077ab6..c5d571a179 100644
--- a/src/modules/sworker/README
+++ b/src/modules/sworker/README
@@ -115,7 +115,7 @@ request_route {
that, 'drop' must be used so processing of the message does not
continue to request_route or reply_route in the same process, it is
going to be done by the delegated group of workers. It returns -1
- (false) in case there was a proble delegating the processing.
+ (false) in case there was a problem delegating the processing.
This function can be used from REQUEST_ROUTE|CORE_REPLY_ROUTE.
Module: kamailio
Branch: 5.5
Commit: 446e716ff4c7e853ac9239cff8784cd30b7b8e8a
URL: https://github.com/kamailio/kamailio/commit/446e716ff4c7e853ac9239cff8784cd…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/siputils/README
---
Diff: https://github.com/kamailio/kamailio/commit/446e716ff4c7e853ac9239cff8784cd…
Patch: https://github.com/kamailio/kamailio/commit/446e716ff4c7e853ac9239cff8784cd…
---
diff --git a/src/modules/siputils/README b/src/modules/siputils/README
index 6a1ae76b9f..87d3ecf9e4 100644
--- a/src/modules/siputils/README
+++ b/src/modules/siputils/README
@@ -761,7 +761,7 @@ if (is_alphanumex("$rU", "+.-_")) {
This function will encode uri-s inside Contact header in the following
manner sip:username:password@ip:port;transport=protocol goes
- sip:encoding_prefix*username*ip*port*protocol@hostpart.
+ sip:encoding_prefix*username*password*ip*port*protocol@hostpart.
* is the default separator and can be changed by setting the
contact_flds_separator module parameter.
@@ -787,9 +787,9 @@ if (src_ip == 10.0.0.0/8) encode_contact("natted_client","1.2.3.4");
4.20. decode_contact()
This function will decode the request URI. If the RURI is in the format
- sip:encoding_prefix*username*ip*port*protocol@hostpart it will be
- decoded to sip:username:password@ip:port;transport=protocol It uses the
- default set parameter for contact encoding separator.
+ sip:encoding_prefix*username*password*ip*port*protocol@hostpart it will
+ be decoded to sip:username:password@ip:port;transport=protocol. It uses
+ the default set parameter for contact encoding separator.
The function returns negative on error, 1 on success.
Module: kamailio
Branch: 5.5
Commit: 345e57ec3852bb0e9b3a11f35c4d56098aba1fb6
URL: https://github.com/kamailio/kamailio/commit/345e57ec3852bb0e9b3a11f35c4d560…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/xhttp_prom/README
---
Diff: https://github.com/kamailio/kamailio/commit/345e57ec3852bb0e9b3a11f35c4d560…
Patch: https://github.com/kamailio/kamailio/commit/345e57ec3852bb0e9b3a11f35c4d560…
---
diff --git a/src/modules/xhttp_prom/README b/src/modules/xhttp_prom/README
index 4ccdd4bd06..280d79caa8 100644
--- a/src/modules/xhttp_prom/README
+++ b/src/modules/xhttp_prom/README
@@ -512,7 +512,7 @@ prom_gauge_set("gg01", "-12.5");
...
# Definition of gg02 gauge with two labels method and IP
-modparam("xhttp_prom", "prom_gauge", "name=cnt02; label=method:IP;");
+modparam("xhttp_prom", "prom_gauge", "name=gg02; label=method:IP;");
...
# Assign 2.8 to value of gg02 gauge with labels method and IP. It creates the ga
uge if it does not exist.
Module: kamailio
Branch: 5.5
Commit: 8f14c0838912c18b8e244a904f96146c610fca91
URL: https://github.com/kamailio/kamailio/commit/8f14c0838912c18b8e244a904f96146…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/secsipid/README
---
Diff: https://github.com/kamailio/kamailio/commit/8f14c0838912c18b8e244a904f96146…
Patch: https://github.com/kamailio/kamailio/commit/8f14c0838912c18b8e244a904f96146…
---
diff --git a/src/modules/secsipid/README b/src/modules/secsipid/README
index c96b7830c6..b42915943b 100644
--- a/src/modules/secsipid/README
+++ b/src/modules/secsipid/README
@@ -299,7 +299,7 @@ request_route {
5. Installation
- The module needs "secsipdi_proc.so" module thatdepends on
+ The module needs "secsipdi_proc.so" module that depends on
"libsecsipid", which is a component of "sipsecidx" project from
https://github.com/asipto/secsipidx/. The library is implemented in Go
language, with generated C API and library. Until the libsecsipid is
@@ -313,6 +313,7 @@ request_route {
Example 1.11. Libsecsipid Usage
...
+export GO111MODULE=off
go get https://github.com/asipto/secsipidx
cd $GOPATH/src/github.com/asipto/secsipidx/csecsipid/
make liba
@@ -328,3 +329,6 @@ make install
# make modules modules=src/modules/secsipid_proc
# make modules modules=src/modules/secsipid
...
+
+ For more details about compilation and installation of libsecsipid,
+ see: https://github.com/asipto/secsipidx.
Module: kamailio
Branch: 5.5
Commit: a629760eaff8cac4679482f616c8288623c88ec4
URL: https://github.com/kamailio/kamailio/commit/a629760eaff8cac4679482f616c8288…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/jwt/README
---
Diff: https://github.com/kamailio/kamailio/commit/a629760eaff8cac4679482f616c8288…
Patch: https://github.com/kamailio/kamailio/commit/a629760eaff8cac4679482f616c8288…
---
diff --git a/src/modules/jwt/README b/src/modules/jwt/README
index 7a7400a4b1..459f10a822 100644
--- a/src/modules/jwt/README
+++ b/src/modules/jwt/README
@@ -122,14 +122,17 @@ modparam("jwt", "key_mode", 1)
libjwt (e.g., RS256, HS256, ES256, ...)
* claims - the list of claims to be added to JWT, in the format
"name1=value1;name2=value2;..." (same as the SIP parameters
- format).
+ format). The string values can be enclosed in single or double
+ quotes. If a value is not eclosed in between quotes, it is added as
+ numeric value if it is successfully converted to a long value,
+ otherwise is added as string value.
This function can be used from ANY_ROUTE.
Example 1.2. jwt_generate usage
...
jwt_generate("/path/to/prvkey.pem", "RS256",
- "caller=$fU;callee=$tU;callid=$ci");
+ "caller='$fU';callee='$tU';callid='$ci';index=100");
...
4.2. jwt_verify(pubkey, alg, claims, jwtval)
@@ -142,7 +145,8 @@ modparam("jwt", "key_mode", 1)
libjwt (e.g., RS256, HS256, ES256, ...)
* claims - the list of claims to be checked they are in the JWT, in
the format "name1=value1;name2=value2;..." (same as the SIP
- parameters format).
+ parameters format, see also the description of claims parameter for
+ jwt_generate()).
* jwtval - the value of the JWT to verify
This function can be used from ANY_ROUTE.
@@ -150,7 +154,7 @@ modparam("jwt", "key_mode", 1)
Example 1.3. jwt_verify usage
...
if(!jwt_verify("/path/to/pubkey.pem", "RS256",
- "caller=$fU;callee=$tU;callid=$ci",
+ "caller='$fU';callee='$tU';callid='$ci';index=100",
"$var(jwt)") {
xwarn("failed to verify jwt\n");
}
@@ -171,6 +175,6 @@ modparam("jwt", "key_mode", 1)
Example 1.4. $jwt(name) usage
...
jwt_generate("/path/to/prvkey.pem", "RS256",
- "caller=$fU;callee=$tU;callid=$ci");
+ "caller='$fU';callee='$tU';callid='$ci';index=100");
xinfo("jwt is: $jwt(val)");
...
Module: kamailio
Branch: 5.5
Commit: 9bb2c11de3966c40d84896cf7077131f0bc14f28
URL: https://github.com/kamailio/kamailio/commit/9bb2c11de3966c40d84896cf7077131…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: The Root <root(a)kamailio.org>
Date: 2021-08-20T10:01:16+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/lost/README
---
Diff: https://github.com/kamailio/kamailio/commit/9bb2c11de3966c40d84896cf7077131…
Patch: https://github.com/kamailio/kamailio/commit/9bb2c11de3966c40d84896cf7077131…
---
diff --git a/src/modules/lost/README b/src/modules/lost/README
index 14cf3b36a6..00fa5f2ceb 100644
--- a/src/modules/lost/README
+++ b/src/modules/lost/README
@@ -376,8 +376,15 @@ r(pidf)\n");
* pidf-lo - the PIDF-LO returned in the HELD locationRequest response
* error - any error code returned in the HELD response
- The return value is 200 on success, 400 if an internal error occured,
- or 500 if an error code is returned in the HELD response.
+ The return value is 200..203 on success, 400 if an internal error
+ occured, or 500 if an error code is returned in the HELD response.
+ Success codes in detail are as follows:
+ * 200 - received 200 OK, but neither location-info nor locationURI
+ element found
+ * 201 - received 200 OK with locationURI (aka Location-by-Reference)
+ * 202 - received 200 OK with location-info element (aka
+ Location-by-Value)
+ * 203 - received 200 OK with location-info and locationURI element
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, and BRANCH_ROUTE.
Module: kamailio
Branch: 5.5
Commit: 105b15422f611ba1dcc59be30f7f4d474b294d03
URL: https://github.com/kamailio/kamailio/commit/105b15422f611ba1dcc59be30f7f4d4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-19T21:30:37+02:00
misc/tools/protoshoot: removed svn id and history
(cherry picked from commit e3875c01adf576f179374a926e69e99c0094e5b4)
---
Modified: misc/tools/protoshoot/protoshoot.c
---
Diff: https://github.com/kamailio/kamailio/commit/105b15422f611ba1dcc59be30f7f4d4…
Patch: https://github.com/kamailio/kamailio/commit/105b15422f611ba1dcc59be30f7f4d4…
---
diff --git a/misc/tools/protoshoot/protoshoot.c b/misc/tools/protoshoot/protoshoot.c
index 352e1018a6..6eced5fc2b 100644
--- a/misc/tools/protoshoot/protoshoot.c
+++ b/misc/tools/protoshoot/protoshoot.c
@@ -1,4 +1,3 @@
-/* $Id$ */
/*
*
* Copyright (C) 2001-2003 FhG Fokus
@@ -20,14 +19,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-/*
- * History:
- * 2005-09-09 basic tcp support added (andrei)
- */
@@ -50,7 +45,6 @@
#include <signal.h>
-static char *id="$Id$";
static char *version="protoshoot 0.4";
static char* help_msg="\
Usage: protoshoot -f file -d address -p port -c count [-v]\n\
@@ -87,7 +81,7 @@ int main (int argc, char** argv)
char buf[BUF_SIZE];
struct hostent* he;
struct sockaddr_in addr;
-
+
int count;
int verbose;
char *fname;
@@ -104,7 +98,7 @@ int main (int argc, char** argv)
struct linger t_linger;
int k;
int err;
-
+
/* init */
count=1;
verbose=0;
@@ -190,7 +184,6 @@ int main (int argc, char** argv)
break;
case 'V':
printf("version: %s\n", version);
- printf("%s\n",id);
exit(0);
break;
case 'h':
@@ -213,7 +206,7 @@ int main (int argc, char** argv)
abort();
}
}
-
+
/* check if all the required params are present */
if (fname==0){
fprintf(stderr, "Missing -f file\n");
@@ -238,13 +231,13 @@ int main (int argc, char** argv)
exit(-1);
}
if (proto==PROTO_UDP || (proto==PROTO_SCTP && !sctp_o2o)) con_no=1;
-
+
/* ignore sigpipe */
if (signal(SIGPIPE, SIG_IGN)==SIG_ERR){
fprintf(stderr, "failed to ignore SIGPIPE: %s\n", strerror(errno));
exit(-1);
}
-
+
/* open packet file */
fd=open(fname, O_RDONLY);
if (fd<0){
@@ -274,7 +267,7 @@ int main (int argc, char** argv)
addr.sin_len=sizeof(struct sockaddr_in);
#endif
memcpy(&addr.sin_addr.s_addr, he->h_addr_list[0], he->h_length);
-
+
for (k=0; k<con_no; k++){
switch(proto){
case PROTO_UDP:
@@ -285,7 +278,7 @@ int main (int argc, char** argv)
break;
#ifdef USE_SCTP
case PROTO_SCTP:
- sock = socket(he->h_addrtype,
+ sock = socket(he->h_addrtype,
sctp_o2o?SOCK_STREAM:SOCK_SEQPACKET,
IPPROTO_SCTP);
break;
@@ -333,8 +326,7 @@ int main (int argc, char** argv)
fprintf(stderr, "ERROR: connect: %s\n", strerror(errno));
goto error;
}
-
-
+
/* flood loop */
t=throttle;
for (r=0; r<count; r++){
@@ -366,7 +358,7 @@ int main (int argc, char** argv)
}
}
}
-
+
close(sock);
if ((verbose) && (k%1000==999)) { putchar('#'); fflush(stdout); }
}