#### Pre-Submission Checklist
- [x] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [X] 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:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Required for postgresql usage in kazoo cluster
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1672
-- Commit Summary --
* db_postgres: Fixed blob hex encoding (#1255)
-- File Changes --
M src/modules/db_postgres/km_pg_con.c (10)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1672.patchhttps://github.com/kamailio/kamailio/pull/1672.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/1672
The filter has a regex looking for a literal '{' in the beginning of a
line. Some awk implementations interpret this as a meta character, so
the regex is deemed broken. Example with busybox awk (POSIX):
`root@hank2:~# kamctl ps`
`awk: bad regex '^{.+"id"[ ]*:[ ]*[0-9]+[ ]*}$': Invalid contents of {}`
`root@hank2:~#`
To fix this enclose the character in square brackets. This always
matches for a literal '{' and is portable.
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
#### 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:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #1429
#### Description
Hi all,
I was trying to run kamctl on OpenWrt and the regex failed. I found a (closed) issue and the remedy was to use gawk. But it's actually easy to fix in the regex and when I can run busybox awk I can't save the space which would be needed for gawk. OpenWrt is usually run on embedded so space is often an issue :)
Thanks for looking at this!
Kind regards,
Seb
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1669
-- Commit Summary --
* kamctl: make jsonrpc filter portable
-- File Changes --
M utils/kamctl/kamctl.base (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1669.patchhttps://github.com/kamailio/kamailio/pull/1669.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/1669
Module: kamailio
Branch: master
Commit: 59d287586f502a8df71c2e91899fde49594e072e
URL: https://github.com/kamailio/kamailio/commit/59d287586f502a8df71c2e91899fde4…
Author: Sebastian Kemper <sebastian_ml(a)gmx.net>
Committer: Sebastian Kemper <sebastian_ml(a)gmx.net>
Date: 2018-10-07T19:03:51+02:00
kamctl: make jsonrpc filter portable
The filter has a regex looking for a literal '{' in the beginning of a
line. Some awk implementations interpret this as a meta character, so
the regex is deemed broken. Example with busybox awk (POSIX):
root@hank2:~# kamctl ps
awk: bad regex '^{.+"id"[ ]*:[ ]*[0-9]+[ ]*}$': Invalid contents of {}
root@hank2:~#
To fix this enclose the character in square brackets. This always
matches for a literal '{' and is portable.
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
---
Modified: utils/kamctl/kamctl.base
---
Diff: https://github.com/kamailio/kamailio/commit/59d287586f502a8df71c2e91899fde4…
Patch: https://github.com/kamailio/kamailio/commit/59d287586f502a8df71c2e91899fde4…
---
diff --git a/utils/kamctl/kamctl.base b/utils/kamctl/kamctl.base
index adeceb77fb..a776e10d82 100644
--- a/utils/kamctl/kamctl.base
+++ b/utils/kamctl/kamctl.base
@@ -715,7 +715,7 @@ filter_json()
$AWK 'function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s }
BEGIN { line=0; IGNORECASE=1; }
{ line++; }
- NR == 1 && /^{.+"id"[ \t]*:[ \t]*[0-9]+[ \t]*}$/ { print; next; }
+ NR == 1 && /^[{].+"id"[ \t]*:[ \t]*[0-9]+[ \t]*}$/ { print; next; }
NR == 1 && /^200 OK/ { next; }
/^[ \t]*"jsonrpc":[ \t]*"2.0"/ { print; next; }
/^[ \t]*"result":[ \t]*\[.+/ {
Hello,
with commit a213d9d1 I introduced a Code of Conduct to the Kamailio repository
[1].
This topic was initially discussed during the Kamailio development workshop,
started from Daniel. During the development workshop we came to the conclusion
that this is a policy decision and needs broader discussion in the Kamailio
Management board and also the Kamailio Admin-Team.
This discussion started last Friday, and after several days of discussion we
decided to choose an existing Code of Conduct. We adapted the CoC of the
Debian Project [2] and did a few changes for readability and also to adapt it
to the (smaller) scope of our project.
This CoC is in my opinion a good, generic and pragmatic document. Many people
in our community are already in one way or the other involved in the Debian
project.
I am aware that this is (especially right now) a hot topic for some people. My
personal opinion is that we managed to get a great fit to the existing
Kamailio community culture. The history of this project shows that we are an
open project and welcome contributions from anybody. So I don't expect any
impact because of this change.
We also ensured that the CoC only applies inside the Kamailio project, and
that the Kamailio Management board is the authoritative instance in any
conflicts about this topic.
I don't want to start a classical "bike-shedding" discussion on this list
about this topic.. But if you have any questions about this, lets us know. You
can also contact the Kamailio Management Board, if you want to keep it
private.
Best regards,
Henning Westerholt
[1] https://github.com/kamailio/kamailio/blob/master/CODE_OF_CONDUCT.md
[2] https://www.debian.org/code_of_conduct