Module: kamailio
Branch: master
Commit: 5f0792e7ee985b80601e6f952269bc48031e6356
URL: https://github.com/kamailio/kamailio/commit/5f0792e7ee985b80601e6f952269bc4…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-08-07T11:31:22+02:00
modules: readme files regenerated - topos ... [skip ci]
---
Modified: src/modules/topos/README
---
Diff: https://github.com/kamailio/kamailio/commit/5f0792e7ee985b80601e6f952269bc4…
Patch: https://github.com/kamailio/kamailio/commit/5f0792e7ee985b80601e6f952269bc4…
---
diff --git a/src/modules/topos/README b/src/modules/topos/README
index 3e42389014..cf4bce61f6 100644
--- a/src/modules/topos/README
+++ b/src/modules/topos/README
@@ -32,6 +32,11 @@ Daniel-Constantin Mierla
3.5. branch_expire (int)
3.6. dialog_expire (int)
3.7. clean_interval (int)
+ 3.8. event_callback (str)
+
+ 4. Event Routes
+
+ 4.1. event_route[topos:msg-outgoing]
List of Examples
@@ -42,6 +47,8 @@ Daniel-Constantin Mierla
1.5. Set branch_expire parameter
1.6. Set dialog_expire parameter
1.7. Set clean_interval parameter
+ 1.8. Set event_callback parameter
+ 1.9. Usage of event_route[topos:msg-outgoing]
Chapter 1. Admin Guide
@@ -62,6 +69,11 @@ Chapter 1. Admin Guide
3.5. branch_expire (int)
3.6. dialog_expire (int)
3.7. clean_interval (int)
+ 3.8. event_callback (str)
+
+ 4. Event Routes
+
+ 4.1. event_route[topos:msg-outgoing]
1. Overview
@@ -102,6 +114,7 @@ Chapter 1. Admin Guide
3.5. branch_expire (int)
3.6. dialog_expire (int)
3.7. clean_interval (int)
+ 3.8. event_callback (str)
3.1. storage (str)
@@ -188,3 +201,49 @@ modparam("topos", "dialog_expire", 3600)
...
modparam("topos", "clean_interval", 30)
...
+
+3.8. event_callback (str)
+
+ 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.
+
+ The function receives a string parameter with the name of the event.
+
+ Default value is 'empty' (no function is executed for events).
+
+ Example 1.8. Set event_callback parameter
+...
+modparam("topos", "event_callback", "ksr_topos_event")
+...
+-- event callback function implemented in Lua
+function ksr_topos_event(evname)
+ KSR.info("===== topos module triggered event: " .. evname .. "\n");
+ return 1;
+end
+...
+
+4. Event Routes
+
+ 4.1. event_route[topos:msg-outgoing]
+
+4.1. event_route[topos:msg-outgoing]
+
+ It is executed before doing topology stripping processing for an
+ outgoing SIP message. If 'drop' is executed inside the event route,
+ then the module skips doing the topology hiding.
+
+ Inside the event route the variables $sndto(ip), $sndto(port) and
+ $sndto(proto) point to the destination. The SIP message is not the one
+ to be sent out, but an internally generated one at startup, to avoid
+ reparsing the outgoing SIP message for the cases when topology hiding
+ is not wanted.
+
+ Example 1.9. Usage of event_route[topos:msg-outgoing]
+...
+event_route[topos:msg-outgoing] {
+ if($sndto(ip)=="10.1.1.10") {
+ drop;
+ }
+}
+...
Module: kamailio
Branch: master
Commit: f6dc87151138e600d593a345109ba2028d2dc16f
URL: https://github.com/kamailio/kamailio/commit/f6dc87151138e600d593a345109ba20…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-07T11:23:53+02:00
topos: docs for event_callback param and event_route[topos:msg-outgoing]
---
Modified: src/modules/topos/doc/topos_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/f6dc87151138e600d593a345109ba20…
Patch: https://github.com/kamailio/kamailio/commit/f6dc87151138e600d593a345109ba20…
---
diff --git a/src/modules/topos/doc/topos_admin.xml b/src/modules/topos/doc/topos_admin.xml
index 77de4b8cbd..bda8ab766d 100644
--- a/src/modules/topos/doc/topos_admin.xml
+++ b/src/modules/topos/doc/topos_admin.xml
@@ -223,7 +223,66 @@ modparam("topos", "clean_interval", 30)
</programlisting>
</example>
</section>
-
+ <section id="topos.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.
+ </para>
+ <para>
+ The function receives a string parameter with the name of the event.
+ </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("topos", "event_callback", "ksr_topos_event")
+...
+-- event callback function implemented in Lua
+function ksr_topos_event(evname)
+ KSR.info("===== topos module triggered event: " .. evname .. "\n");
+ return 1;
+end
+...
+</programlisting>
+ </example>
+ </section>
+ </section>
+ <section>
+ <title>Event Routes</title>
+ <section>
+ <title>event_route[topos:msg-outgoing]</title>
+ <para>
+ It is executed before doing topology stripping processing for an outgoing
+ SIP message. If 'drop' is executed inside the event route, then the
+ module skips doing the topology hiding.
+ </para>
+ <para>
+ Inside the event route the variables $sndto(ip), $sndto(port) and
+ $sndto(proto) point to the destination. The SIP message is not the one
+ to be sent out, but an internally generated one at startup, to avoid
+ reparsing the outgoing SIP message for the cases when topology hiding
+ is not wanted.
+ </para>
+ <example>
+ <title>Usage of event_route[topos:msg-outgoing]</title>
+ <programlisting format="linespecific">
+...
+event_route[topos:msg-outgoing] {
+ if($sndto(ip)=="10.1.1.10") {
+ drop;
+ }
+}
+...
+</programlisting>
+ </example>
+ </section>
</section>
</chapter>
Hi,
I think, I found one issue with Daniel's new (great) TOPOS module:
I've configured it on my Edge-Proxy (aka. Proxy-CSCF) as a replacement
for an SBC and I ran into a strange issue.
Everything works fine, except in one Scenario:
Both A and B Party are registered using the same Proxy, so TOPOS is
triggered twice: On the originating Leg and on the terminating Leg.
It works properly, if I'm just having one Leg on the Proxy (either
because it's going to/coming from the Breakout Gateway or because the
B-Party registered using a different Proxy).
It appears to happen only, if the B-Party has a public IP, if no NAT
involved (Wtf?!?), it actually happened initially when I called my
mother.
I've looked through the source-code but couldn't find a proper
solution. Anyone an idea?
Thanks,
Carsten
P.S: Please find attached a full trace of such call and the according
database entries
--
Carsten Bock
CEO (Geschäftsführer)
ng-voice GmbH
Millerntorplatz 1
20359 Hamburg / Germany
http://www.ng-voice.com
mailto:carsten@ng-voice.com
Office +49 40 5247593-40
Fax +49 40 5247593-99
Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/
Module: kamailio
Branch: master
Commit: 20af8da05513345ccb3d372e097c71a115ebe5a7
URL: https://github.com/kamailio/kamailio/commit/20af8da05513345ccb3d372e097c71a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-08-04T15:16:23+02:00
modules: readme files regenerated - websocket ... [skip ci]
---
Modified: src/modules/websocket/README
---
Diff: https://github.com/kamailio/kamailio/commit/20af8da05513345ccb3d372e097c71a…
Patch: https://github.com/kamailio/kamailio/commit/20af8da05513345ccb3d372e097c71a…
---
diff --git a/src/modules/websocket/README b/src/modules/websocket/README
index 3541db94fb..158248654a 100644
--- a/src/modules/websocket/README
+++ b/src/modules/websocket/README
@@ -33,6 +33,7 @@ Peter Dunkley
4.6. sub_protocols (integer)
4.7. cors_mode (integer)
4.8. verbose_list (int)
+ 4.9. event_callback (str)
5. Functions
@@ -68,10 +69,11 @@ Peter Dunkley
1.8. Set sub_protocols parameter
1.9. Set cors_mode parameter
1.10. Set verbose_list parameter
- 1.11. ws_handle_handshake usage
- 1.12. ws_close usage
- 1.13. event_route[websocket:closed] usage
- 1.14. $ws_conid usage
+ 1.11. Set event_callback parameter
+ 1.12. ws_handle_handshake usage
+ 1.13. ws_close usage
+ 1.14. event_route[websocket:closed] usage
+ 1.15. $ws_conid usage
Chapter 1. Admin Guide
@@ -99,6 +101,7 @@ Chapter 1. Admin Guide
4.6. sub_protocols (integer)
4.7. cors_mode (integer)
4.8. verbose_list (int)
+ 4.9. event_callback (str)
5. Functions
@@ -341,6 +344,7 @@ onreply_route[WS_REPLY] {
4.6. sub_protocols (integer)
4.7. cors_mode (integer)
4.8. verbose_list (int)
+ 4.9. event_callback (str)
4.1. keepalive_mechanism (integer)
@@ -457,6 +461,28 @@ modparam("websocket", "cors_mode", 2)
modparam("websocket", "verbose_list", 1)
...
+4.9. event_callback (str)
+
+ 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 websocket module.
+
+ The function has one string parameter, the value is the name of the
+ event_route block, respectively "websocket:closed".
+
+ Default value is 'empty' (no function is executed for events).
+
+ Example 1.11. Set event_callback parameter
+...
+modparam("websocket", "event_callback", "ksr_websocket_event")
+...
+-- event callback function implemented in Lua
+function ksr_websocket_event(evname)
+ KSR.info("===== websocket module triggered event: " .. evname .. "\n");
+ return 1;
+end
+...
+
5. Functions
5.1. ws_handle_handshake()
@@ -476,7 +502,7 @@ Note
This function returns 0, stopping all further processing of the
request, when there is a problem.
- Example 1.11. ws_handle_handshake usage
+ Example 1.12. ws_handle_handshake usage
...
ws_handle_handshake();
...
@@ -501,7 +527,7 @@ Note
This function can be used from ANY_ROUTE.
- Example 1.12. ws_close usage
+ Example 1.13. ws_close usage
...
ws_close(4000, "Because I say so");
...
@@ -615,7 +641,7 @@ kamcmd ws.enable
connection closes. The connection may be identified using the the $si
and $sp pseudo-variables.
- Example 1.13. event_route[websocket:closed] usage
+ Example 1.14. event_route[websocket:closed] usage
...
event_route[websocket:closed] {
xlog("L_INFO", "WebSocket connection from $si:$sp has closed\n");
@@ -631,7 +657,7 @@ event_route[websocket:closed] {
Connection id of closed websocket connection. Can only be used in
websocket:closed event route.
- Example 1.14. $ws_conid usage
+ Example 1.15. $ws_conid usage
...
event_route[websocket:closed] {
xlog("L_INFO", "WebSocket connection with id $ws_conid has closed\n");
Module: kamailio
Branch: master
Commit: 921c2f6a53108ac4ddc3e262a479a46650412bce
URL: https://github.com/kamailio/kamailio/commit/921c2f6a53108ac4ddc3e262a479a46…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-04T15:10:50+02:00
websocket: documentation for event_callback parameter
---
Modified: src/modules/websocket/doc/websocket_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/921c2f6a53108ac4ddc3e262a479a46…
Patch: https://github.com/kamailio/kamailio/commit/921c2f6a53108ac4ddc3e262a479a46…
---
diff --git a/src/modules/websocket/doc/websocket_admin.xml b/src/modules/websocket/doc/websocket_admin.xml
index c887c05158..055498862e 100644
--- a/src/modules/websocket/doc/websocket_admin.xml
+++ b/src/modules/websocket/doc/websocket_admin.xml
@@ -445,6 +445,37 @@ modparam("websocket", "verbose_list", 1)
</programlisting>
</example>
</section>
+ <section id="websocket.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 websocket module.
+ </para>
+ <para>
+ The function has one string parameter, the value is the name of
+ the event_route block, respectively "websocket:closed".
+ </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("websocket", "event_callback", "ksr_websocket_event")
+...
+-- event callback function implemented in Lua
+function ksr_websocket_event(evname)
+ KSR.info("===== websocket module triggered event: " .. evname .. "\n");
+ return 1;
+end
+...
+</programlisting>
+ </example>
+ </section>
</section>
Module: kamailio
Branch: master
Commit: 61d72c90a1a3fe34aad3cedb87a3e68529be34ac
URL: https://github.com/kamailio/kamailio/commit/61d72c90a1a3fe34aad3cedb87a3e68…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-08-03T21:31:22+02:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/61d72c90a1a3fe34aad3cedb87a3e68…
Patch: https://github.com/kamailio/kamailio/commit/61d72c90a1a3fe34aad3cedb87a3e68…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 4be5d66028..6c35f29858 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -911,6 +911,10 @@ end
For example, 100 calls in 3-hosts group with rweight params
1/2/1 will be distributed as 25/50/25. After third host
failing distribution will be changed to 33/67/0.
+ + “12” - dispatch to all destination in setid at once (parallel
+ forking). Note that the AVPs are no longer set with the values
+ of the destination records, no re-routing making sense in this
+ case.
+ “X” - if the algorithm is not implemented, the first entry in
set is chosen.
* limit - the maximum number of items to be stored in AVP list for
Module: kamailio
Branch: master
Commit: e84ee3becbf59a5afc63510596cd62bae36d1962
URL: https://github.com/kamailio/kamailio/commit/e84ee3becbf59a5afc63510596cd62b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-03T19:05:59+02:00
dispatcher: documentation for parallel dispatching algorithm
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e84ee3becbf59a5afc63510596cd62b…
Patch: https://github.com/kamailio/kamailio/commit/e84ee3becbf59a5afc63510596cd62b…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index b5315acc2d..a0d35eec8a 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1040,6 +1040,14 @@ end
</listitem>
<listitem>
<para>
+ <quote>12</quote> - dispatch to all destination in setid at
+ once (parallel forking). Note that the AVPs are no longer set
+ with the values of the destination records, no re-routing
+ making sense in this case.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
<quote>X</quote> - if the algorithm is not implemented, the
first entry in set is chosen.
</para>
Dear Team,
Any one pls help me , i have been struck with this more than 2 months , i have keep on changing the kamailio.cfg but nothing has worked .
Initially i had plan to user captagent but unfortunately i couldn't run in CentOS since its failing in init procedure , because document which is provided in github is only for other OS .
so planned to use kamailio as capture server .
When ever i tried to run sipgrep , its showing data running on my server .
And when i used command kamailio -c , i can see below interface is listening , but its not capturing any data and sending to mysql .
root@localhost kamailio]# kamailio -c
0(6624) WARNING: <core> [ppcfg.c:221]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1
Listening on
udp: 172.16.5.158:9060
Aliases:
udp: localhost.localdom:9060
udp: localhost.localdomain:9060
And My sql is running fine without any issue .
Any one can pls audit my configuration and advise me .
because am New to Centos and homer .
Thanks in advance
--
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/1202
### Description
In the documentation documentation for module pipelimit https://www.kamailio.org/docs/modules/4.2.x/modules/ratelimit.html
has an error in example:
```# perform pipe match for authenticated user
$var(limit) = 20;
if (!pl_check("$au", "traildrop", "$var(limit)")) {
pl_drop();
exit;
}
```
If write algorithm "traildrop" in function pl_check, you every execution will get return code -2 and pipe not will be created.
### Possible Solutions
Change string "traildrop" on "TAILDROP"
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
kamailio 4.2.3
```
--
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/1201
Module: kamailio
Branch: master
Commit: d302422982aab79ec9af9b9d54d33dbf98dc7b63
URL: https://github.com/kamailio/kamailio/commit/d302422982aab79ec9af9b9d54d33db…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-02T10:00:53+02:00
tsilo: added section ids in docs
---
Modified: src/modules/tsilo/doc/tsilo_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/d302422982aab79ec9af9b9d54d33db…
Patch: https://github.com/kamailio/kamailio/commit/d302422982aab79ec9af9b9d54d33db…
---
diff --git a/src/modules/tsilo/doc/tsilo_admin.xml b/src/modules/tsilo/doc/tsilo_admin.xml
index 457aa7a219..e6cfe9b155 100644
--- a/src/modules/tsilo/doc/tsilo_admin.xml
+++ b/src/modules/tsilo/doc/tsilo_admin.xml
@@ -74,7 +74,7 @@
</section>
<section>
<title>Parameters</title>
- <section>
+ <section id="tsilo.p.hash_size">
<title><varname>hash_size</varname> (integer)</title>
<para>
The size of the hash table internally used to keep the transaction. A
@@ -97,7 +97,7 @@ modparam("tsilo", "hash_size", 1024)
</example>
</section>
- <section>
+ <section id="tsilo.p.use_domain">
<title><varname>use_domain</varname> (integer)</title>
<para>
Specify if the domain part of the URI should be also saved and used for
@@ -122,7 +122,7 @@ modparam("tsilo", "use_domain", 1)
<section>
<title>Functions</title>
- <section>
+ <section id="tsilo.f.ts_store">
<title><function moreinfo="none">ts_store([uri])</function></title>
<para>
The method stores uri, tindex and tlabel of the current transaction. If
@@ -146,7 +146,7 @@ if (is_method("INVITE")) {
</programlisting>
</example>
</section>
- <section>
+ <section id="tsilo.f.ts_append">
<title><function moreinfo="none">ts_append(domain, ruri)</function></title>
<para>
The method add branches to all the stored transactions for the &sip;
@@ -184,7 +184,7 @@ if (is_method("REGISTER")) {
</programlisting>
</example>
</section>
- <section>
+ <section id="tsilo.f.ts_append_to">
<title><function moreinfo="none">ts_append_to(tindex, tlabel, domain, [uri])</function></title>
<para>
The method add branches to the transaction identified by tindex and tlabel,
@@ -238,7 +238,7 @@ if (is_method("REGISTER")) {
<section>
<title>RPC Commands</title>
- <section>
+ <section id="tsilo.rpc.ts.dump">
<title><varname>ts.dump</varname></title>
<para>Dumps the content of the TSILO table</para>
<para>Name: <emphasis>ts.dump</emphasis></para>
@@ -247,7 +247,7 @@ if (is_method("REGISTER")) {
kamcmd ts.dump
</programlisting>
</section>
- <section>
+ <section id="tsilo.rpc.ts.lookup">
<title><varname>ts.lookup</varname></title>
<para>Dumps the transactions stored for the given RURI</para>
<para>Name: <emphasis>ts.lookup</emphasis></para>
@@ -259,31 +259,31 @@ if (is_method("REGISTER")) {
</section>
<section>
<title>Statistics</title>
- <section>
+ <section id="tsilo.stat.stored_ruris">
<title><varname>stored_ruris</varname></title>
<para>
Number of ruris currently stored in the TSILO table.
</para>
</section>
- <section>
+ <section id="tsilo.stat.stored_transactions">
<title><varname>stored_transactions</varname></title>
<para>
Number of transactions currently stored in the TSILO table.
</para>
</section>
- <section>
+ <section id="tsilo.stat.added_branches">
<title><varname>added_branches</varname></title>
<para>
Total number of added branches from the startup.
</para>
</section>
- <section>
+ <section id="tsilo.stat.total_ruris">
<title><varname>total_ruris</varname></title>
<para>
Total number of stored ruris from the startup.
</para>
</section>
- <section>
+ <section id="tsilo.stat.total_transactions">
<title><varname>total_transactions</varname></title>
<para>
Total number of stored transactions from the startup.
Module: kamailio
Branch: 4.4
Commit: c5657b7386f8be722e3d87c70b9e049d2b843c0d
URL: https://github.com/kamailio/kamailio/commit/c5657b7386f8be722e3d87c70b9e049…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-02T12:56:03+02:00
tls: explicit libssl v1.1+ cleanup when module is destroyed
- OPENSSL_cleanup() explicitely executed for libssl v1.1+ when tls
module is destroyed, to avoid being executed again on final exit
(due to atexit() callback), because at that moment shared memory
is already destroyed and attempts to access the locals will result
in cored dump
- retported by Victor Seva, GH #1189
(cherry picked from commit 00eb71da83347c9d2ea74feacec9c955f7b2a2e6)
(cherry picked from commit 071b85f66cabaa3a705a014b26b7c1eb31029b26)
---
Modified: modules/tls/tls_init.c
---
Diff: https://github.com/kamailio/kamailio/commit/c5657b7386f8be722e3d87c70b9e049…
Patch: https://github.com/kamailio/kamailio/commit/c5657b7386f8be722e3d87c70b9e049…
---
diff --git a/modules/tls/tls_init.c b/modules/tls/tls_init.c
index 133bc7fc83..1ce9d716a5 100644
--- a/modules/tls/tls_init.c
+++ b/modules/tls/tls_init.c
@@ -778,4 +778,10 @@ void destroy_tls_h(void)
tls_destroy_cfg();
tls_destroy_locks();
tls_ct_wq_destroy();
+#if OPENSSL_VERSION_NUMBER >= 0x010100000L
+ /* explicit execution of libssl cleanup to avoid being executed again
+ * by atexit(), when shm is gone */
+ DBG("executing openssl v1.1+ cleanup\n");
+ OPENSSL_cleanup();
+#endif
}
Module: kamailio
Branch: 5.0
Commit: 071b85f66cabaa3a705a014b26b7c1eb31029b26
URL: https://github.com/kamailio/kamailio/commit/071b85f66cabaa3a705a014b26b7c1e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-02T10:02:45+02:00
tls: explicit libssl v1.1+ cleanup when module is destroyed
- OPENSSL_cleanup() explicitely executed for libssl v1.1+ when tls
module is destroyed, to avoid being executed again on final exit
(due to atexit() callback), because at that moment shared memory
is already destroyed and attempts to access the locals will result
in cored dump
- retported by Victor Seva, GH #1189
(cherry picked from commit 00eb71da83347c9d2ea74feacec9c955f7b2a2e6)
---
Modified: src/modules/tls/tls_init.c
---
Diff: https://github.com/kamailio/kamailio/commit/071b85f66cabaa3a705a014b26b7c1e…
Patch: https://github.com/kamailio/kamailio/commit/071b85f66cabaa3a705a014b26b7c1e…
---
diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c
index 5d977fc810..b12209a0cd 100644
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -778,4 +778,10 @@ void destroy_tls_h(void)
tls_destroy_cfg();
tls_destroy_locks();
tls_ct_wq_destroy();
+#if OPENSSL_VERSION_NUMBER >= 0x010100000L
+ /* explicit execution of libssl cleanup to avoid being executed again
+ * by atexit(), when shm is gone */
+ DBG("executing openssl v1.1+ cleanup\n");
+ OPENSSL_cleanup();
+#endif
}
Module: kamailio
Branch: master
Commit: 00eb71da83347c9d2ea74feacec9c955f7b2a2e6
URL: https://github.com/kamailio/kamailio/commit/00eb71da83347c9d2ea74feacec9c95…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-08-02T09:54:18+02:00
tls: explicit libssl v1.1+ cleanup when module is destroyed
- OPENSSL_cleanup() explicitely executed for libssl v1.1+ when tls
module is destroyed, to avoid being executed again on final exit
(due to atexit() callback), because at that moment shared memory
is already destroyed and attempts to access the locals will result
in cored dump
- retported by Victor Seva, GH #1189
---
Modified: src/modules/tls/tls_init.c
---
Diff: https://github.com/kamailio/kamailio/commit/00eb71da83347c9d2ea74feacec9c95…
Patch: https://github.com/kamailio/kamailio/commit/00eb71da83347c9d2ea74feacec9c95…
---
diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c
index 6d78c37551..054d687e9c 100644
--- a/src/modules/tls/tls_init.c
+++ b/src/modules/tls/tls_init.c
@@ -847,4 +847,10 @@ void destroy_tls_h(void)
tls_destroy_cfg();
tls_destroy_locks();
tls_ct_wq_destroy();
+#if OPENSSL_VERSION_NUMBER >= 0x010100000L
+ /* explicit execution of libssl cleanup to avoid being executed again
+ * by atexit(), when shm is gone */
+ DBG("executing openssl v1.1+ cleanup\n");
+ OPENSSL_cleanup();
+#endif
}
Module: kamailio
Branch: master
Commit: e39dd796a40fb01881858ccf4415fdcfa8529778
URL: https://github.com/kamailio/kamailio/commit/e39dd796a40fb01881858ccf4415fdc…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-08-01T13:31:30+02:00
modules: readme files regenerated - uac ... [skip ci]
---
Modified: src/modules/uac/README
---
Diff: https://github.com/kamailio/kamailio/commit/e39dd796a40fb01881858ccf4415fdc…
Patch: https://github.com/kamailio/kamailio/commit/e39dd796a40fb01881858ccf4415fdc…
---
diff --git a/src/modules/uac/README b/src/modules/uac/README
index d4d8701859..848279a2c2 100644
--- a/src/modules/uac/README
+++ b/src/modules/uac/README
@@ -380,9 +380,8 @@ modparam("uac","credential","username:domain:password")
This can be used if the realm upstream will be using is not known in
advance.
- If you define it, you also need to define “auth_username_avp”
- (Section 3.10, “auth_username_avp (string)”) and “auth_username_avp”
- (Section 3.11, “auth_password_avp (string)”).
+ If you define it, you also need to define “auth_username_avp” (???) and
+ “auth_username_avp” (???).
Example 1.9. Set auth_realm_avp parameter
...
@@ -394,9 +393,8 @@ modparam("uac","auth_realm_avp","$avp(i:10)")
The definition of an AVP that might contain the username to be used to
perform authentication.
- If you define it, you also need to define “auth_realm_avp”
- (Section 3.9, “auth_realm_avp (string)”) and “auth_username_avp”
- (Section 3.11, “auth_password_avp (string)”).
+ If you define it, you also need to define “auth_realm_avp” (???) and
+ “auth_username_avp” (???).
Example 1.10. Set auth_username_avp parameter
...
@@ -408,9 +406,8 @@ modparam("uac","auth_username_avp","$avp(i:11)")
The definition of an AVP that might contain the password to be used to
perform authentication.
- If you define it, you also need to define “auth_password_avp”
- (Section 3.11, “auth_password_avp (string)”) and “auth_username_avp”
- (Section 3.11, “auth_password_avp (string)”).
+ If you define it, you also need to define “auth_password_avp” (???) and
+ “auth_username_avp” (???).
Example 1.11. Set auth_password_avp parameter
...
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1087
-- Commit Summary --
* pkg/kamailio: Fix of ticket 1085
-- File Changes --
M pkg/kamailio/centos/7/kamailio.service (2)
M pkg/kamailio/deb/debian/kamailio.service (2)
M pkg/kamailio/deb/jessie/kamailio.service (2)
M pkg/kamailio/deb/sid/kamailio.service (2)
M pkg/kamailio/deb/stretch/kamailio.service (2)
M pkg/kamailio/deb/xenial/kamailio.service (2)
M pkg/kamailio/fedora/17/kamailio.service (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1087.patchhttps://github.com/kamailio/kamailio/pull/1087.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/1087
<!-- 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
- [x] 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 -->
Update the specfile for centos 7 to:
- build rabbitmq module package
- exclude kamailio-ims package dependency when installing main kamailio package
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1194
-- Commit Summary --
* centos7 specfile: Add rabbitmq module
* centos7 specfile: Remove kamailio-ims module dependency
-- File Changes --
M pkg/kamailio/centos/7/kamailio.spec (31)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1194.patchhttps://github.com/kamailio/kamailio/pull/1194.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/1194
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing
C code, ask on sr-dev mailing list
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(paste your output here)
```
--
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/1193
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1192
-- Commit Summary --
* siptrace: check auth_key_str.s before dereference
* sipcapture: fix custom field variable naming
* sipcapture: free allocated process memory before return
* db_text: free pkg memory before return on error
* sipt: free pkg memory on error
-- File Changes --
M src/modules/db_text/dbt_raw_util.c (6)
M src/modules/sipcapture/sipcapture.c (3)
M src/modules/sipt/sipt.c (9)
M src/modules/siptrace/siptrace.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1192.patchhttps://github.com/kamailio/kamailio/pull/1192.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/1192
Module: kamailio
Branch: master
Commit: aabba8141410a25a19667a3aa750f88081a04bd9
URL: https://github.com/kamailio/kamailio/commit/aabba8141410a25a19667a3aa750f88…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2017-07-28T10:50:57+03:00
modules: use Docbook tag for Kamailio wiki URL
---
Modified: src/modules/avpops/doc/avpops_admin.xml
Modified: src/modules/pv/doc/pv_admin.xml
Modified: src/modules/xlog/doc/xlog_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/aabba8141410a25a19667a3aa750f88…
Patch: https://github.com/kamailio/kamailio/commit/aabba8141410a25a19667a3aa750f88…
---
diff --git a/src/modules/avpops/doc/avpops_admin.xml b/src/modules/avpops/doc/avpops_admin.xml
index 343ffa6796..f2c0175601 100644
--- a/src/modules/avpops/doc/avpops_admin.xml
+++ b/src/modules/avpops/doc/avpops_admin.xml
@@ -856,9 +856,7 @@ avp_copy("$avp(old)","$avp(new)/gd");
Prints the formatted string 'format' in the AVP 'dest'. The
'format' parameter can include any pseudo-variable defined in
&kamailio;. The list with all pseudo-variables in &kamailio; can
- be found at:
- <ulink url="http://kamailio.org/dokuwiki/">
- http://kamailio.org/dokuwiki/</ulink>.
+ be found at: &kamwikilink;
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml
index 08e8ff8794..e370f5eba3 100644
--- a/src/modules/pv/doc/pv_admin.xml
+++ b/src/modules/pv/doc/pv_admin.xml
@@ -17,8 +17,7 @@
<title>Overview</title>
<para>
This module collects the core pseudo-variables that can be used in
- configuration file. They are listed in Dokuwiki:
- <ulink url="http://www.kamailio.org/wiki/">http://www.kamailio.org/wiki/</ulink>,
+ configuration file. They are listed in wiki: &kamwikilink;
in Pseudo-Variables section
</para>
</section>
diff --git a/src/modules/xlog/doc/xlog_admin.xml b/src/modules/xlog/doc/xlog_admin.xml
index b03b8ecd58..225b5a80c4 100644
--- a/src/modules/xlog/doc/xlog_admin.xml
+++ b/src/modules/xlog/doc/xlog_admin.xml
@@ -54,9 +54,7 @@
</itemizedlist>
<para>
The full list of available pseudo-variables in &kamailio; is
- available at:
- <ulink url="http://kamailio.org/wiki/">
- http://kamailio.org/wiki/</ulink>
+ available at: &kamwikilink;
</para>
</section>
<section>
Module: kamailio
Branch: master
Commit: 436899e723c01ed5a86d5188fafc7225df690abf
URL: https://github.com/kamailio/kamailio/commit/436899e723c01ed5a86d5188fafc722…
Author: Mikko Lehto <mslehto(a)iki.fi>
Committer: Mikko Lehto <mslehto(a)iki.fi>
Date: 2017-07-28T10:50:57+03:00
rtpproxy: fix docbook tags
---
Modified: src/modules/rtpproxy/doc/rtpproxy_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/436899e723c01ed5a86d5188fafc722…
Patch: https://github.com/kamailio/kamailio/commit/436899e723c01ed5a86d5188fafc722…
---
diff --git a/src/modules/rtpproxy/doc/rtpproxy_admin.xml b/src/modules/rtpproxy/doc/rtpproxy_admin.xml
index e06ae8dab2..7f5d941d2f 100644
--- a/src/modules/rtpproxy/doc/rtpproxy_admin.xml
+++ b/src/modules/rtpproxy/doc/rtpproxy_admin.xml
@@ -618,8 +618,8 @@ onreply_route[2]
<listitem><para>
<emphasis>b</emphasis> - append branch specific variable to Call-ID when sending
command to rtpproxy. See rtpproxy_offer() for details.
- <listitem><para>
</para></listitem>
+ <listitem><para>
<emphasis>t</emphasis> - do not include To tag to <quote>delete</quote> command to rtpproxy thus causing full call to be deleted. Useful for deleting unused rtpproxy call when 200 OK is received on a branch, where rtpproxy is not needed.
</para></listitem>
</itemizedlist>
Module: kamailio
Branch: master
Commit: f3c68a5013b5a33937dbf735453da29df75ae09e
URL: https://github.com/kamailio/kamailio/commit/f3c68a5013b5a33937dbf735453da29…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-27T09:03:26+02:00
core: cfg - removed unreachable code
---
Modified: src/core/cfg/cfg_select.c
Modified: src/core/cfg/cfg_struct.c
---
Diff: https://github.com/kamailio/kamailio/commit/f3c68a5013b5a33937dbf735453da29…
Patch: https://github.com/kamailio/kamailio/commit/f3c68a5013b5a33937dbf735453da29…
---
diff --git a/src/core/cfg/cfg_select.c b/src/core/cfg/cfg_select.c
index ae8b0c8852..19b815332d 100644
--- a/src/core/cfg/cfg_select.c
+++ b/src/core/cfg/cfg_select.c
@@ -205,10 +205,6 @@ int select_cfg_var(str *res, select_t *s, struct sip_msg *msg)
/* use the module's handle to access the variable, so the variables
are read from the local config */
p = *(group->handle) + var->offset;
- if (p == NULL)
- return -1; /* The group is not yet ready.
- * (Trying to read the value from the
- * main process that has no local configuration) */
switch (CFG_VAR_TYPE(var)) {
case CFG_VAR_INT:
@@ -308,10 +304,6 @@ unsigned int read_cfg_var(struct cfg_read_handle *read_handle, void **val)
/* use the module's handle to access the variable, so the variables
are read from the local config */
p = *(group->handle) + var->offset;
- if (p == NULL)
- return 0; /* The group is not yet ready.
- * (Trying to read the value from the
- * main process that has no local configuration) */
switch (CFG_VAR_TYPE(var)) {
case CFG_VAR_INT:
diff --git a/src/core/cfg/cfg_struct.c b/src/core/cfg/cfg_struct.c
index 8bfe4295a3..350d49c216 100644
--- a/src/core/cfg/cfg_struct.c
+++ b/src/core/cfg/cfg_struct.c
@@ -1250,8 +1250,7 @@ int cfg_select_next(cfg_group_t *group)
return -1;
}
- if (!(meta = CFG_GROUP_META(cfg_local, group)))
- return -1;
+ meta = CFG_GROUP_META(cfg_local, group);
if (!(old_ginst = CFG_HANDLE_TO_GINST(*(group->handle)) /* the active group instance */)) {
LOG(L_ERR, "ERROR: cfg_select_next(): No group instance is set currently. Forgot to call cfg_select_first()?\n");
Module: kamailio
Branch: master
Commit: a2b1f2692603a952a56bf513c68871d172139ca6
URL: https://github.com/kamailio/kamailio/commit/a2b1f2692603a952a56bf513c68871d…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-07-26T17:46:20+02:00
modules: readme files regenerated - uac ... [skip ci]
---
Modified: src/modules/uac/README
---
Diff: https://github.com/kamailio/kamailio/commit/a2b1f2692603a952a56bf513c68871d…
Patch: https://github.com/kamailio/kamailio/commit/a2b1f2692603a952a56bf513c68871d…
---
diff --git a/src/modules/uac/README b/src/modules/uac/README
index 9623b2c256..d4d8701859 100644
--- a/src/modules/uac/README
+++ b/src/modules/uac/README
@@ -419,7 +419,10 @@ modparam("uac","auth_password_avp","$avp(i:12)")
3.12. reg_db_url (string)
- DB URL to fetch account profiles for registration.
+ DB URL to fetch account profiles for registration. This parameter must
+ be set in order to enable remote registrations feature.
+
+ The default value is "" (no value).
Example 1.12. Set reg_db_url parameter
...
Module: kamailio
Branch: master
Commit: 7d414352e0544cfe1739f3e36cec2c23379ae902
URL: https://github.com/kamailio/kamailio/commit/7d414352e0544cfe1739f3e36cec2c2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-26T17:37:28+02:00
uac: added note about default value for reg_db_url
---
Modified: src/modules/uac/doc/uac_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/7d414352e0544cfe1739f3e36cec2c2…
Patch: https://github.com/kamailio/kamailio/commit/7d414352e0544cfe1739f3e36cec2c2…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index e6ba5a2b63..020df01eab 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -10,7 +10,7 @@
<!-- Module User's Guide -->
<chapter>
-
+
<title>&adminguide;</title>
@@ -358,10 +358,10 @@ modparam("uac","auth_username_avp","$avp(i:11)")
to perform authentication.
</para>
<para><emphasis>
- If you define it, you also need to define
- <quote>auth_password_avp</quote>
- (<xref linkend="uac.p.auth-password-avp-id"/>) and
- <quote>auth_username_avp</quote>
+ If you define it, you also need to define
+ <quote>auth_password_avp</quote>
+ (<xref linkend="uac.p.auth-password-avp-id"/>) and
+ <quote>auth_username_avp</quote>
(<xref linkend="uac.p.auth-password-avp-id"/>).
</emphasis></para>
<example>
@@ -376,8 +376,10 @@ modparam("uac","auth_password_avp","$avp(i:12)")
<section id="uac.p.reg-db-url-id">
<title><varname>reg_db_url</varname> (string)</title>
<para>
- DB URL to fetch account profiles for registration.
+ DB URL to fetch account profiles for registration. This parameter
+ must be set in order to enable remote registrations feature.
</para>
+ <para>The default value is "" (no value).</para>
<example>
<title>Set <varname>reg_db_url</varname> parameter</title>
<programlisting format="linespecific">
@@ -392,14 +394,14 @@ modparam("uac", "reg_db_url",
<section id="uac.p.reg-timer-interval-id">
<title><varname>reg_timer_interval</varname> (string)</title>
<para>
- Timer interval (in seconds) at which registrations are managed, e.g. renewed as needed.
+ Timer interval (in seconds) at which registrations are managed, e.g. renewed as needed.
</para>
<para>
<emphasis>
The default value is 90 seconds.
</emphasis>
</para>
-
+
<example>
<title>Set <varname>reg_timer_interval</varname> parameter</title>
<programlisting format="linespecific">
ENV: Debian 8
So on most Linux systems the /var/run folder is a tmpfs and after which clears after each reboot
As I try to start up kamailio after a reboot through kamctl I get the following error.
"ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed"
Because kamailio does not have the permission to write to the /var/run folder as the kamailio user.
Would it be possible to add in the "kamctl" code a section where the SPECIFIED PID LOCATION (/var/run/kamailio) is checked and if it does not exist create it as the root user and chown it to the SPECIFIED USER (kamailio)? The way I have patched it for now is to create a init script that creates a /var/run/kamailio folder and chmods it to kamailio:kamailio
Thanks everyone!
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/231
Module: kamailio
Branch: master
Commit: ab1d3a3302760713722b2fd3ef41615c53b597dc
URL: https://github.com/kamailio/kamailio/commit/ab1d3a3302760713722b2fd3ef41615…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-07-26T09:31:32+02:00
modules: readme files regenerated - dialplan ... [skip ci]
---
Modified: src/modules/dialplan/README
---
Diff: https://github.com/kamailio/kamailio/commit/ab1d3a3302760713722b2fd3ef41615…
Patch: https://github.com/kamailio/kamailio/commit/ab1d3a3302760713722b2fd3ef41615…
---
diff --git a/src/modules/dialplan/README b/src/modules/dialplan/README
index f073564db1..cde96e214d 100644
--- a/src/modules/dialplan/README
+++ b/src/modules/dialplan/README
@@ -54,6 +54,7 @@ Luis Martin
5.11. attrs_pvar (string)
5.12. fetch_rows (int)
5.13. match_dynamic (int)
+ 5.14. append_branch (int)
6. Functions
@@ -87,11 +88,12 @@ Luis Martin
1.11. Set attrs_pvar parameter
1.12. Set fetch_rows parameter
1.13. Set match_dynamic parameter
- 1.14. dp_replace usage
- 1.15. dp_match usage
- 1.16. dp_translate usage
+ 1.14. Set append_branch parameter
+ 1.15. dp_replace usage
+ 1.16. dp_match usage
1.17. dp_translate usage
- 1.18. Example of rules
+ 1.18. dp_translate usage
+ 1.19. Example of rules
Chapter 1. Admin Guide
@@ -120,6 +122,7 @@ Chapter 1. Admin Guide
5.11. attrs_pvar (string)
5.12. fetch_rows (int)
5.13. match_dynamic (int)
+ 5.14. append_branch (int)
6. Functions
@@ -219,6 +222,7 @@ Chapter 1. Admin Guide
5.11. attrs_pvar (string)
5.12. fetch_rows (int)
5.13. match_dynamic (int)
+ 5.14. append_branch (int)
5.1. db_url (string)
@@ -375,6 +379,20 @@ modparam("dialplan", "fetch_rows", 4000)
modparam("dialplan", "match_dynamic", 1)
...
+5.14. append_branch (int)
+
+ If set to 1, the module appends a new outgoing branch when request URI
+ (r-uri) or its user part are changed by dp_translate() or dp_replace()
+ inside a failure_route block. Set it to 0 if the branch should not be
+ added.
+
+ Default value is “1”.
+
+ Example 1.14. Set append_branch parameter
+...
+modparam("dialplan", "append_branch", 0)
+...
+
6. Functions
6.1. dp_replace(dpid, inval, outvar)
@@ -405,7 +423,7 @@ modparam("dialplan", "match_dynamic", 1)
This function can be used from ANY_ROUTE.
- Example 1.14. dp_replace usage
+ Example 1.15. dp_replace usage
...
dp_replace("240", "$rU", "$var(newru)");
xlog("'$rU' was translated to '$var(newru)'\n");
@@ -432,7 +450,7 @@ dp_replace("240", "+49$rU", "$var(newval)");
This function can be used from ANY_ROUTE.
- Example 1.15. dp_match usage
+ Example 1.16. dp_match usage
...
dp_match("240", "+49$rU");
xlog("the attributes associated with '+49$rU' are '$var(attrs)'\n");
@@ -473,13 +491,13 @@ xlog("the attributes associated with '+49$rU' are '$var(attrs)'\n");
This function can be used from ANY_ROUTE.
- Example 1.16. dp_translate usage
+ Example 1.17. dp_translate usage
...
dp_translate("240", "$ruri.user/$avp(s:dest)");
xlog("translated to var $avp(s:dest) \n");
...
- Example 1.17. dp_translate usage
+ Example 1.18. dp_translate usage
...
$avp(s:src) = $ruri.user;
dp_translate("$var(x)", "$avp(s:src)/$var(y)");
@@ -549,7 +567,7 @@ xlog("translated to var $var(y) \n");
Some sample records from a dialplan table are presented in the next
figure.
- Example 1.18. Example of rules
+ Example 1.19. Example of rules
...
dpid: 1
pr: 1
Module: kamailio
Branch: master
Commit: 2cae9f8a301befb0a00f1831c9d5773924e35c10
URL: https://github.com/kamailio/kamailio/commit/2cae9f8a301befb0a00f1831c9d5773…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-25T19:41:05+02:00
dialplan: added documentation for dp_match() and dp_translate()
---
Modified: src/modules/dialplan/doc/dialplan_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/2cae9f8a301befb0a00f1831c9d5773…
Patch: https://github.com/kamailio/kamailio/commit/2cae9f8a301befb0a00f1831c9d5773…
---
diff --git a/src/modules/dialplan/doc/dialplan_admin.xml b/src/modules/dialplan/doc/dialplan_admin.xml
index 8153974401..073c2b24ed 100644
--- a/src/modules/dialplan/doc/dialplan_admin.xml
+++ b/src/modules/dialplan/doc/dialplan_admin.xml
@@ -394,6 +394,103 @@ modparam("dialplan", "match_dynamic", 1)
<section>
<title>Functions</title>
+ <section id="dialplan.p.dp_replace">
+ <title>
+ <function moreinfo="none">dp_replace(dpid, inval, outvar)</function>
+ </title>
+ <para>
+ The function translates the input value 'inval' using the rules with dialplan
+ id 'dpid', storing the value in the variable 'outvar'. If the rule that was
+ applied has attributes, they are stored in the variable provided via the
+ module parameter 'attrs_pvar'.
+ </para>
+ <para>
+ The behavior is same as dp_translate("dpid", "inval/outvar"), but the
+ parameters have a more flexible format.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>dpid</emphasis> - the dialplan id to match the rules and apply
+ the transformations. It can be a static string or a config variable
+ holding an integer value.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>inval</emphasis> - input value. It can be a static or a
+ dynamic string. The dynamic string can contain config variables,
+ combined or not with static strings, that are evaluated at runtime.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>outvar</emphasis> - output variable name. The value resulted
+ after applying the matching rule is stored in this variable. The name
+ must refer to a writable variable.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>dp_replace</function> usage</title>
+ <programlisting format="linespecific">
+...
+dp_replace("240", "$rU", "$var(newru)");
+xlog("'$rU' was translated to '$var(newru)'\n");
+dp_replace("240", "+49$rU", "$var(newval)");
+...
+ </programlisting>
+ </example>
+ </section>
+
+ <section id="dialplan.p.dp_match">
+ <title>
+ <function moreinfo="none">dp_match(dpid, inval)</function>
+ </title>
+ <para>
+ The function matches the input value 'inval' using the rules with dialplan
+ id 'dpid'. If the rule that was applied has attributes, they are stored in
+ the variable provided via the module parameter 'attrs_pvar'.
+ </para>
+ <para>
+ The behavior is same as dp_translate("dpid", "inval"), but the
+ parameters have a more flexible format.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>dpid</emphasis> - the dialplan id to match the rules and apply
+ the transformations. It can be a static string or a config variable
+ holding an integer value.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>inval</emphasis> - input value. It can be a static or a
+ dynamic string. The dynamic string can contain config variables,
+ combined or not with static strings, that are evaluated at runtime.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>dp_match</function> usage</title>
+ <programlisting format="linespecific">
+...
+dp_match("240", "+49$rU");
+xlog("the attributes associated with '+49$rU' are '$var(attrs)'\n");
+...
+ </programlisting>
+ </example>
+ </section>
+
<section id="dialplan.p.dp_translate">
<title>
<function moreinfo="none">dp_translate(id, [src[/dest]])</function>
Module: kamailio
Branch: master
Commit: 2c105fa6a66e24a6d9e24f96b0f4c04b60ce0da9
URL: https://github.com/kamailio/kamailio/commit/2c105fa6a66e24a6d9e24f96b0f4c04…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-25T19:41:05+02:00
dialplan: added dp_match() and dp_replace() functions
- alternatives to dp_translate() with dedicated required parameters
(avoiding second parameter of two variables separated by '/')
- dp_match(dpid, inval)
- dp_replace(dpid, inval, outvar)
- dpid can be interger or variable
- inval can be a static or dynamic (with vars) string
- outvar has to be a writable variable
---
Modified: src/modules/dialplan/dialplan.c
Modified: src/modules/dialplan/dialplan.h
Modified: src/modules/dialplan/dp_repl.c
---
Diff: https://github.com/kamailio/kamailio/commit/2c105fa6a66e24a6d9e24f96b0f4c04…
Patch: https://github.com/kamailio/kamailio/commit/2c105fa6a66e24a6d9e24f96b0f4c04…
Module: kamailio
Branch: master
Commit: 8db85222c3f82e8af1fbeb38eaabb9aec99ecab2
URL: https://github.com/kamailio/kamailio/commit/8db85222c3f82e8af1fbeb38eaabb9a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-07-25T14:01:22+02:00
modules: readme files regenerated - pv ... [skip ci]
---
Modified: src/modules/pv/README
---
Diff: https://github.com/kamailio/kamailio/commit/8db85222c3f82e8af1fbeb38eaabb9a…
Patch: https://github.com/kamailio/kamailio/commit/8db85222c3f82e8af1fbeb38eaabb9a…
---
diff --git a/src/modules/pv/README b/src/modules/pv/README
index d30fea9c67..428a27c958 100644
--- a/src/modules/pv/README
+++ b/src/modules/pv/README
@@ -371,12 +371,14 @@ pv_xavp_print();
4.11. pv_var_to_xavp(varname, xname)
- Copy script variables values to a xavp.
+ Copy the script variable value into an xavp.
First parameter can be '*' in order to copy all script variables.
Second parameter is the name of the destination xavp. If xavp already
exists it will be reset first.
+ Both parameters can contain variables that are evaluated at runtime.
+
Function can be used from ANY_ROUTE.
Example 1.14. pv_var_to_xavp() usage
@@ -395,7 +397,9 @@ $xavp("ok[0]=>foo") now is "foo indeed"
4.12. pv_xavp_to_var(xname)
- Copy xavp values to vars. Reverse of pv_var_to_xavp().
+ Copy xavp values into vars. Reverse of pv_var_to_xavp().
+
+ Both parameters can contain variables that are evaluated at runtime.
Function can be used from ANY_ROUTE.
Module: kamailio
Branch: master
Commit: e9a132afc0fa4b02a7030c2c20ade65a1d693006
URL: https://github.com/kamailio/kamailio/commit/e9a132afc0fa4b02a7030c2c20ade65…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-25T13:49:05+02:00
pv: notes about dynamic parameters for xavp to var funtions
---
Modified: src/modules/pv/doc/pv_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e9a132afc0fa4b02a7030c2c20ade65…
Patch: https://github.com/kamailio/kamailio/commit/e9a132afc0fa4b02a7030c2c20ade65…
---
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml
index 31929efa7f..bd5a7ab6f4 100644
--- a/src/modules/pv/doc/pv_admin.xml
+++ b/src/modules/pv/doc/pv_admin.xml
@@ -400,10 +400,16 @@ pv_xavp_print();
<function moreinfo="none">pv_var_to_xavp(varname, xname)</function>
</title>
<para>
- Copy script variables values to a xavp.
+ Copy the script variable value into an xavp.
</para>
<para>
- First parameter can be '*' in order to copy all script variables. Second parameter is the name of the destination xavp. If xavp already exists it will be reset first.
+ First parameter can be '*' in order to copy all script variables.
+ Second parameter is the name of the destination xavp.
+ If xavp already exists it will be reset first.
+ </para>
+ <para>
+ Both parameters can contain variables that are evaluated at
+ runtime.
</para>
<para>
Function can be used from ANY_ROUTE.
@@ -431,7 +437,11 @@ $xavp("ok[0]=>foo") now is "foo indeed"
<function moreinfo="none">pv_xavp_to_var(xname)</function>
</title>
<para>
- Copy xavp values to vars. Reverse of pv_var_to_xavp().
+ Copy xavp values into vars. Reverse of pv_var_to_xavp().
+ </para>
+ <para>
+ Both parameters can contain variables that are evaluated at
+ runtime.
</para>
<para>
Function can be used from ANY_ROUTE.
### Description
I want use kamailio on Alpine linux dist. All looks fine except tls module.
During config file checking i got errors
```
/ #
/ # vi /etc/kamailio/kamailio.cfg
/ # kamailio -c -f /etc/kamailio/kamailio.cfg
loading modules under config path: /usr/lib/kamailio/modules/
0(15) ERROR: <core> [core/sr_module.c:570]: load_module(): could not find module <mi_fifo> in </usr/lib/kamailio/modules/>
0(15) CRITICAL: <core> [core/cfg.y:3400]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 218, column 12-23: failed to load module
0(15) ERROR: <core> [core/sr_module.c:570]: load_module(): could not find module <mi_rpc> in </usr/lib/kamailio/modules/>
0(15) CRITICAL: <core> [core/cfg.y:3400]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 234, column 12-22: failed to load module
0(15) ERROR: <core> [core/sr_module.c:582]: load_module(): could not open module </usr/lib/kamailio/modules/tls.so>: Error relocating /usr/lib/kamailio/modules/tls.so: EC_KEY_new_by_curve_name: symbol not found
0(15) CRITICAL: <core> [core/cfg.y:3400]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 265, column 12-19: failed to load module
0(15) ERROR: <core> [core/modparam.c:152]: set_mod_param_regex(): No module matching <mi_fifo> found
0(15) CRITICAL: <core> [core/cfg.y:3403]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 285, column 67: Can't set module parameter
0(15) ERROR: <core> [core/modparam.c:152]: set_mod_param_regex(): No module matching <tls> found
0(15) CRITICAL: <core> [core/cfg.y:3403]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 411, column 50: Can't set module parameter
ERROR: bad config file (5 errors)
0(15) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
/ #
/ #
```
Error
load_module(): could not open module </usr/lib/kamailio/modules/tls.so>: Error relocating /usr/lib/kamailio/modules/tls.so: EC_KEY_new_by_curve_name: symbol not found
#### Reproduction
docker run -it alpine sh
apk --no-cache add alpine-sdk linux-headers bison flex libressl-dev
cd kamailio
sed -i -e 's/0x10100000L/0x10100000L || defined(LIBRESSL_VERSION_NUMBER)/' src/modules/tls/tls_locking.c
make include_modules="tls" cfg
make all
make install
sed -i '1s/^/#!define WITH_TLS\n/' /usr/local/etc/kamailio/kamailio.cfg
/usr/local/sbin/kamailio -c -f /usr/local/etc/kamailio/kamailio.cfg
#### Log Messages
```
@8bdc47c389e6:/usr/local/etc/kamailio$ /usr/local/sbin/kamailio -c -f /usr/local/etc/kamailio/kamailio.cfg
0(22421) ERROR: <core> [core/sr_module.c:582]: load_module(): could not open module </usr/local/lib64/kamailio/modules/tls.so>: Error relocating /usr/local/lib64/kamailio/modules/tls.so: SSL_CTX_set_min_proto_version: symbol not found
0(22421) CRITICAL: <core> [core/cfg.y:3426]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 276, column 12-19: failed to load module
0(22421) ERROR: <core> [core/modparam.c:152]: set_mod_param_regex(): No module matching <tls> found
0(22421) CRITICAL: <core> [core/cfg.y:3429]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 426, column 60: Can't set module parameter
ERROR: bad config file (2 errors)
0(22421) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
@8bdc47c389e6:/usr/local/etc/kamailio$ /usr/local/sbin/kamailio -v
version: kamailio 5.1.0-dev5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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 20:55:58 Jul 21 2017 with gcc 6.2.1
@8bdc47c389e6:/usr/local/etc/kamailio$
```
* **Operating System**:
Alpine linux 3.6
```
@8bdc47c389e6:/usr/local/etc/kamailio$ uname -a
Linux 8bdc47c389e6 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 Linux```
--
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/1188
Module: kamailio
Branch: master
Commit: e6c9474e456fb0673c87f87a325d9dc40aa10d32
URL: https://github.com/kamailio/kamailio/commit/e6c9474e456fb0673c87f87a325d9dc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-21T10:27:57+02:00
core: cfg ctx - removed unused variable
---
Modified: src/core/cfg/cfg_ctx.c
---
Diff: https://github.com/kamailio/kamailio/commit/e6c9474e456fb0673c87f87a325d9dc…
Patch: https://github.com/kamailio/kamailio/commit/e6c9474e456fb0673c87f87a325d9dc…
---
diff --git a/src/core/cfg/cfg_ctx.c b/src/core/cfg/cfg_ctx.c
index 6dc9a469c0..d251b11317 100644
--- a/src/core/cfg/cfg_ctx.c
+++ b/src/core/cfg/cfg_ctx.c
@@ -1373,8 +1373,7 @@ int cfg_get_default_value_by_name(cfg_ctx_t *ctx, str *group_name,
cfg_mapping_t *var;
void *p;
static str s; /* we need the value even
- after the function returns */
- cfg_group_inst_t *group_inst;
+ * after the function returns */
/* verify the context even if we do not need it now
to make sure that a cfg driver has called the function