Two fixes in this PR.
The first is to perform the ntohs also on hep messaging carrying payload other than SIP.
The scond is to take in count the definition of captid chunk in HEPv3 (uint32 BE) different from the one for HEPv2 (uint16 LE).
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/874
-- Commit Summary --
* sipcapture: perform ntohs on src and dst port when payload is not SIP
* sipcapture: fix captid extraction from hep header for v3
-- File Changes --
M modules/sipcapture/hep.c (18)
M modules/sipcapture/hep.h (6)
M modules/sipcapture/sipcapture.c (10)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/874.patchhttps://github.com/kamailio/kamailio/pull/874.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/874
Module: kamailio
Branch: master
Commit: 49d43d789eb0cecdfd60c5c43a0cf478e101cd47
URL: https://github.com/kamailio/kamailio/commit/49d43d789eb0cecdfd60c5c43a0cf47…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-12-01T12:37:39+01:00
ss7ops: fix the dobook markdown and properly named the sections
---
Modified: modules/ss7ops/doc/ss7ops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/49d43d789eb0cecdfd60c5c43a0cf47…
Patch: https://github.com/kamailio/kamailio/commit/49d43d789eb0cecdfd60c5c43a0cf47…
---
diff --git a/modules/ss7ops/doc/ss7ops_admin.xml b/modules/ss7ops/doc/ss7ops_admin.xml
index f38ee6c..fc28573 100644
--- a/modules/ss7ops/doc/ss7ops_admin.xml
+++ b/modules/ss7ops/doc/ss7ops_admin.xml
@@ -35,26 +35,37 @@
</itemizedlist>
</para>
</section>
- </section>
<section>
- <title>Parameters</title>
- <section id="ss7ops.p.isup_to_json">
- <title><varname>isup_to_json</varname> (integer)</title>
+ <title>Functions</title>
+ <section id="ss7ops.f.isup_to_json">
+ <function moreinfo="none">isup_to_json(proto)</function>
+ <title><varname>isup_to_json</varname></title>
+ <para>
+ Pass the HEP protocol type as parameter (e.g. 8 for M2UA) and the
+ contained ISUP payload will be converted to a JSON string. The result
+ can be accessed using the $isup(1) variable.
+ </para>
<para>
- Pass the HEP type as parameter (e.g. 8 for M2UA) and the contained
- ISUP payload will be converted to a JSON string. It can be consumed
- using the $isup(1) parameter.
+ <example>
+ <title><function>isup_to_json</function> usage</title>
+ <programlisting format="linespecific">
+...
+isup_to_json(8);
+...
+</programlisting>
+ </example>
</para>
</section>
</section>
<section>
- <title>Functions</title>
+ <title>Variables</title>
<section id="ss7ops.f.isup">
- <title><varname>isup</varname> (integer)</title>
+ <title><varname>isup(id)</varname></title>
<para>
- If set to 1, return the JSON representation as string for the last
+ If id is set to 1, return the JSON representation as string for the last
message that was parsed.
</para>
</section>
+ </section>
</chapter>