Module: kamailio
Branch: master
Commit: 3619432d8bc27abde97081ba223d19f86b0932a7
URL:
https://github.com/kamailio/kamailio/commit/3619432d8bc27abde97081ba223d19f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-05-14T11:04:49+02:00
siptrace: use the str for null values from pv core api
---
Modified: src/modules/siptrace/siptrace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3619432d8bc27abde97081ba223d19f…
Patch:
https://github.com/kamailio/kamailio/commit/3619432d8bc27abde97081ba223d19f…
---
diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index dfdbdcd409..642526f63f 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -68,7 +68,7 @@ MODULE_VERSION
|| ((_msg->flags & trace_flag) == 0))
#define is_null_pv(_str) \
- (!str_strcmp(&_str, &null_pv_value_str))
+ (!str_strcmp(&_str, pv_get_null_str()))
struct tm_binds tmb;
struct dlg_binds dlgb;
@@ -136,8 +136,6 @@ static str totag_column = str_init("totag"); /* 11 */
static str siptrace_info_dlgkey = str_init("__siptrace_info_dlg_key__");
static str siptrace_info_avp_str = str_init("$avp(__siptrace_info_avp__)");
-static str null_pv_value_str = str_init("<null>");
-
#define NR_KEYS 12
#define SIP_TRACE_TABLE_VERSION 4