Module: kamailio
Branch: master
Commit: 1c43e8b4ed63d29ef912211e368faaea6a62dcd8
URL: https://github.com/kamailio/kamailio/commit/1c43e8b4ed63d29ef912211e368faae…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-01-11T12:46:26+01:00
modules: readme files regenerated - dialog ... [skip ci]
---
Modified: src/modules/dialog/README
---
Diff: https://github.com/kamailio/kamailio/commit/1c43e8b4ed63d29ef912211e368faae…
Patch: https://github.com/kamailio/kamailio/commit/1c43e8b4ed63d29ef912211e368faae…
---
diff --git a/src/modules/dialog/README b/src/modules/dialog/README
index 8b85f1f05e..533a41caab 100644
--- a/src/modules/dialog/README
+++ b/src/modules/dialog/README
@@ -1985,10 +1985,13 @@ kamcmd dlg.list_ctx
* mkey - matching key. It can be: 'ruri' - match against R-URI of the
dialog; 'furi' - match against From header URI of the dialog;
'turi' - match against the To header URI of the dialog; 'callid' -
- match against Call-Id value.
+ match against Call-Id value; 'start_ts' - match against start
+ timestamp.
* mop - matching operator. It can be: 'eq' - match using string
comparison; 're' - match using regular expression; 'sw' - match
- using starts-with (prefix) comparison.
+ using starts-with (prefix) comparison; 'gt' - match using integer
+ greater comparison; 'lt' - match using integer lesser comparison.
+ Integer comparison can be used only with 'start_ts' key.
* mval - matching value.
RPC Command Format:
@@ -1997,6 +2000,8 @@ kamcmd dlg.list_match furi eq sip:alice@test.com 2
...
kamcmd dlg.list_match furi sw sip:alice@
...
+kamcmd dlg.list_match start_ts gt s:1641550904
+...
9.4. dlg.list_match_ctx
<!-- 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 -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2997
-- Commit Summary --
* dialog: add filter based on start timestamp to dlg.list_match
* dialog: update documentation
-- File Changes --
M src/modules/dialog/dialog.c (49)
M src/modules/dialog/doc/dialog_admin.xml (10)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2997.patchhttps://github.com/kamailio/kamailio/pull/2997.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2997
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/2997(a)github.com>
Module: kamailio
Branch: master
Commit: 97293a53060b2b2329018ca7bbeb02a26b0a4afe
URL: https://github.com/kamailio/kamailio/commit/97293a53060b2b2329018ca7bbeb02a…
Author: Riccardo Villa <riccardo.villa(a)netaxis.be>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-01-11T12:45:40+01:00
dialog: update documentation
---
Modified: src/modules/dialog/doc/dialog_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/97293a53060b2b2329018ca7bbeb02a…
Patch: https://github.com/kamailio/kamailio/commit/97293a53060b2b2329018ca7bbeb02a…
---
diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml
index d456d545ef..290e68d4d6 100644
--- a/src/modules/dialog/doc/dialog_admin.xml
+++ b/src/modules/dialog/doc/dialog_admin.xml
@@ -2500,12 +2500,16 @@ dlg_reset_property("timeout-noreset");
<emphasis>mkey</emphasis> - matching key. It can be: 'ruri' -
match against R-URI of the dialog; 'furi' - match against From
header URI of the dialog; 'turi' - match against the To header
- URI of the dialog; 'callid' - match against Call-Id value.
+ URI of the dialog; 'callid' - match against Call-Id value;
+ 'start_ts' - match against start timestamp.
</para></listitem>
<listitem><para>
<emphasis>mop</emphasis> - matching operator. It can be: 'eq' -
match using string comparison; 're' - match using regular
- expression; 'sw' - match using starts-with (prefix) comparison.
+ expression; 'sw' - match using starts-with (prefix) comparison;
+ 'gt' - match using integer greater comparison; 'lt' - match
+ using integer lesser comparison. Integer comparison can be used
+ only with 'start_ts' key.
</para></listitem>
<listitem><para>
<emphasis>mval</emphasis> - matching value.
@@ -2517,6 +2521,8 @@ dlg_reset_property("timeout-noreset");
&kamcmd; dlg.list_match furi eq sip:alice@test.com 2
...
&kamcmd; dlg.list_match furi sw sip:alice@
+...
+&kamcmd; dlg.list_match start_ts gt s:1641550904
...
</programlisting>
</section>
### Description
I want to convert 183 messages to 180 using the `ring_insert_callid` function.
This does not work when used `log_prefix`. Generated error like
> siputils [ring.c:300]: conv183(): 183 message got parsed too far!
#### Reproduction
you can start kamailio using config file like
```
log_prefix="{$mt $hdr(CSeq) $ci} "
listen=udp:eth0:5060
loadmodule "xlog.so"
loadmodule "pv.so"
loadmodule "sl.so"
loadmodule "siputils.so"
modparam("siputils", "ring_timeout", 30)
request_route {
xlog("L_ERR", "Test1: $rc\n");
if (is_request()) {
ring_insert_callid();
}
$du = "sip:192.168.0.1;tranport=udp";
forward();
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2989
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/2989(a)github.com>