Module: kamailio
Branch: master
Commit: dd717b80be6f8e9519aa4b3d627cb88267b81146
URL: https://github.com/kamailio/kamailio/commit/dd717b80be6f8e9519aa4b3d627cb88…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-28T14:08:16+01:00
core: new core directive modparamx(mod, param, val)
- alternative to modparam() where all its parameters are evaluated for
config script variables
- note that only variables that do not depend on SIP message processing
should be used at this stage
- example - set a module parameter using the value of an evironment
variable:
modparamx("dispatcher", "db_url", "$env(DBURL)")
---
Modified: src/core/cfg.lex
Modified: src/core/cfg.y
Modified: src/core/modparam.c
Modified: src/core/modparam.h
Modified: src/core/sr_module.h
---
Diff: https://github.com/kamailio/kamailio/commit/dd717b80be6f8e9519aa4b3d627cb88…
Patch: https://github.com/kamailio/kamailio/commit/dd717b80be6f8e9519aa4b3d627cb88…
A year that was very tough for the entire world is getting close to its
end, no doubt that was the most challenging in our life so far for many
of us, however, with a distributed, friendly and collaborative
community, Kamailio project continued to develop consistently, bringing
out a new major release. I trust it helped people and companies world
wide to to connect with the dear ones and build a better way of living.
The season holidays are ahead, time to rest a bit, spend time with
family and friends, being online or face to face. As usual, I take this
chance to express my thanks and greetings to all the friends,
developers, supporting companies and community members that made 2020
another great year for Kamailio project.
Enjoy the holidays! Merry Christmas!
Daniel
* Santa is flying Kamailio! *
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Hi devs,
Background: I am the porter of app_python.so to Python 3
(app_python3.so) nearly 3 years ago.
As we all know Python 2 reached EoL almost one year ago, it may be
timely to discuss the issue of when(if) to remove the Python 2 module
app_python.so in kamailio.
1. Debian: just over a year ago:
https://lists.debian.org/debian-devel-announce/2019/11/msg00000.html
2. Python 2 EOL:
https://www.infoworld.com/article/3365221/python-2-end-of-life-how-to-survi…
3. Debian Bullseye (not yet released):
https://wiki.debian.org/Python/2Removal "; "port upstream package to
python3 (or file upstream bug): make sure package doesn't call python
at build- or compile time (as there won't be a python package and no
python command in bullseye, only python3.) "
4. Debian Buster/Stretch - used in CI by the (Sipwise I think)
builders. EoL LTS ~2022 for Stretch, ~2024 for Buster.
https://wiki.debian.org/DebianReleases
Discussion: should app_python be dropped for Kamailio 5.5.x or 5.6.x?
What are your thoughts?
Cheers
Anthony
Hallo
I hope I am writing to the right mailing address.
We are interested in Kamailio source code but
We would like to purchase Kamailio (for a fee) that is not under the GPL2
category .
Do you offer that?
Thank you
Tom
<https://docs.google.com/uc?export=download&id=1zTACqAqtPFWXnR_r-T8kaF4TaJpg
AJ7l&revid=0Bx0wng2lOd16cCtVL1kyWWZmdHpGdktTbXFpNHJmQTRzWm9JPQ>
Tom Gross
Director of Operations and Corporate
+972-52-3922304
<http://www.flolive.net/> www.flolive.net
The information contained in this e-mail message is intended for the use of
individual or entity named above and may include information that is
confidential and proprietary.
Please keep the content of this email in strict confidence. If you are not
the intended recipient, please immediately notify us by return e-mail,
delete this e-mail and destroy any copies.
--
*The information contained in this e-mail message is intended for the use
of individual or entity named above and may include information that is
confidential and proprietary. Please keep the content of this email in
strict confidence. If you are not the intended recipient, please
immediately notify us by return e-mail, delete this e-mail and destroy any
copies.*
Hello,
Kamailio SIP Server v5.3.8 stable has been released.
This is a maintenance release of the previous stable branch (5.3), that includes fixes since the release of v5.3.7. There are no change to database schema or configuration language structure that you have to do on previous installations of v5.3.x.
Deployments running previous v5.3.x versions are recommended to be upgraded to v5.3.8.
For more details about version 5.3.8 (including links and guidelines to download the tar file or from GIT repository), visit:
https://www.kamailio.org/w/2020/12/kamailio-v5-3-8-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
- URL: https://github.com/kamailio/kamailio/commit/8cc9193404e7dac358e96fe8b9dd744…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:00:51Z
exec: debug message when command returns non-zero
(cherry picked from commit e9eee1ead964992a2d81014709755bbfd1e995c9)
- URL: https://github.com/kamailio/kamailio/commit/f0732ee99ee486a71790b2ce4419ba1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:04:25Z
dialog: skip doing cseq update processing for non-sip requests
(cherry picked from commit 960b60ede8543f38b61ad2769e81e11d5a777df8)
- URL: https://github.com/kamailio/kamailio/commit/580afabee9f76f1e37b09b1f7b7086c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:06:25Z
core: init origproto to fix compiler warning
- GH #2543
(cherry picked from commit ef3233d14080936486d09edbe9598d7d92bd2f33)
- URL: https://github.com/kamailio/kamailio/commit/6e7858b0b1837bfa17fb374f01b3ad2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:06:54Z
http_async_client: include poll.h instead sys/poll.h
- according to POSIX specs
- GH #2543
(cherry picked from commit 8f30c75cff7787a39f7c934e00e933b1beb43c20)
- URL: https://github.com/kamailio/kamailio/commit/0b09dd1f5453f66684053f5b3ea3d2c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:07:04Z
sctp: memcpy field data to avoid unaligned access warning
- GH #2543
(cherry picked from commit 4bb099b046939b85e1827b804167a51ef4bc00c4)
- URL: https://github.com/kamailio/kamailio/commit/164c4f1523d8400b84a4359b1e15d56…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Date: 2020-12-21T15:07:16Z
core: added missing field in sip_msg_update_buffer
- added a missing field in sip_msg_update_buffer()
when restoring message fiedls: msg->pid.
(cherry picked from commit 57be5c1f33344275c15777a7927d9c48df4a69ba)
- URL: https://github.com/kamailio/kamailio/commit/63022e0d95500e5da0d1a7cc4d14ced…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:08:40Z
jsonrpcs: exported dispatch() function to kemi
(cherry picked from commit 08a9ed3d136c861f990e4f63c2c0544e08d9078d)
- URL: https://github.com/kamailio/kamailio/commit/fc91871294ff7d23fadb642550122e1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:09:04Z
drouting: give portparameter set to 0 to sip_resolvehost()
- enable doing SRV query, GH #2553
(cherry picked from commit 18f59c10582845da5eea280990daf19c804978fb)
- URL: https://github.com/kamailio/kamailio/commit/833e3d0f9bbc2e4e00c662f4927ace9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:09:12Z
dispatcher: test no-dns flag to skip ip matching for hostnames
- no dns done at startup if the flag is set in the destination record
(cherry picked from commit 1c58b8e0ed221404a15c1426f40df167654e3860)
- URL: https://github.com/kamailio/kamailio/commit/a9a35d0ba6e6f55a7788bf8cee945b7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:09:36Z
tm: print ruri mode in debug message from t load contacts
(cherry picked from commit 3214ecd8ee82d1b69cde57d96dddefe1301c190c)
- URL: https://github.com/kamailio/kamailio/commit/41761ed5d158ab59ef51aca11a849ce…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Date: 2020-12-21T15:10:48Z
smsops: fix len calc for a concatenated sms
- fixed the calculation for concatenated SMSs
based on TS 23.040, Sec. 9.2.3.16
(cherry picked from commit d90f29b3b03386add989aebe3865bdc78dff8fbe)
- URL: https://github.com/kamailio/kamailio/commit/7cecd70c29bd5e0b8fa918ad99b016a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:11:00Z
tm: proper fill of From/To URI/tag values using parsed structure in t_uac_send()
(cherry picked from commit aa6e9963b2725c1b6b7e5ff995a77c222d95fa3c)
- URL: https://github.com/kamailio/kamailio/commit/1f5bd88fd60f98e36fd0b59b54398a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:11:08Z
misc/examples: note that sr is exported by app_lua_sr
- hint for lua syntax check
(cherry picked from commit 889431746d24c73eeff73705fab36a0e154116a9)
- URL: https://github.com/kamailio/kamailio/commit/a76f06eb010765216450bd78bcc1040…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:11:16Z
kemix: exported function get_rcvadvip() and get_rcvadvport()
- return advertised address and port of the receiving socket
(cherry picked from commit 070a9c042a1caf19162d3d97b26f8d7548747cbb)
- URL: https://github.com/kamailio/kamailio/commit/6f6dda289c5c26a3098cae0d8df37e6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:11:25Z
kemix: exported functions to get socket string and name
(cherry picked from commit b59204eb1df8c85bcdde65f2a840f55986f01223)
- URL: https://github.com/kamailio/kamailio/commit/b4f83c8001569c99582eb3f92433083…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-12-21T15:13:46Z
tls: log version, gh #2561
(cherry picked from commit c9f0adddde8321bfaf368691fea74079e40bd789)
- URL: https://github.com/kamailio/kamailio/commit/f7e7c3501a79415ff12ae77b5428a88…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:15:45Z
dispatcher: removed unnecessary return
(cherry picked from commit 721d533317c735d7ddbd16ad94684b483468c010)
- URL: https://github.com/kamailio/kamailio/commit/91d4c181c5472c9e1d1727c74e7e637…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:16:16Z
core: check if the tcp clone rcv buffer is set when applying changes
(cherry picked from commit aa13720e5d78dde5ae5235c13399848cb8f5a0cc)
- URL: https://github.com/kamailio/kamailio/commit/f21627f0e24c5717ca29198a1c8f457…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2020-12-21T15:17:22Z
ndb_redis: set message level to debug on reconnect
* logging error makes no sense here since there's going
to be a reconnection afterwards
(cherry picked from commit 98805c723fbe01556e56d5b00ffc686b92014847)
- URL: https://github.com/kamailio/kamailio/commit/5c685f3d3d091dfd56fea5cb2ae7668…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2020-12-21T15:18:02Z
lost: removed extra `"` symbol in example
(cherry picked from commit 124499c12db185d85805e5c71d5cc4222e608b68)
- URL: https://github.com/kamailio/kamailio/commit/7465d23be7b0e9f27dc4f95c99fba7f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:20:13Z
auth_diameter: init variable and check before freeing
(cherry picked from commit 04dc5d6c66c85d0d411aa23b27bc6be00258eff6)
- URL: https://github.com/kamailio/kamailio/commit/6a4e6784dd787f3c33af8907771c023…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:24:55Z
tm: check end of header name in lw parser
- proper identification of header type, prior could mistakenly set the
type by matching the prefix of long header name
- GH #2572
(cherry picked from commit c0f5382bfbd2022896a9b206967977f827517700)
- URL: https://github.com/kamailio/kamailio/commit/7d2fc9e4e480fb811983212136938ca…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:26:36Z
core: tcp - debug messages merged, print bytes read and flags
(cherry picked from commit efb9c5f83b37c316b848ae7b6dc829e2f8ca6275)
- URL: https://github.com/kamailio/kamailio/commit/ef4bb80111a3eb8e7741a814ae3b113…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:26:40Z
core: tcp - log connection state and flags on debug message
(cherry picked from commit 41040a0420ee48f51901bf32e29526c8948ecea0)
- URL: https://github.com/kamailio/kamailio/commit/4bc84f40b0fe7e9a654a1d24ee190fb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:27:07Z
dispatcher: check weight value to be in expected range
(cherry picked from commit e00f610203fee957a22afc5f8103c1482a925138)
- URL: https://github.com/kamailio/kamailio/commit/65b9c2d085f8d0b2f73fc948f185f59…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:29:17Z
dispatcher: info log message when adding extra weight or rweight percentages
(cherry picked from commit ba27633ca22bcfc18fd4bb7d62c2f5bb32e56962)
- URL: https://github.com/kamailio/kamailio/commit/b0c05e51d2fdfba36cd1e023a9d44e7…
Author: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-12-21T15:29:49Z
Revert "kemix: exported functions to get socket string and name"
This reverts commit 6f6dda289c5c26a3098cae0d8df37e6bc51e1ac1.
- URL: https://github.com/kamailio/kamailio/commit/dcc0b84d12d2a8591e91019cd626047…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:31:08Z
http_client: do not set empty headers and body
(cherry picked from commit ce58411c462231d6ea1fc3b4acbf50520c2962ce)
- URL: https://github.com/kamailio/kamailio/commit/03505654c7ecd4b0e026a561d36ca2c…
Author: tsearle <tsearle(a)gmail.com>
Date: 2020-12-21T15:31:26Z
modules/siptrace: fix regression preventing variables to be used (#2588)
* modules/siptrace: fix regression preventing variables to be used
Commit fa7eb2a switched the 2 parameter version of sip_trace from
using the builtin fixup_spve_spve to the custom fixup method to
using the custom fixup_siptrace. As it is a custom fixup method,
the corresponding free method can not be auto-detected causing the
config parser to require the parameters to be a constant. This
patch adds a free method, allowing variables to be once again passed
as the 2nd parameter of this method (as well as fixing a memory leak
for the 3rd parameter).
* change free for parameter 3
Co-authored-by: Torrey Searle <tsearle(a)voxbone.com>
(cherry picked from commit 7c98d547996637a7bf1c7025c93142f574fe3ac9)
- URL: https://github.com/kamailio/kamailio/commit/8283f280977a5edc8973028a05d70d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:34:12Z
dialog: handle CANCEL requests for CSeq updates
(cherry picked from commit fd35a1a4eee2c50a3b7bf4ee6b1f6f20f4fa7d62)
- URL: https://github.com/kamailio/kamailio/commit/70aaf931cf24738b6909721405657f2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T15:35:17Z
http_client: docs - section title to get proper entry in toc
- bits of whitespacing fixing
(cherry picked from commit fadc0fc499fb57a763aa71a76b24cff152bbd927)
Module: kamailio
Branch: master
Commit: 8e54f027e8193b70e840033b9c3c5a94ebf5486b
URL: https://github.com/kamailio/kamailio/commit/8e54f027e8193b70e840033b9c3c5a9…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-12-21T14:46:11+01:00
modules: readme files regenerated - registrar ... [skip ci]
---
Modified: src/modules/registrar/README
---
Diff: https://github.com/kamailio/kamailio/commit/8e54f027e8193b70e840033b9c3c5a9…
Patch: https://github.com/kamailio/kamailio/commit/8e54f027e8193b70e840033b9c3c5a9…
---
diff --git a/src/modules/registrar/README b/src/modules/registrar/README
index 3298f6f41d..8100557bd5 100644
--- a/src/modules/registrar/README
+++ b/src/modules/registrar/README
@@ -722,13 +722,15 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
Defines the name of XAVP class to store runtime module config values.
The values are stored as inner XAVPs, like $xavp(class=>attribute).
Valid inner XAVP names:
+ * expires - the number of maximum contacts to be stored for the
+ current registration AoR. It overwrites the 'max_contacts' module
+ parameter value.
+ * q - the expires value, to overwrite the value from SIP headers.
* max_contacts - the number of maximum contacts to be stored for the
current registration AoR. It overwrites the 'max_contacts' module
parameter value.
* socket - the string representing the socket on which the register
request was received, as alternative to using the sock_hdr.
- * q - q value of contact (integer 0-1000). It overrides q value given
- in contact header and default_q parameter.
For example. if this parameter is set to 'reg', then the number of
maximum contacts can be set in $xavp(reg=>max_contacts).
@@ -742,6 +744,7 @@ modparam("registrar", "xavp_cfg", "reg")
request_route {
...
$xavp(reg=>max_contacts) = 4;
+ $xavp(reg[0]=>expires) = 600;
save("location");
...
}
Module: kamailio
Branch: master
Commit: 4b7c02c93053076d3089499a0290203157b63c0d
URL: https://github.com/kamailio/kamailio/commit/4b7c02c93053076d3089499a0290203…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T14:34:16+01:00
registrar: docs for expires field of xavp_cfg
---
Modified: src/modules/registrar/doc/registrar_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4b7c02c93053076d3089499a0290203…
Patch: https://github.com/kamailio/kamailio/commit/4b7c02c93053076d3089499a0290203…
---
diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml
index 94ce4b3a0b..f4bb213b14 100644
--- a/src/modules/registrar/doc/registrar_admin.xml
+++ b/src/modules/registrar/doc/registrar_admin.xml
@@ -745,24 +745,29 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
<itemizedlist>
<listitem>
<para>
- <emphasis>max_contacts</emphasis> - the number of maximum
+ <emphasis>expires</emphasis> - the number of maximum
contacts to be stored for the current registration AoR. It
overwrites the 'max_contacts' module parameter value.
</para>
</listitem>
<listitem>
<para>
- <emphasis>socket</emphasis> - the string representing the
- socket on which the register request was received, as alternative
- to using the sock_hdr.
+ <emphasis>q</emphasis> - the expires value, to overwrite the
+ value from SIP headers.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis>max_contacts</emphasis> - the number of maximum
+ contacts to be stored for the current registration AoR. It
+ overwrites the 'max_contacts' module parameter value.
</para>
</listitem>
<listitem>
<para>
- <emphasis>q</emphasis> - q value of contact
- (integer 0-1000). It
- overrides q value given in contact header and
- default_q parameter.
+ <emphasis>socket</emphasis> - the string representing the
+ socket on which the register request was received, as alternative
+ to using the sock_hdr.
</para>
</listitem>
</itemizedlist>
@@ -784,6 +789,7 @@ modparam("registrar", "xavp_cfg", "reg")
request_route {
...
$xavp(reg=>max_contacts) = 4;
+ $xavp(reg[0]=>expires) = 600;
save("location");
...
}
Hello,
I am planning to release next week (likely on Monday 21st December) the next minor version out of branch 5.3, version 5.3.8.
Backports of fixed issues from git master will be integrated as usual. If you are aware of new issues which were not yet reported, let us know (by creating an issue on the tracker).
Cheers,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>
Module: kamailio
Branch: master
Commit: 729340ff8c80ac836f1889c505cf361abc4fe0ae
URL: https://github.com/kamailio/kamailio/commit/729340ff8c80ac836f1889c505cf361…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-21T10:29:28+01:00
http_client: docs for http_client_get()
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/729340ff8c80ac836f1889c505cf361…
Patch: https://github.com/kamailio/kamailio/commit/729340ff8c80ac836f1889c505cf361…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml b/src/modules/http_client/doc/http_client_admin.xml
index 6f1c897690..2c8295f07f 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -897,6 +897,35 @@ http_client_query("http://api.com/index.php",
# POST-Request
http_client_query("http://api.com/index.php", "src=$si",
"Content-Type: text/plain", "$var(result)");
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="http_client.f.http_get">
+ <title>
+ <function moreinfo="none">http_client_get(url, body, hdrs, respv)</function>
+ </title>
+ <para>
+ Perform a HTTP GET request to "url", storing the response body
+ in the "respv" variable. The "body" and "hdrs" can be empty strings
+ to skip setting them. The first three parameters can contain
+ variables that are evaluated at runtime. The "respv" has to be
+ the name of a writable variable.
+ </para>
+ <para>
+ Note: usually HTTP GET requests should have no body, according to
+ specs the body in HTTP GET does not affect the response, but is
+ not explicitely forbidden.
+ </para>
+ <example>
+ <title><function>http_client_get()</function> usage</title>
+ <programlisting format="linespecific">
+...
+http_client_get("http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escap…",
+ "", "X-Token: abc", "$var(result)");
+switch ($rc) {
+ ...
+}
...
</programlisting>
</example>
#### Pre-Submission Checklist
- [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)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Caller LIS server may use namepace prefix `gml` or any other.
When created LOST request, then `location-info` payload created from `pidf-lo` and `p2` prefix namespace not used.
I suggest make some code cleanup and remove not used strings.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2584
-- Commit Summary --
* lost: removed not used namespace
-- File Changes --
M src/modules/lost/utilities.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2584.patchhttps://github.com/kamailio/kamailio/pull/2584.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/2584
- Fixed the way the module is initialized, causing problems when using
destination mod parameter because when invoking this parameter some
utilities are not initialized (timers).
<!-- 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)
- [ ] 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 -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #2476 (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Fixed the way the module is initialized, causing problems when using destination mod parameter because when invoking this parameter some utilities are not yet initialized (timers).
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2579
-- Commit Summary --
* keepalive: fix initialization when using destination mod param
-- File Changes --
M src/modules/keepalive/keepalive.h (8)
M src/modules/keepalive/keepalive_mod.c (68)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2579.patchhttps://github.com/kamailio/kamailio/pull/2579.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/2579
Commit fa7eb2a switched the 2 parameter version of sip_trace from
using the builtin fixup_spve_spve to the custom fixup method to
using the custom fixup_siptrace. As it is a custom fixup method,
the corresponding free method can not be auto-detected causing the
config parser to require the parameters to be a constant. This
patch adds a free method, allowing variables to be once again passed
as the 2nd parameter of this method (as well as fixing a memory leak
for the 3rd parameter).
<!-- 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
- [x] 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/2588
-- Commit Summary --
* modules/siptrace: fix regression preventing variables to be used
-- File Changes --
M src/modules/siptrace/siptrace.c (18)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2588.patchhttps://github.com/kamailio/kamailio/pull/2588.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/2588
Module: kamailio
Branch: master
Commit: 7c98d547996637a7bf1c7025c93142f574fe3ac9
URL: https://github.com/kamailio/kamailio/commit/7c98d547996637a7bf1c7025c93142f…
Author: tsearle <tsearle(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2020-12-16T21:47:11+01:00
modules/siptrace: fix regression preventing variables to be used (#2588)
* modules/siptrace: fix regression preventing variables to be used
Commit fa7eb2a switched the 2 parameter version of sip_trace from
using the builtin fixup_spve_spve to the custom fixup method to
using the custom fixup_siptrace. As it is a custom fixup method,
the corresponding free method can not be auto-detected causing the
config parser to require the parameters to be a constant. This
patch adds a free method, allowing variables to be once again passed
as the 2nd parameter of this method (as well as fixing a memory leak
for the 3rd parameter).
* change free for parameter 3
Co-authored-by: Torrey Searle <tsearle(a)voxbone.com>
---
Modified: src/modules/siptrace/siptrace.c
---
Diff: https://github.com/kamailio/kamailio/commit/7c98d547996637a7bf1c7025c93142f…
Patch: https://github.com/kamailio/kamailio/commit/7c98d547996637a7bf1c7025c93142f…
---
diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index 2e8e690ac0..e9c44ec548 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -91,6 +91,7 @@ static int w_sip_trace1(struct sip_msg *, char *dest, char *p2);
static int w_sip_trace2(struct sip_msg *, char *dest, char *correlation_id);
static int w_sip_trace3(struct sip_msg *, char *dest, char *correlation_id, char *trace_type);
static int fixup_siptrace(void **param, int param_no);
+static int fixup_free_siptrace(void **param, int param_no);
static int w_sip_trace_mode(sip_msg_t *msg, char *pmode, char *p2);
static int siptrace_parse_uri(str* duri, dest_info_t* dst);
@@ -203,9 +204,9 @@ static cmd_export_t cmds[] = {
ANY_ROUTE},
{"sip_trace", (cmd_function)w_sip_trace1, 1, fixup_siptrace, 0,
ANY_ROUTE},
- {"sip_trace", (cmd_function)w_sip_trace2, 2, fixup_siptrace, 0,
+ {"sip_trace", (cmd_function)w_sip_trace2, 2, fixup_siptrace, fixup_free_siptrace,
ANY_ROUTE},
- {"sip_trace", (cmd_function)w_sip_trace3, 3, fixup_siptrace, 0,
+ {"sip_trace", (cmd_function)w_sip_trace3, 3, fixup_siptrace, fixup_free_siptrace,
ANY_ROUTE},
{"hlog", (cmd_function)w_hlog1, 1, fixup_spve_null, 0,
ANY_ROUTE},
@@ -785,6 +786,21 @@ static int fixup_siptrace(void **param, int param_no)
return 0;
}
+static int fixup_free_siptrace(void **param, int param_no)
+{
+ if (param_no == 1 || param_no == 2) {
+ /* correlation id */
+ return fixup_free_spve_all(param, param_no);
+ } if (param_no == 3) {
+ /* tracing type; string only */
+ if (*param) {
+ pkg_free(*param);
+ }
+ }
+
+ return 0;
+}
+
/**
*
Functions added:
- set_body
- set_body_multipart
- append_body_part
<!-- 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 -->
- [x] 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/2586
-- Commit Summary --
* textops: added functions to manipulate the body in the exported api
-- File Changes --
M src/modules/textops/api.c (18)
M src/modules/textops/api.h (6)
M src/modules/textops/textops.c (19)
M src/modules/textops/textops.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2586.patchhttps://github.com/kamailio/kamailio/pull/2586.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/2586
<!-- 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)
- [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 -->
Evapi: added KEMI function for evapi_async_multicast
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2582
-- Commit Summary --
* evapi: export async_multicast() to kemi
-- File Changes --
M src/modules/evapi/evapi_mod.c (58)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2582.patchhttps://github.com/kamailio/kamailio/pull/2582.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/2582