Module: kamailio
Branch: master
Commit: cb7810c939da9c8f4385b530539487528ac8705d
URL: https://github.com/kamailio/kamailio/commit/cb7810c939da9c8f4385b5305394875…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-15T15:09:37+02:00
tls: docs for event_route[tls:connection-out] and event_callback param
---
Modified: src/modules/tls/doc/params.xml
Modified: src/modules/tls/doc/rpc.xml
Modified: src/modules/…
[View More]tls/doc/tls.xml
---
Diff: https://github.com/kamailio/kamailio/commit/cb7810c939da9c8f4385b5305394875…
Patch: https://github.com/kamailio/kamailio/commit/cb7810c939da9c8f4385b5305394875…
---
diff --git a/src/modules/tls/doc/params.xml b/src/modules/tls/doc/params.xml
index 5ab2426e7b..e3d236dea4 100644
--- a/src/modules/tls/doc/params.xml
+++ b/src/modules/tls/doc/params.xml
@@ -1164,5 +1164,36 @@ modparam("tls", "config", "/usr/local/etc/kamailio/tls.cfg")
</programlisting>
</example>
</section>
+ <section id="tls.p.event_callback">
+ <title><varname>event_callback</varname> (str)</title>
+ <para>
+ The name of the function in the kemi configuration file (embedded
+ scripting language such as Lua, Python, ...) to be executed instead
+ of event_route[...] blocks specific for tls module.
+ </para>
+ <para>
+ The function has one string parameter, the value is the name of
+ the event_route block, respectively "tls:connection-out".
+ </para>
+ <para>
+ <emphasis>
+ Default value is 'empty' (no function is executed for events).
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>event_callback</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("tls", "event_callback", "ksr_tls_event")
+...
+-- event callback function implemented in Lua
+function ksr_tls_event(evname)
+ KSR.info("===== tls module triggered event: " .. evname .. "\n");
+ return 1;
+end
+...
+</programlisting>
+ </example>
+ </section>
</section>
diff --git a/src/modules/tls/doc/rpc.xml b/src/modules/tls/doc/rpc.xml
index cd432d85d9..8f3070648b 100644
--- a/src/modules/tls/doc/rpc.xml
+++ b/src/modules/tls/doc/rpc.xml
@@ -15,8 +15,8 @@
<section id="tls.r.tls.info">
<title><function>tls.info</function></title>
<para>
- List internal information related to the TLS module in
- a short list - max connections, open connections and the
+ List internal information related to the TLS module in
+ a short list - max connections, open connections and the
write queue size.
</para>
<para>Parameters: </para>
@@ -53,7 +53,7 @@
<section id="tls.r.tls.reload">
<title><function>tls.reload</function></title>
<para>
- Reload the external TLS configuration file (aka tls.cfg). It does not reload
+ Reload the external TLS configuration file (aka tls.cfg). It does not reload
modparam() parameters. Note that existing active TLS connections are not
terminated and they continue to use the old certificates. The new configuration
will be used for new connections.
diff --git a/src/modules/tls/doc/tls.xml b/src/modules/tls/doc/tls.xml
index 11c4aa7318..0c8fce400f 100644
--- a/src/modules/tls/doc/tls.xml
+++ b/src/modules/tls/doc/tls.xml
@@ -275,6 +275,31 @@ make -C modules/tls extra_defs="-DTLS_WR_DEBUG -DTLS_RD_DEBUG"
<xi:include href="functions.xml"/>
<xi:include href="rpc.xml"/>
<xi:include href="history.xml"/>
+
+ <section id="tls.event_routes">
+ <title>Event Routes</title>
+ <section id="tls.evrt.connection_out">
+ <title>event_route[tls:connection-out]</title>
+ <para>
+ Event route to be executed when a TLS connection is opened by
+ &kamailio;. If drop() is executed in the event route, then the
+ data is no longer sent over the connection.
+ </para>
+ <example>
+ <title>Use of <varname>event_route[tls:connection-out]</varname></title>
+ <programlisting>
+...
+event_route[tls:connection-out] {
+ if($sndto(ip)=="1.2.3.4") {
+ drop;
+ }
+}
+...
+ </programlisting>
+ </example>
+
+ </section>
+ </section>
</chapter>
</book>
[View Less]
### Description
During some test on my server I forgot to configure a valid listen network address. It's my fault but Kamailio crashed with a useless message:
> kamailio[4739]: segfault at 0 ip 00007f022ede5e71 sp 00007fff94033f08 error 4 in libc-2.17.so[7f022ec82000+1b6000
I think it's better to abort the startup if no listen address is specified and with an explicit error message, instead of produce a segfault and a crash without any error
--
You are receiving this because you are …
[View More]subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1098
[View Less]
Hi fulks
I try changing info value in PAI header-field by using subst() function
into route block as below:
route[3]
{
...
$var(fromU) = 22227777;
...
subst('/^P-Asserted-Identity:(.*)sip:[^@]*@([a-zA-Z0-9.:]+)(
.*)$/P-Asserted-Identity:\1sip:$var(fromU)@\2\3/ig');
...
...
forward();
exit;
}
But when I read ngrep command output I catch P-Asserted-Identity header as
below:
+++++++++++++++++++++++++++++++++++++++++++++++
before …
[View More]route[3] processing:
INVITE sip:99992222@15.113.132.21:5060 SIP/2.0.
...
P-Asserted-Identity: "Display Name 7777" <sip:7777@101.14.101.245>.
...
+++++++++++++++++++++++++++++++++++++++++++++++
after route[3] processing:
INVITE sip:99992222@15.113.132.21:5060 SIP/2.0.
...
P-Asserted-Identity: "Display Name 7777"
<sip:22227777@101.14.101.245>.P-Asserted-Identity:
"Display Name 7777" <sip:7777@101.14.101.245>.
...
+++++++++++++++++++++++++++++++++++++++++++++++
So, is it normal or bug behaviors?
Regards
CMA
[View Less]
CC (gcc) [M rls.so] subscribe.o
subscribe.c: In function 'reply_200':
subscribe.c:340:6: warning: unused variable 'len' [-Wunused-variable]
int len;
^~~
Module: kamailio
Branch: master
Commit: 1fe94fe8129649703c92a87ebd402068faa66624
URL: https://github.com/kamailio/kamailio/commit/1fe94fe8129649703c92a87ebd40206…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-08-14T23:29:41+02:00
pkg/kamailio/deb: version set to 5.1.0-dev6
---
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/changelog
Modified: pkg/kamailio/deb/…
[View More]precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
Modified: pkg/kamailio/deb/xenial/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/1fe94fe8129649703c92a87ebd40206…
Patch: https://github.com/kamailio/kamailio/commit/1fe94fe8129649703c92a87ebd40206…
---
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
diff --git a/pkg/kamailio/deb/xenial/changelog b/pkg/kamailio/deb/xenial/changelog
index 8174ad58ea..d2709ed68c 100644
--- a/pkg/kamailio/deb/xenial/changelog
+++ b/pkg/kamailio/deb/xenial/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.0~dev6) unstable; urgency=medium
+
+ * version set to 5.1.0-dev6
+
+ -- Victor Seva <vseva(a)debian.org> Mon, 14 Aug 2017 23:28:16 +0200
+
kamailio (5.1.0~dev5) unstable; urgency=medium
* version set to 5.1.0-dev5
[View Less]