<!-- 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 -->
- [ ] 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)
- [ ] 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)
- [ ] 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
- [ ] 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/2086
-- Commit Summary --
* Create lol
-- File Changes --
A Amiya_Chaturvedi/lol (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2086.patchhttps://github.com/kamailio/kamailio/pull/2086.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/2086
Module: kamailio
Branch: master
Commit: 3033a26a6a8a8e7075dd5a86bf376c73830f2bbe
URL: https://github.com/kamailio/kamailio/commit/3033a26a6a8a8e7075dd5a86bf376c7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-10-01T13:31:47+02:00
siptrace: docs for sip_trace_mode() function
---
Modified: src/modules/siptrace/doc/siptrace_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/3033a26a6a8a8e7075dd5a86bf376c7…
Patch: https://github.com/kamailio/kamailio/commit/3033a26a6a8a8e7075dd5a86bf376c7…
---
diff --git a/src/modules/siptrace/doc/siptrace_admin.xml b/src/modules/siptrace/doc/siptrace_admin.xml
index 21d6090c74..df8fe2f017 100644
--- a/src/modules/siptrace/doc/siptrace_admin.xml
+++ b/src/modules/siptrace/doc/siptrace_admin.xml
@@ -512,7 +512,7 @@ modparam("siptrace", "auth_key", "spoihepuirthpeuia")
</example>
</section>
</section>
-
+
<section>
<title>Functions</title>
<section id="siptrace.f.sip_trace">
@@ -569,6 +569,35 @@ sip_trace("sip:10.1.1.2:5085", "$ci-abc", "d");
</example>
</section>
+ <section id="siptrace.f.sip_trace_mode">
+ <title>
+ <function moreinfo="none">sip_trace_mode(tmode])</function>
+ </title>
+ <para>
+ Set the tracing mode: message, transaction or dialog. Only the first
+ character of the parameter matters: m or M for message; t or T for
+ transaction; d or D for dialog.
+ </para>
+ <para>
+ In message tracing mode only the current message is stored or mirrored.
+ In transaction tracing mode, all the messages of the current transaction
+ are stored or mirrored. In dialog tracing mode, all the messages of the
+ current dialog are stored or mirrored.
+ </para>
+ <para>
+ This function can be used in ANY_ROUTE.
+ </para>
+ </emphasis>
+ <example>
+ <title><function>sip_trace_mode()</function> usage</title>
+ <programlisting format="linespecific">
+...
+sip_trace_mode("t");
+...
+</programlisting>
+ </example>
+ </section>
+
<section id="siptrace.f.hlog">
<title>
<function moreinfo="none">hlog([correlation_id,] message)</function>
Module: kamailio
Branch: master
Commit: 41f6ddb8162960633b005c759b74efd86296d021
URL: https://github.com/kamailio/kamailio/commit/41f6ddb8162960633b005c759b74efd…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-10-01T10:17:03+02:00
modules: readme files regenerated - siptrace ... [skip ci]
---
Modified: src/modules/siptrace/README
---
Diff: https://github.com/kamailio/kamailio/commit/41f6ddb8162960633b005c759b74efd…
Patch: https://github.com/kamailio/kamailio/commit/41f6ddb8162960633b005c759b74efd…
---
diff --git a/src/modules/siptrace/README b/src/modules/siptrace/README
index 35b1dd78a3..951482065d 100644
--- a/src/modules/siptrace/README
+++ b/src/modules/siptrace/README
@@ -435,8 +435,9 @@ modparam("siptrace", "force_send_sock", "sip:10.1.1.2:5000")
If set to 1, the module uses core events triggered when receiving or
sending SIP traffic to mirror traffic to a SIP capture server using
- HEP. It will automatically do the mirroring of all traffic, no need to
- set the siptrace flag per request.
+ HEP. It will automatically do the mirroring of all SIP traffic. It is
+ no longer needed to set the siptrace flag per request or execute
+ sip_trace(), if it is done, then there mirroring is duplicated.
If set to 0, no automatic mirroring of SIP traffic via HEP.
Module: kamailio
Branch: master
Commit: 3f23f9ef88e4fa2af8d24c3260cb9821aa2f64cc
URL: https://github.com/kamailio/kamailio/commit/3f23f9ef88e4fa2af8d24c3260cb982…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-10-01T10:06:47+02:00
siptrace: docs - more info on using trace_mode vs flag/sip_trace()
---
Modified: src/modules/siptrace/doc/siptrace_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/3f23f9ef88e4fa2af8d24c3260cb982…
Patch: https://github.com/kamailio/kamailio/commit/3f23f9ef88e4fa2af8d24c3260cb982…
---
diff --git a/src/modules/siptrace/doc/siptrace_admin.xml b/src/modules/siptrace/doc/siptrace_admin.xml
index 875dc2348f..21d6090c74 100644
--- a/src/modules/siptrace/doc/siptrace_admin.xml
+++ b/src/modules/siptrace/doc/siptrace_admin.xml
@@ -471,8 +471,10 @@ modparam("siptrace", "force_send_sock", "sip:10.1.1.2:5000")
<para>
If set to 1, the module uses core events triggered when receiving
or sending SIP traffic to mirror traffic to a SIP capture server
- using HEP. It will automatically do the mirroring of all traffic,
- no need to set the siptrace flag per request.
+ using HEP. It will automatically do the mirroring of all SIP traffic.
+ It is no longer needed to set the siptrace flag per request or
+ execute sip_trace(), if it is done, then there mirroring is
+ duplicated.
</para>
<para>
If set to 0, no automatic mirroring of SIP traffic via HEP.