<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] 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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
ce5362d adds stop_recording function that is similar to start_recording. This is useful when wanting to stop recording in the middle of the call since it has it's own message and is not attached to the offer/answer/delete message (like the "record-call off" flag in rtpengine_manage function).
45b4d35 enables the use of flags with both start_recording and stop_recording functions. This allows overwriting fields like call-id to start/stop recording for different ongoing calls (for example from a rtimer route).
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1253
-- Commit Summary --
* rtpengine: add stop_recording function
* rtpengine: make start_recording and stop_recording accept flags
-- File Changes --
M src/modules/rtpengine/doc/rtpengine_admin.xml (37)
M src/modules/rtpengine/rtpengine.c (55)
M src/modules/rtpengine/rtpengine.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1253.patchhttps://github.com/kamailio/kamailio/pull/1253.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/1253
### Description
Using the DBTEXT database engine I add a couple domains to the table, issue a reload and the attempt to list the domains loaded. The output of the listing only shows the 1st entry in the domain table, however, testing with a sip client, I can confirm that all domains are actually loaded, it appears that the listing of the domains is what is at fault here.
domain data:
```
# cat domain
id(int,auto) domain(string) did(string,null) last_modified(int)
1:testing.one.two:1:1506437399
2:testing.one.three:2:1506437399
3:testing.two.one:3:1506437399
4:testing.two.two:3:1506437399
```
domain showdb
```
# kamctl domain showdb
[1, 'testing.one.two', '1', 1506437399]
[2, 'testing.one.three', '2', 1506437399]
[3, 'testing.two.one', '3', 1506437399]
[4, 'testing.two.two', '3', 1506437399]
```
domain show
```
# kamctl domain show
{
"jsonrpc": "2.0",
"result": {
"domain": "testing.one.two",
"did": "1"
},
"id": 32341
}
```
If I add some domain attribues the output is different again, data is the same above with the addition of some domain attrs.
domain_attrs:
```
# cat domain_attrs
id(int,auto) did(string) name(string) type(int) value(string) last_modified(int)
1:1:test_name:2:test_value:1506535015
```
domain show:
```
# kamctl domain show
{
"jsonrpc": "2.0",
"result": {
"did": "1",
"attr": "test_name"
},
"id": 32468
}
```
I'm using the following version of kamailio, compiled from the kamailio v5.0.3 src code.
kamailio version:
```
# kamailio -V
version: kamailio 5.0.3 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 17:43:41 Sep 15 2017 with gcc 4.8.5
```
Running onCentOS 7:
```
# uname -a
Linux klb01.home.ie 3.10.0-693.2.2.el7.x86_64 #1 SMP Tue Sep 12 22:26:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
```
Any thoughts?
--
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/1251
Module: kamailio
Branch: master
Commit: d3b7f0d390dd430d40a1d47112f076f4b21e3afe
URL: https://github.com/kamailio/kamailio/commit/d3b7f0d390dd430d40a1d47112f076f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-29T09:58:04+02:00
kamctl: added db subcommand to mange records in version table
---
Modified: utils/kamctl/kamctl
Modified: utils/kamctl/kamctl.sqlbase
---
Diff: https://github.com/kamailio/kamailio/commit/d3b7f0d390dd430d40a1d47112f076f…
Patch: https://github.com/kamailio/kamailio/commit/d3b7f0d390dd430d40a1d47112f076f…
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 3aaecbd15a..569ddd8f3b 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -1050,6 +1050,32 @@ db_ops() {
fi
$DBCMDCONNECT
;;
+ version)
+ shift
+ if [ $# -ne 3 ] ; then
+ merr "missing parameters"
+ exit 1
+ fi
+ case $1 in
+ add)
+ QUERY="INSERT INTO version (table_name, table_version) VALUES ('$2', $3);"
+ $DBCMD "$QUERY"
+ ;;
+ set)
+ QUERY="DELETE FROM version WHERE table_name='$2';"
+ $DBCMD "$QUERY"
+ QUERY="INSERT INTO version (table_name, table_version) VALUES ('$2', $3);"
+ $DBCMD "$QUERY"
+ ;;
+ update)
+ QUERY="UPDATE version SET table_version=$3 WHERE table_name='$2';"
+ $DBCMD "$QUERY"
+ ;;
+ *)
+ usage_db_ops
+ exit 1
+ esac
+ ;;
*)
usage_db_ops
exit 1
diff --git a/utils/kamctl/kamctl.sqlbase b/utils/kamctl/kamctl.sqlbase
index 2aef9801af..f821d2a799 100644
--- a/utils/kamctl/kamctl.sqlbase
+++ b/utils/kamctl/kamctl.sqlbase
@@ -67,6 +67,9 @@ cat <<EOF
db nmatch <table> <key> <value>...... display record from table that has
........................... column key equal to value as non-string
db connect .......................... connect to db server via cli
+ db version add <table> <value> ...... add new value in version table
+ db version set <table> <value> ...... set value in version table
+ db version update <table> <value> ... update value in version table
EOF
}
USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_db_ops"
@@ -79,7 +82,7 @@ usage_speeddial() {
cat <<EOF
speeddial show <speeddial-id> ....... show speeddial details
speeddial list <sip-id> ............. list speeddial for uri
- speeddial add <sip-id> <sd-id> <new-uri> [<desc>] ...
+ speeddial add <sip-id> <sd-id> <new-uri> [<desc>] ...
........................... add a speedial (*)
speeddial rm <sip-id> <sd-id> ....... remove a speeddial (*)
speeddial help ...................... help message
During loading kamailio i got error
```
0(55) ERROR: <core> [db.c:450]: db_check_table_version(): invalid version 8 for table location found, expected 9 (check table structure and table "version")
0(55) ERROR: usrloc [dlist.c:659]: register_udomain(): error during table version check.
0(55) ERROR: registrar [registrar.c:651]: domain_fixup(): failed to register domain
```
Module now use version 9 of table `location` but script contains version 8.
Please update database scripts
--
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/1254
Hi List,
shouldn't this be possible ?
$xavp(ulattrs=>first) = 33;
$var(ccv) = "whatever";
$xavp(ulattrs[0]=>$var(ccv)) = "some value";
when using in the particular case of usrloc attrs, i see the value of the attr created as "first" (correct) and "$var(ccv)" which i believe is incorrect, it should be "whatever".
thoughts ?