Module: kamailio
Branch: master
Commit: 7d1761268615b37f3a0fc49de14b1029c5a27fec
URL: https://github.com/kamailio/kamailio/commit/7d1761268615b37f3a0fc49de14b102…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2016-11-07T01:48:18+02:00
modules/siputils: do not log CRLF
---
Modified: modules/siputils/chargingvector.c
---
Diff: https://github.com/kamailio/kamailio/commit/7d1761268615b37f3a0fc49de14b102…
Patch: https://github.com/kamailio/kamailio/commit/7d1761268615b37f3a0fc49de14b102…
---
diff --git a/modules/siputils/chargingvector.c b/modules/siputils/chargingvector.c
index 08a7e7d..a8e8270 100644
--- a/modules/siputils/chargingvector.c
+++ b/modules/siputils/chargingvector.c
@@ -391,7 +391,7 @@ int sip_handle_pcv(struct sip_msg *msg, char *flags, char *str2)
/* if generated, reparse it */
sip_parse_charging_vector( pcv_body, pcv.len-19 );
/* if it was generated, we need to send it out as a header */
- LM_INFO("Generated PCV header %.*s\n", pcv.len, pcv_buf );
+ LM_INFO("Generated PCV header %.*s\n", pcv.len-2, pcv_buf );
i = sip_add_charging_vector(msg);
if (i <= 0)
{
Original purpose was to add new $pcv(...) pseudo variables.
Ended up doing documentation stub, minor bug fix and general housekeeping.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/850
-- Commit Summary --
* modules/siputils: whitespace cleanup
* modules/siputils: adjust logging to be more accurate and less verbose
* modules/siputils: fix variable typo
* modules/siputils: do not log CRLF
* modules/siputils: do not log every P -header, shortcut loop instead
* modules/siputils: fix $pcv(genaddr) length issue
* modules/siputils: do not let $pcv(value) to contain invalid value
* modules/siputils: populate $pcv(all) after succesful parse
* modules/siputils: add P-Charging-Vector related pseudo variables
* modules/siputils: document P-Charging-Vector related pseudo variables
-- File Changes --
M modules/siputils/chargingvector.c (130)
M modules/siputils/chargingvector.h (13)
M modules/siputils/doc/siputils_admin.xml (32)
M modules/siputils/siputils.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/850.patchhttps://github.com/kamailio/kamailio/pull/850.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/850
Module: kamailio
Branch: master
Commit: de65e91dc69d41277d2ba9459f0f82bcf80a01f5
URL: https://github.com/kamailio/kamailio/commit/de65e91dc69d41277d2ba9459f0f82b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-11-06T22:49:53+01:00
pv: pv_var_to_xavp() - proper test for type int of script var
---
Modified: modules/pv/pv_svar.h
Modified: modules/pv/pv_xavp.c
---
Diff: https://github.com/kamailio/kamailio/commit/de65e91dc69d41277d2ba9459f0f82b…
Patch: https://github.com/kamailio/kamailio/commit/de65e91dc69d41277d2ba9459f0f82b…
---
diff --git a/modules/pv/pv_svar.h b/modules/pv/pv_svar.h
index c955e06..f31839f 100644
--- a/modules/pv/pv_svar.h
+++ b/modules/pv/pv_svar.h
@@ -13,8 +13,8 @@
* 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
*
*/
diff --git a/modules/pv/pv_xavp.c b/modules/pv/pv_xavp.c
index e4e94f3..28bb06e 100644
--- a/modules/pv/pv_xavp.c
+++ b/modules/pv/pv_xavp.c
@@ -634,7 +634,7 @@ int pv_var_to_xavp(str *varname, str *xname)
if(varname->len==1 && varname->s[0] == '*') {
for(it=get_var_all(); it; it=it->next) {
memset(&xval, 0, sizeof(sr_xval_t));
- if(it->v.flags&VAR_VAL_INT)
+ if(it->v.flags==VAR_VAL_INT)
{
xval.type = SR_XTYPE_INT;
xval.v.i = it->v.value.n;
@@ -658,7 +658,7 @@ int pv_var_to_xavp(str *varname, str *xname)
return -1;
}
memset(&xval, 0, sizeof(sr_xval_t));
- if(it->v.flags&VAR_VAL_INT)
+ if(it->v.flags==VAR_VAL_INT)
{
xval.type = SR_XTYPE_INT;
xval.v.i = it->v.value.n;