Module: kamailio
Branch: 4.2
Commit: 0dd462b3e4ca6637b1d4fdb5cda3df97f215e3e8
URL: https://github.com/kamailio/kamailio/commit/0dd462b3e4ca6637b1d4fdb5cda3df9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-07-29T12:41:41+02:00
rr: fix detecting next strict router
- a regression after adding support for sip-outbound
- more verbose debug messages
- reported by Antonio Real, GH #267
(cherry picked from commit 0c42a848258d475f57ea25458bc75e55dcee948d)
(cherry picked from commit cb4f55b26f51a929b2db08373c1b97a95b8ad6a6)
---
Modified: modules/rr/loose.c
---
Diff: https://github.com/kamailio/kamailio/commit/0dd462b3e4ca6637b1d4fdb5cda3df9…
Patch: https://github.com/kamailio/kamailio/commit/0dd462b3e4ca6637b1d4fdb5cda3df9…
---
diff --git a/modules/rr/loose.c b/modules/rr/loose.c
index f537a8d..87065e6 100644
--- a/modules/rr/loose.c
+++ b/modules/rr/loose.c
@@ -759,7 +759,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
int status = RR_DRIVEN;
str uri;
struct socket_info *si;
- int uri_is_myself, next_is_strict;
+ int uri_is_myself;
int use_ob = 0;
hdr = _m->route;
@@ -770,11 +770,11 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
routed_msg_id = 0;
if (parse_uri(uri.s, uri.len, &puri) < 0) {
- LM_ERR("failed to parse the first route URI\n");
+ LM_ERR("failed to parse the first route URI (%.*s)\n",
+ uri.len, ZSW(uri.s));
return RR_ERROR;
}
- next_is_strict = is_strict(&puri.params);
routed_params = puri.params;
uri_is_myself = is_myself(&puri);
@@ -817,7 +817,8 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
/* double route may occure due different IP and port, so force as
* send interface the one advertise in second Route */
if (parse_uri(rt->nameaddr.uri.s,rt->nameaddr.uri.len,&puri)<0) {
- LM_ERR("failed to parse the double route URI\n");
+ LM_ERR("failed to parse the double route URI (%.*s)\n",
+ rt->nameaddr.uri.len, ZSW(rt->nameaddr.uri.s));
return RR_ERROR;
}
@@ -854,7 +855,8 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
uri = rt->nameaddr.uri;
if (parse_uri(uri.s, uri.len, &puri) < 0) {
- LM_ERR("failed to parse the first route URI\n");
+ LM_ERR("failed to parse the next route URI (%.*s)\n",
+ uri.len, ZSW(uri.s));
return RR_ERROR;
}
} else {
@@ -869,7 +871,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
}
LM_DBG("URI to be processed: '%.*s'\n", uri.len, ZSW(uri.s));
- if (next_is_strict) {
+ if (is_strict(&puri.params)) {
LM_DBG("Next URI is a strict router\n");
if (handle_sr(_m, hdr, rt) < 0) {
LM_ERR("failed to handle strict router\n");
Module: kamailio
Branch: 4.2
Commit: 4bce6e25bcb8a07687c87f9c64b5d54fba8e0410
URL: https://github.com/kamailio/kamailio/commit/4bce6e25bcb8a07687c87f9c64b5d54…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-07-29T12:41:26+02:00
kamcmd: use NAME to build help message
(cherry picked from commit 7038d12dbb9c8db1b46c0874bfd8fce72d6e72ed)
(cherry picked from commit ff1d3f06840928aace36780ecbc898cd2e90ce0a)
---
Modified: utils/sercmd/sercmd.c
---
Diff: https://github.com/kamailio/kamailio/commit/4bce6e25bcb8a07687c87f9c64b5d54…
Patch: https://github.com/kamailio/kamailio/commit/4bce6e25bcb8a07687c87f9c64b5d54…
---
diff --git a/utils/sercmd/sercmd.c b/utils/sercmd/sercmd.c
index 86d8fc4..974127c 100644
--- a/utils/sercmd/sercmd.c
+++ b/utils/sercmd/sercmd.c
@@ -111,7 +111,7 @@ arg:\n\
string or number; to force a number to be interpreted as string \n\
prefix it by \"s:\", e.g. s:1\n\
Examples:\n\
- " NAME " -s unixs:/tmp/ser_unix system.listMethods\n\
+ " NAME " -s unixs:/tmp/" NAME "_ctl system.listMethods\n\
" NAME " -f \"pid: %v desc: %v\\n\" -s udp:localhost:2047 core.ps \n\
" NAME " ps # uses default ctl socket \n\
" NAME " # enters interactive mode on the default socket \n\
Module: kamailio
Branch: 4.2
Commit: effb9eea18c59c6bd2db593f132ad2dc53986690
URL: https://github.com/kamailio/kamailio/commit/effb9eea18c59c6bd2db593f132ad2d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-07-29T12:40:59+02:00
acc: note about setting acc flag for ACKs that should be recorded
(cherry picked from commit 6656d4459f0c7d4c1b7cb5d2b214201c5a587c5c)
(cherry picked from commit c68a6dcad598130bc6894f1de5ef3b39eb789660)
---
Modified: modules/acc/README
Modified: modules/acc/doc/acc_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/effb9eea18c59c6bd2db593f132ad2d…
Patch: https://github.com/kamailio/kamailio/commit/effb9eea18c59c6bd2db593f132ad2d…
---
diff --git a/modules/acc/README b/modules/acc/README
index bbf84fe..455c271 100644
--- a/modules/acc/README
+++ b/modules/acc/README
@@ -768,7 +768,8 @@ modparam("acc", "failed_filter", "404,407")
Shall acc attempt to account e2e ACKs too ? Note that this is really
only an attempt, as e2e ACKs may take a different path (unless RR
enabled) and mismatch original INVITE (e2e ACKs are a separate
- transaction).
+ transaction). The flag for accounting has to be set for each ACK as
+ well.
Default value is 0 (no).
diff --git a/modules/acc/doc/acc_admin.xml b/modules/acc/doc/acc_admin.xml
index eb7acdc..c447e8b 100644
--- a/modules/acc/doc/acc_admin.xml
+++ b/modules/acc/doc/acc_admin.xml
@@ -559,7 +559,8 @@ modparam("acc", "failed_filter", "404,407")
Shall acc attempt to account e2e ACKs too ? Note that this is really
only an attempt, as e2e ACKs may take a different path
(unless RR enabled) and mismatch original INVITE (e2e ACKs are
- a separate transaction).
+ a separate transaction). The flag for accounting has to be set
+ for each ACK as well.
</para>
<para>
Default value is 0 (no).