I noticed that when there is an error in substr transformation, config file line number is not included in the error message:
Mar 4 22:40:24 lohi /usr/bin/sip-proxy[7801]: ERROR: pv [pv_trans.c:572]: tr_eval_string(): substr out of range
--
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/issues/1019
Module: kamailio
Branch: master
Commit: a5c4dbc280742ff2b2aadb7ae3ea45ae5a091e64
URL: https://github.com/kamailio/kamailio/commit/a5c4dbc280742ff2b2aadb7ae3ea45a…
Author: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
Committer: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
Date: 2017-03-10T07:20:00+01:00
ims_dialog: remove execinfo usage
Currently, ims_dialog includes execinfo.h to use backtrace in the
backtrace2str function. However, all calls to backtrace2str are
commented so disable this function through "if 0" and comment the
include on execinfo.h to allow the cross-compilation of the ims_dialog
module as some libc's don't always have this header (uclibc-ng, musl)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
---
Modified: src/modules/ims_dialog/dlg_hash.c
---
Diff: https://github.com/kamailio/kamailio/commit/a5c4dbc280742ff2b2aadb7ae3ea45a…
Patch: https://github.com/kamailio/kamailio/commit/a5c4dbc280742ff2b2aadb7ae3ea45a…
---
diff --git a/src/modules/ims_dialog/dlg_hash.c b/src/modules/ims_dialog/dlg_hash.c
index 999ae01..a7afdbc 100644
--- a/src/modules/ims_dialog/dlg_hash.c
+++ b/src/modules/ims_dialog/dlg_hash.c
@@ -17,7 +17,7 @@
#include "dlg_profile.h"
#include "dlg_handlers.h"
#include "dlg_db_handler.h"
-#include <execinfo.h>
+//#include <execinfo.h>
#define MAX_LDG_LOCKS 2048
#define MIN_LDG_LOCKS 2
@@ -70,6 +70,7 @@ static int dlg_hash_size_out = 4096;
}\
}while(0)
+#if 0
inline static int backtrace2str(char* buf, int size)
{
void* bt[32];
@@ -87,6 +88,7 @@ inline static int backtrace2str(char* buf, int size)
}
return 0;
}
+#endif
/*!
* \brief Initialize the global dialog table
Currently, ims_dialog includes execinfo.h to use backtrace in the
backtrace2str function. However, all calls to backtrace2str are
commented so disable this function through "if 0" and comment the
include on execinfo.h to allow the cross-compilation of the ims_dialog
module as some libc's don't always have this header (uclibc-ng, musl)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice(a)gmail.com>
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/996
-- Commit Summary --
* Fix execinfo error in ims_dialog module
-- File Changes --
M src/modules/ims_dialog/dlg_hash.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/996.patchhttps://github.com/kamailio/kamailio/pull/996.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/996