Am Samstag, 9. Februar 2019, 16:20:03 CET schrieb Federico Cabiddu:
> thanks for signaling. I've pushed a fix to include an ifdef, as you
> suggested.
> I've also added a note in the documentation about CURLOPT_TCP_KEEPALIVE
> requiring cURL minimum version 7.25.0 (which is pretty old).
Hi Federico,
thank you.
Best regards,
Henning
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Kamailio security assessment - https://skalatan.de/de/assessment
Fixes all over. If not all acceptable, please cherry-pick, or let me know so i can remove them.
<!-- 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 …
[View More]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 -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally on 5.1, compile tested on master
- [ ] 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/1833
-- Commit Summary --
* dispatcher: Fix memleak in destination attributes
* dispatcher: Stop searching if entry is found
* dispatcher: remove duplicate code in ds_load_remove()
* jansson: Fix reverse logic for JSON boolean
* siputils: Return true if options_reply() succeeds
* dispatcher: Don't take modulus of hash twice
* jansson: Log column on parse error
* jsonrpcs: Fix memleak with srjson_doc_t
-- File Changes --
M src/modules/dispatcher/dispatch.c (69)
M src/modules/jansson/jansson_funcs.c (6)
M src/modules/jansson/jansson_utils.c (2)
M src/modules/jsonrpcs/jsonrpcs_mod.c (2)
M src/modules/siputils/options.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1833.patchhttps://github.com/kamailio/kamailio/pull/1833.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/1833
[View Less]
#### 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 …
[View More](non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [X] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
I've recently being experiencing a loop in nodes removal/addition leading to "ghost nodes".
Suppose to have three servers A,B,C.
Server C goes down not cleanly, so DMQ doesn't notify the other nodes. Server A is the first to send its ping, with a nodelist including node C. After fr_timer, the transaction for the message to node C times out and the node is removed from node A nodelist.
Then node B sends its ping with a nodelist including node C (still alive for A), node A sees node C as a new node and adds it back to its nodelist. Now node B reaching fr_timer timeout removes node C, until next node's A ping, and so on. This does not occur if the delta between node A and node B pings is less than fr_timer.
What I propose here is that, upon a failed ping, the failing node is put in disabled state and we wait a 2nd failed ping before removing it from the nodelist. This should prevent dead nodes to come back.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1840
-- Commit Summary --
* dmq: wait for a 2nd failed ping before deleting a node
-- File Changes --
M src/modules/dmq/notification_peer.c (23)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1840.patchhttps://github.com/kamailio/kamailio/pull/1840.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/1840
[View Less]
### Description
Hello.
There is no app_ruby RPM package in https://build.opensuse.org/project/show/home:kamailio:v5.2.x-rpms. Based on my slack conversation with Victor Seva, new modules introduced in v5.2 seem to be missed and SPEC didn't get updated.
### Troubleshooting
#### Reproduction
yum install kamailio
have loadmodule "app_ruby.so" in kamailio.cfg
try to start kamailio service, it doesn't start
#### Log Messages
```
ERROR: <core> [core/sr_module.c:487]: load_module(): could not …
[View More]find module <app_ruby> in </usr/lib64/kamailio/modules>
```
### Possible Solutions
Update kamailio.spec file to compile and package app_ruby.so
### Additional Information
```
version: kamailio 5.2.0 (x86_64/linux) 535e13
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 535e13
compiled on 10:26:34 Nov 28 2018 with gcc 4.8.5
```
* **Operating System**:
```
Linux servername 3.10.0-327.28.2.el7.x86_64 #1 SMP Wed Aug 3 11:11:39 UTC 2016 x86_64 x86_64 x86_64 GNU/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/1761
[View Less]
Module: kamailio
Branch: master
Commit: 065b1d64453d8b5709069f50cfd705901206feb3
URL: https://github.com/kamailio/kamailio/commit/065b1d64453d8b5709069f50cfd7059…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-02-04T18:09:47+01:00
mqueue: added missing license header, removed svn ids
---
Modified: src/modules/mqueue/api.h
Modified: src/modules/mqueue/mqueue_api.c
Modified: src/modules/mqueue/mqueue_api.…
[View More]h
---
Diff: https://github.com/kamailio/kamailio/commit/065b1d64453d8b5709069f50cfd7059…
Patch: https://github.com/kamailio/kamailio/commit/065b1d64453d8b5709069f50cfd7059…
---
diff --git a/src/modules/mqueue/api.h b/src/modules/mqueue/api.h
index 3c67f2fdbd..e00b474c92 100644
--- a/src/modules/mqueue/api.h
+++ b/src/modules/mqueue/api.h
@@ -1,3 +1,25 @@
+/**
+ * Copyright (C) 2010 Elena-Ramona Modroiu (asipto.com)
+ *
+ * This file is part of Kamailio, a free SIP server.
+ *
+ * This file is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version
+ *
+ * This file is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+
#ifndef _MQUEUE_EXT_API_H_
#define _MQUEUE_EXT_API_H_
diff --git a/src/modules/mqueue/mqueue_api.c b/src/modules/mqueue/mqueue_api.c
index d83c3ce6ce..55833790f8 100644
--- a/src/modules/mqueue/mqueue_api.c
+++ b/src/modules/mqueue/mqueue_api.c
@@ -1,6 +1,4 @@
/**
- * $Id$
- *
* Copyright (C) 2010 Elena-Ramona Modroiu (asipto.com)
*
* This file is part of Kamailio, a free SIP server.
diff --git a/src/modules/mqueue/mqueue_api.h b/src/modules/mqueue/mqueue_api.h
index 79996805f7..bc976b6ff7 100644
--- a/src/modules/mqueue/mqueue_api.h
+++ b/src/modules/mqueue/mqueue_api.h
@@ -1,6 +1,4 @@
/**
- * $Id$
- *
* Copyright (C) 2010 Elena-Ramona Modroiu (asipto.com)
*
* This file is part of Kamailio, a free SIP server.
[View Less]
Hello,
Fosdem 2019 is approaching, so I am writing to see if any of you plans
to go to the event. If there is interest, we can try to organize again a
dinner on Saturday evening, a tradition for our project at the past 10
editions or even more.
Henning Westerholt will give a presentation about Kamailio in the RTC
Devroom, I will be around as well. I know few more developers that plan
to go to the event, so let's see who else from the community wants to
join us. As usual, at Fosdem will be …
[View More]developers from other VoIP
projects, like Asterisk, Janus, CGRates, Homer, Jitsi, ...
At the past editions we typically had two "kamailio" events:
1) an "ad-hoc" developers meeting in the cantina (or other available
room around) to discuss about short term plans for Kamailio -- time and
place being decided as we meet there between us (expected in the
afternoon of Saturday or during Sunday).
2) a dinner at a place nearby, with other VoIP folks joining us
Reply if you plan to go to Fosdem and say if you want to join for a
dinner. Just be aware that you have to pay for your food and drinks at
the dinner, unless we are going to be surprised again by a generous
sponsor that covers partially or completely to dinner.
If you need more details about Fosdem, the website is:
- https://fosdem.org
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
[View Less]
<!-- 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 …
[View More]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 -->
- [ ] 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 -->
fixed P-associated-uri header construncting. it now creates sip and tel uri and appending them to P-header
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1825
-- Commit Summary --
* ims_isc : fixed memory leak
* ims_isc : fixed P-associated-uri header constructing
-- File Changes --
M src/modules/ims_isc/third_party_reg.c (61)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1825.patchhttps://github.com/kamailio/kamailio/pull/1825.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/1825
[View Less]
#### 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 …
[View More]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 -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
I remember there was some discussion about adding DNS statistics, I think I remember a discussion involving @ngvoice Carsten ?
This is adding a parameter to the core `dns_slow_query_ms`
Example:
```
dns_slow_query_ms=100
```
When using the internal resolver any query taking more than `dns_slow_query_ms` will be lodged as a warning :
```
dns_slow_query_ms=10 (example with 10ms)
5(5960) WARNING: <core> [core/resolve.c:752]: get_record(): res_search[35][us-west-wa.sip.flowroute.com]elapsed[12ms]
5(5960) WARNING: <core> [core/resolve.c:752]: get_record(): res_search[1][ep-us-west-wa-01.flowroute.com]elapsed[12ms]
```
and a statistic counter will be incremented :
```
kamcmd stats.fetch dns:slow_dns_request
{
dns.slow_dns_request: 1
}
```
I think this will be a good start to monitor the impact of slow DNS queries on Kamailio.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1824
-- Commit Summary --
* core: dns slow queries reporting
-- File Changes --
M src/core/cfg.lex (3)
M src/core/cfg.y (3)
M src/core/cfg_core.c (3)
M src/core/cfg_core.h (1)
M src/core/resolve.c (17)
M src/core/resolve.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1824.patchhttps://github.com/kamailio/kamailio/pull/1824.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/1824
[View Less]
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1826
-- Commit Summary --
* pkg/docker: Updated submodule
* pkg/kamailio/alpine: Update APKBUILD
* pkg/docker: Alpine switched to use openssl. Updated rules for alpine docker container
* kamdbctl: Merged patch from alpine packaging (#1786)
-- File Changes --
M pkg/docker (2)
D pkg/kamailio/alpine/0004-src_core_tcp_read_c.patch (20)
M pkg/kamailio/alpine/APKBUILD (…
[View More]12)
M pkg/kamailio/alpine/kamailio.initd (2)
D pkg/kamailio/alpine/kamctl_build.patch (236)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1826.patchhttps://github.com/kamailio/kamailio/pull/1826.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/1826
[View Less]
Module: kamailio
Branch: master
Commit: ec993297b38b5d90e88d838f7d126317d6ab4641
URL: https://github.com/kamailio/kamailio/commit/ec993297b38b5d90e88d838f7d12631…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-02-01T19:31:45+01:00
modules: readme files regenerated - rr ... [skip ci]
---
Modified: src/modules/rr/README
---
Diff: https://github.com/kamailio/kamailio/commit/ec993297b38b5d90e88d838f7d12631……
[View More]Patch: https://github.com/kamailio/kamailio/commit/ec993297b38b5d90e88d838f7d12631…
---
diff --git a/src/modules/rr/README b/src/modules/rr/README
index 9feab35738..4fe696ee3a 100644
--- a/src/modules/rr/README
+++ b/src/modules/rr/README
@@ -408,6 +408,7 @@ modparam("rr", "ignore_sips", 1)
* 2 - route calculation based on flow-token has been successful
* -1 - route calculation has been unsuccessful
* -2 - outbound flow-token shows evidence of tampering
+ * -3 - next hop is taken from a preloaded route set
This function can be used from REQUEST_ROUTE.
[View Less]
Module: kamailio
Branch: master
Commit: 98056258b7ebdc65c8147d9d057bc350a38e55f8
URL: https://github.com/kamailio/kamailio/commit/98056258b7ebdc65c8147d9d057bc35…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2019-02-01T19:25:34+01:00
Merge pull request #1830 from gaaf/rr-lr-retval
rr: Add new return value for preloaded route set to loose_route()
---
Modified: src/modules/rr/doc/rr_admin.xml
Modified: src/modules/rr/loose.…
[View More]c
---
Diff: https://github.com/kamailio/kamailio/commit/98056258b7ebdc65c8147d9d057bc35…
Patch: https://github.com/kamailio/kamailio/commit/98056258b7ebdc65c8147d9d057bc35…
---
diff --git a/src/modules/rr/doc/rr_admin.xml b/src/modules/rr/doc/rr_admin.xml
index 7dd1868e2a..74e59abe82 100644
--- a/src/modules/rr/doc/rr_admin.xml
+++ b/src/modules/rr/doc/rr_admin.xml
@@ -364,7 +364,7 @@ modparam("rr", "ignore_sips", 1)
<listitem>
<para><emphasis>2</emphasis> - route calculation based on
- flow-token has been successful</para>
+ flow-token has been successful</para>
</listitem>
<listitem>
@@ -376,6 +376,11 @@ modparam("rr", "ignore_sips", 1)
<para><emphasis>-2</emphasis> - outbound flow-token shows evidence
of tampering</para>
</listitem>
+
+ <listitem>
+ <para><emphasis>-3</emphasis> - next hop is taken from
+ a preloaded route set</para>
+ </listitem>
</itemizedlist>
<para>This function can be used from REQUEST_ROUTE.</para>
diff --git a/src/modules/rr/loose.c b/src/modules/rr/loose.c
index 6e9e888a2b..efe428a1cd 100644
--- a/src/modules/rr/loose.c
+++ b/src/modules/rr/loose.c
@@ -48,6 +48,7 @@
#define RR_OB_DRIVEN 2 /*!< The next hop is determined from the route set based on flow-token */
#define NOT_RR_DRIVEN -1 /*!< The next hop is not determined from the route set */
#define FLOW_TOKEN_BROKEN -2 /*!< Outbound flow-token shows evidence of tampering */
+#define RR_PRELOADED -3 /*!< The next hop is determined from a preloaded route set */
#define RR_ROUTE_PREFIX ROUTE_PREFIX "<"
#define RR_ROUTE_PREFIX_LEN (sizeof(RR_ROUTE_PREFIX)-1)
@@ -840,7 +841,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
}
if (res > 0) { /* No next route found */
LM_DBG("No next URI found\n");
- status = (preloaded ? NOT_RR_DRIVEN : RR_DRIVEN);
+ status = (preloaded ? RR_PRELOADED : RR_DRIVEN);
goto done;
}
rt = (rr_t*)hdr->parsed;
@@ -873,7 +874,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
}
if (res > 0) { /* No next route found */
LM_DBG("no next URI found\n");
- status = (preloaded ? NOT_RR_DRIVEN : RR_DRIVEN);
+ status = (preloaded ? RR_PRELOADED : RR_DRIVEN);
goto done;
}
rt = (rr_t*)hdr->parsed;
[View Less]
Instead of returning just -1 (error), return a dedicated value. Now it is
possible to detect from the script if a preloaded Route header was removed
that pointed at the local proxy.
The new return code is kept negative, so all code checking for failure response
keeps working.
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be …
[View More]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 -->
- [ ] 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/1830
-- Commit Summary --
* rr: Add new return value for preloaded route set to loose_route()
-- File Changes --
M src/modules/rr/doc/rr_admin.xml (7)
M src/modules/rr/loose.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1830.patchhttps://github.com/kamailio/kamailio/pull/1830.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/1830
[View Less]
Module: kamailio
Branch: master
Commit: c5b8e5b3a82ac0f61a059f69921866952405ffe5
URL: https://github.com/kamailio/kamailio/commit/c5b8e5b3a82ac0f61a059f699218669…
Author: Alex Hermann <alex(a)hexla.nl>
Committer: Alex Hermann <alex(a)hexla.nl>
Date: 2019-02-01T11:14:10+01:00
rr: Add new return value for preloaded route set to loose_route()
Instead of returning just -1 (error), return a dedicated value. Now it is
possible to detect from the script if a preloaded Route header was …
[View More]removed
that pointed at the local proxy.
The new return code is kept negative, so all code checking for failure response
keeps working.
---
Modified: src/modules/rr/doc/rr_admin.xml
Modified: src/modules/rr/loose.c
---
Diff: https://github.com/kamailio/kamailio/commit/c5b8e5b3a82ac0f61a059f699218669…
Patch: https://github.com/kamailio/kamailio/commit/c5b8e5b3a82ac0f61a059f699218669…
---
diff --git a/src/modules/rr/doc/rr_admin.xml b/src/modules/rr/doc/rr_admin.xml
index 7dd1868e2a..74e59abe82 100644
--- a/src/modules/rr/doc/rr_admin.xml
+++ b/src/modules/rr/doc/rr_admin.xml
@@ -364,7 +364,7 @@ modparam("rr", "ignore_sips", 1)
<listitem>
<para><emphasis>2</emphasis> - route calculation based on
- flow-token has been successful</para>
+ flow-token has been successful</para>
</listitem>
<listitem>
@@ -376,6 +376,11 @@ modparam("rr", "ignore_sips", 1)
<para><emphasis>-2</emphasis> - outbound flow-token shows evidence
of tampering</para>
</listitem>
+
+ <listitem>
+ <para><emphasis>-3</emphasis> - next hop is taken from
+ a preloaded route set</para>
+ </listitem>
</itemizedlist>
<para>This function can be used from REQUEST_ROUTE.</para>
diff --git a/src/modules/rr/loose.c b/src/modules/rr/loose.c
index 6e9e888a2b..efe428a1cd 100644
--- a/src/modules/rr/loose.c
+++ b/src/modules/rr/loose.c
@@ -48,6 +48,7 @@
#define RR_OB_DRIVEN 2 /*!< The next hop is determined from the route set based on flow-token */
#define NOT_RR_DRIVEN -1 /*!< The next hop is not determined from the route set */
#define FLOW_TOKEN_BROKEN -2 /*!< Outbound flow-token shows evidence of tampering */
+#define RR_PRELOADED -3 /*!< The next hop is determined from a preloaded route set */
#define RR_ROUTE_PREFIX ROUTE_PREFIX "<"
#define RR_ROUTE_PREFIX_LEN (sizeof(RR_ROUTE_PREFIX)-1)
@@ -840,7 +841,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
}
if (res > 0) { /* No next route found */
LM_DBG("No next URI found\n");
- status = (preloaded ? NOT_RR_DRIVEN : RR_DRIVEN);
+ status = (preloaded ? RR_PRELOADED : RR_DRIVEN);
goto done;
}
rt = (rr_t*)hdr->parsed;
@@ -873,7 +874,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
}
if (res > 0) { /* No next route found */
LM_DBG("no next URI found\n");
- status = (preloaded ? NOT_RR_DRIVEN : RR_DRIVEN);
+ status = (preloaded ? RR_PRELOADED : RR_DRIVEN);
goto done;
}
rt = (rr_t*)hdr->parsed;
[View Less]
<!-- 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 …
[View More]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 -->
added target to install systemd and sysconfig files for systemd service
installation method : make install-systemd-centos
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1831
-- Commit Summary --
* src/Makefile: added target to install files for systemd on Centos 7
-- File Changes --
M src/Makefile (21)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1831.patchhttps://github.com/kamailio/kamailio/pull/1831.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/1831
[View Less]
### Description
the /var/run/kamailio directory for the fifo and crtl files are denied for acces to the service
as i can see directory are owed byt root and only ower and group have
access
kamailio 4.4 backported by me for Debian jessie have this:
`drwxr-xr-x 2 kamailio kamailio 100 Aug 15 17:33 kamailio`
kamailio 5.2 installed on buster/testing build from sources:
`drwxr-x--- 2 root root 120 Jan 30 09:35 kamailio`
**NOTE** no definiton are setup, and surprise if i defined some, the only …
[View More]working dir are /tmp !!!
### Troubleshooting
kamailio 4.4 backported by me for Debian jessie have this:
`drwxr-xr-x 2 kamailio kamailio 100 Aug 15 17:33 kamailio`
kamailio 5.2 installed on buster/testing build from sources:
`drwxr-x--- 2 root root 120 Jan 30 09:35 kamailio`
due that several issues are happened if we started using some modules
due unable to manage the socket control:
```
Jan 31 15:35:51 venenux-debian kamailio[16861]: 17(16889) ERROR:
<core> [core/io_wait.h:1040]: io_wait_loop_epoll(): epoll_wait(7,
0x7f6ed6f88d88, 0, 5000): Invalid argument [22]
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR: ctl
[ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket
/var/run/kamailio//kamailio_ctl: Permission denied (13)
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: <core>
[db_pool.c:100]: pool_remove(): removing connection from the pool
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:85]: tm_shutdown(): start
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:88]: tm_shutdown(): emptying hash table
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:90]: tm_shutdown(): removing semaphores
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:92]: tm_shutdown(): destroying tmcb lists
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:95]: tm_shutdown(): done
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_fifo.c:599]: jsonrpc_fifo_destroy(): FIFO stat
failed: Permission denied
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_sock.c:516]: jsonrpc_dgram_destroy(): socket stat
failed: Permission denied
```
#### Reproduction
build from sources with default values enable dialog, blf support and asterisk and start service.. when try to control using socket kamailio cannot comunicate with itselft! very ironic!
#### Log Messages
```
Jan 31 15:35:51 venenux-debian kamailio[16861]: 17(16889) ERROR:
<core> [core/io_wait.h:1040]: io_wait_loop_epoll(): epoll_wait(7,
0x7f6ed6f88d88, 0, 5000): Invalid argument [22]
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR: ctl
[ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket
/var/run/kamailio//kamailio_ctl: Permission denied (13)
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: <core>
[db_pool.c:100]: pool_remove(): removing connection from the pool
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:85]: tm_shutdown(): start
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:88]: tm_shutdown(): emptying hash table
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:90]: tm_shutdown(): removing semaphores
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:92]: tm_shutdown(): destroying tmcb lists
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) DEBUG: tm
[t_funcs.c:95]: tm_shutdown(): done
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_fifo.c:599]: jsonrpc_fifo_destroy(): FIFO stat
failed: Permission denied
Jan 31 15:35:51 venenux-debian kamailio[16861]: 0(16863) ERROR:
jsonrpcs [jsonrpcs_sock.c:516]: jsonrpc_dgram_destroy(): socket stat
failed: Permission denied
```
#### SIP Traffic
NOT RELATED
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.2.1 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 4.9.2
```
* **Operating System**:
```
Debian buster/testing
```
--
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/1827
[View Less]
Empties the entire specified hash table
<!-- 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 (…
[View More]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 -->
- [ ] 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 -->
Add a new RPC comand to flush (empty) a htable.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1828
-- Commit Summary --
* htable: Add RPC htable.flush <htable>
-- File Changes --
M src/modules/htable/doc/htable_admin.xml (23)
M src/modules/htable/htable.c (24)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1828.patchhttps://github.com/kamailio/kamailio/pull/1828.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/1828
[View Less]
Module: kamailio
Branch: master
Commit: 43d49848c33360484ac57719bd09740326754b69
URL: https://github.com/kamailio/kamailio/commit/43d49848c33360484ac57719bd09740…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-01-31T16:16:50+01:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]43d49848c33360484ac57719bd09740…
Patch: https://github.com/kamailio/kamailio/commit/43d49848c33360484ac57719bd09740…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index fa1554dde6..766e639c6f 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1131,7 +1131,7 @@ if(ds_select("1", "$var(a)")) {
destination URI; '1', 'r' or 'R' to push the address in R-URI; '2',
'x' or 'X' to push the address only in the XAVP when failure
rerouting is enabled. Note that only first character of the
- parameter matters, therefore once case use a more meaningful value
+ parameter matters, therefore one can use a more meaningful value
such as 'ruri' instead of 'r'. The parameter can contain pseudo
variables.
* limit - a positive integer value to restrict the number of selected
[View Less]
Module: kamailio
Branch: master
Commit: bcb92740f043dce7c5145070cb298de5f7d02c6e
URL: https://github.com/kamailio/kamailio/commit/bcb92740f043dce7c5145070cb298de…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-31T16:05:13+01:00
dispatcher: docs - fixed typos
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]bcb92740f043dce7c5145070cb298de…
Patch: https://github.com/kamailio/kamailio/commit/bcb92740f043dce7c5145070cb298de…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 5173dffdb9..493332ab28 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1308,7 +1308,7 @@ if(ds_select("1", "$var(a)")) {
the address in destination URI; '1', 'r' or 'R' to push the address
in R-URI; '2', 'x' or 'X' to push the address only in the XAVP when
failure rerouting is enabled. Note that only first character of the
- parameter matters, therefore once case use a more meaningful value
+ parameter matters, therefore one can use a more meaningful value
such as 'ruri' instead of 'r'. The parameter can contain pseudo
variables.
</para>
[View Less]
Hello,
Kamailio SIP Server v5.1.7 stable release is out.
This is a maintenance release of the previous stable branch, 5.1, that
includes fixes since the release of v5.1.6. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.1.x. Deployments running previous v5.1.x
versions are strongly recommended to be upgraded to v5.1.7 or to v5.2.x
series.
For more details about version 5.1.7 (including links and guidelines to
…
[View More]download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2019/01/kamailio-v5-1-7-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Note: the branch 5.1 is the previous stable branch. The latest stable
branch is 5.2, at this time with v5.2.1 being released out of it.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
[View Less]
Module: kamailio
Branch: 5.1
Commit: 745bfe69a6f42ee882f4dcd37fef7c78a02120e8
URL: https://github.com/kamailio/kamailio/commit/745bfe69a6f42ee882f4dcd37fef7c7…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-01-31T10:17:26+01:00
pkg/kamailio/deb: version set to 5.1.7
---
Modified: pkg/kamailio/deb/buster/changelog
Modified: pkg/kamailio/deb/debian/changelog
Modified: pkg/kamailio/deb/jessie/…
[View More]changelog
Modified: pkg/kamailio/deb/precise/changelog
Modified: pkg/kamailio/deb/sid/changelog
Modified: pkg/kamailio/deb/stretch/changelog
Modified: pkg/kamailio/deb/trusty/changelog
Modified: pkg/kamailio/deb/wheezy/changelog
Modified: pkg/kamailio/deb/xenial/changelog
---
Diff: https://github.com/kamailio/kamailio/commit/745bfe69a6f42ee882f4dcd37fef7c7…
Patch: https://github.com/kamailio/kamailio/commit/745bfe69a6f42ee882f4dcd37fef7c7…
---
diff --git a/pkg/kamailio/deb/buster/changelog b/pkg/kamailio/deb/buster/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/buster/changelog
+++ b/pkg/kamailio/deb/buster/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/debian/changelog b/pkg/kamailio/deb/debian/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/debian/changelog
+++ b/pkg/kamailio/deb/debian/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/jessie/changelog b/pkg/kamailio/deb/jessie/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/jessie/changelog
+++ b/pkg/kamailio/deb/jessie/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/precise/changelog b/pkg/kamailio/deb/precise/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/precise/changelog
+++ b/pkg/kamailio/deb/precise/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/sid/changelog b/pkg/kamailio/deb/sid/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/sid/changelog
+++ b/pkg/kamailio/deb/sid/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/stretch/changelog b/pkg/kamailio/deb/stretch/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/stretch/changelog
+++ b/pkg/kamailio/deb/stretch/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/trusty/changelog b/pkg/kamailio/deb/trusty/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/trusty/changelog
+++ b/pkg/kamailio/deb/trusty/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/wheezy/changelog b/pkg/kamailio/deb/wheezy/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/wheezy/changelog
+++ b/pkg/kamailio/deb/wheezy/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
diff --git a/pkg/kamailio/deb/xenial/changelog b/pkg/kamailio/deb/xenial/changelog
index 1bf0e11ca1..ba5d29653d 100644
--- a/pkg/kamailio/deb/xenial/changelog
+++ b/pkg/kamailio/deb/xenial/changelog
@@ -1,3 +1,9 @@
+kamailio (5.1.7) unstable; urgency=medium
+
+ * version set to 5.1.7
+
+ -- Victor Seva <vseva(a)debian.org> Thu, 31 Jan 2019 10:15:30 +0100
+
kamailio (5.1.6) unstable; urgency=medium
* version set to 5.1.6
[View Less]
Hello,
I am considering to release Kamailio v5.1.7 later this week, likely on
Thursday, January 31, 2019.
As usual, here come the notice to report any issue that you are aware of
and not yet registered on the bug tracker in order to give them a chance
to be analyzed and eventually fixed before the release. Also, take a
look at the branch 5.1 in git and check if there are any missing commits
from those you expected to be backported.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.…
[View More]comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
[View Less]
Module: kamailio
Branch: master
Commit: d61b570c21200bb90cb00d8203f62997c6035bdb
URL: https://github.com/kamailio/kamailio/commit/d61b570c21200bb90cb00d8203f6299…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-30T13:39:04+01:00
core: added command line option --alias=val
* set an alias from command line
* example: kamailio --alias=udp:kamailio.org:5060 ...
---
Modified: src/main.c
---
Diff: …
[View More]https://github.com/kamailio/kamailio/commit/d61b570c21200bb90cb00d8203f6299…
Patch: https://github.com/kamailio/kamailio/commit/d61b570c21200bb90cb00d8203f6299…
---
diff --git a/src/main.c b/src/main.c
index f1a26359f6..4e3b9112e4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -155,6 +155,8 @@ Usage: " NAME " [options]\n\
Options:\n\
-a mode Auto aliases mode: enable with yes or on,\n\
disable with no or off\n\
+ --alias=val Add an alias, the value has to be '[proto:]hostname[:port]'\n\
+ (like for 'alias' global parameter)\n\
-A define Add config pre-processor define (e.g., -A WITH_AUTH)\n\
-b nr Maximum receive buffer size which will not be exceeded by\n\
auto-probing procedure even if OS allows\n\
@@ -170,7 +172,7 @@ Options:\n\
-g gid Change gid (group id)\n\
-G file Create a pgid file\n\
-h This help message\n\
- --help Same as `-h`\n\
+ --help Long option for `-h`\n\
-I Print more internal compile flags and options\n\
-K Turn on \"via:\" host checking when forwarding replies\n\
-l address Listen on the specified address/interface (multiple -l\n\
@@ -209,8 +211,9 @@ Options:\n\
" -T Disable tcp\n"
#endif
" -u uid Change uid (user id)\n\
- -v (-V) Version number\n\
- --version Same as `-v`\n\
+ -v Version number\n\
+ --version Long option for `-v`\n\
+ -V Alternative for `-v`\n\
-x name Specify internal manager for shared memory (shm)\n\
- can be: fm, qm or tlsf\n\
-X name Specify internal manager for private memory (pkg)\n\
@@ -1878,9 +1881,13 @@ int main(int argc, char** argv)
int option_index = 0;
+#define KARGOPTVAL 1024
static struct option long_options[] = {
+ /* long options with short variant */
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'v'},
+ /* long options without short variant */
+ {"alias", required_argument, 0, KARGOPTVAL},
{0, 0, 0, 0 }
};
@@ -2101,6 +2108,21 @@ int main(int argc, char** argv)
case 's':
case 'Y':
break;
+
+ /* long options */
+ case KARGOPTVAL:
+ if(parse_phostport(optarg, &tmp, &tmp_len,
+ &port, &proto)!=0) {
+ fprintf(stderr, "Invalid alias value '%s'\n", optarg);
+ goto error;
+ }
+ if(add_alias(tmp, tmp_len, port, proto)<0) {
+ fprintf(stderr, "Failed to add alias value '%s'\n", optarg);
+ goto error;
+ }
+ break;
+
+ /* special cases */
case '?':
if (isprint(optopt)) {
fprintf(stderr, "Unknown option '-%c'."
@@ -2122,6 +2144,7 @@ int main(int argc, char** argv)
optopt, option_index);
}
goto error;
+
default:
fprintf(stderr, "Invalid option code '0x%x'", c);
return -1;
[View Less]
### Description
I use kazoo and postgres modules on my host. I found that many database operation generates error like
```
19(150) exec: *** cfgtrace:request_route=[kazoo:consumer-event-presence-dialog-update] c=[//etc/kamailio/presence-role.cfg] l=270 a=32 n=kazoo_pua_publish_presence
17(148) exec: *** cfgtrace:request_route=[kazoo:consumer-event-presence-dialog-update] c=[//etc/kamailio/presence-role.cfg] l=271 a=27 n=pres_refresh_watchers
Entity: line 1: parser error : Start tag expected, '…
[View More]<' not found
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c
^
17(148) ERROR: presence_xml [notify_body.c:551]: agregate_xmls(): while parsing xml body message
17(148) ERROR: presence_xml [notify_body.c:156]: pres_agg_nbody(): while aggregating body
19(150) exec: *** cfgtrace:request_route=[kazoo:consumer-event-presence-dialog-update] c=[//etc/kamailio/presence-role.cfg] l=271 a=27 n=pres_refresh_watchers
Entity: line 1: parser error : Start tag expected, '<' not found
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c
^
19(150) ERROR: presence_xml [notify_body.c:551]: agregate_xmls(): while parsing xml body message
19(150) ERROR: presence_xml [notify_body.c:156]: pres_agg_nbody(): while aggregating body
18(149) exec: *** cfgtrace:request_route=[kazoo:consumer-event-nodes-advertise] c=[//etc/kamailio/nodes-role.cfg] l=66 a=63 n=assign
18(149) exec: *** cfgtrace:request_route=[kazoo:consumer-event-nodes-advertise] c=[//etc/kamailio/nodes-role.cfg] l=74 a=16 n=if
18(149) exec: *** cfgtrace:request_route=[kazoo:consumer-event-nodes-advertise] c=[//etc/kamailio/nodes-role.cfg] l=74 a=16 n=if
18(149) exec: *** cfgtrace:request_route=[kazoo:consumer-event-nodes-advertise] c=[//etc/kamailio/nodes-role.cfg] l=75 a=27 n=mq_add
Entity: line 1: parser error : Start tag expected, '<' not found
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c
^
17(148) ERROR: presence_xml [notify_body.c:551]: agregate_xmls(): while parsing xml body message
17(148) ERROR: presence_xml [notify_body.c:156]: pres_agg_nbody(): while aggregating body
Entity: line 1: parser error : Start tag expected, '<' not found
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c
^
19(150) ERROR: presence_xml [notify_body.c:551]: agregate_xmls(): while parsing xml body message
19(150) ERROR: presence_xml [notify_body.c:156]: pres_agg_nbody(): while aggregating body
Entity: line 1: parser error : Start tag expected, '<' not found
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c
^
17(148) ERROR: presence_xml [notify_body.c:551]: agregate_xmls(): while parsing xml body message
17(148) ERROR: presence_xml [notify_body.c:156]: pres_agg_nbody(): while aggregating body
17(148) exec: *** cfgtrace:request_route=[kazoo:consumer-event-presence-dialog-update] c=[//etc/kamailio/presence-role.cfg] l=276 a=26 n=xlog
17(148) INFO: <script>: 3O75Qw3gqR3ZNla5RfCgQLVW0-8KKbrT|log|finished processing dialog update for sip:2496@rcsnet.ru state confirmed from sip:217.12.247.98:11000 at 1506632313/1506632313/1506632313
Entity: line 1: parser error : Start tag expected, '<' not found
\x3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d38223f3e3c
^
```
After some debugging i found that kamailio wants save to database xml string like this as BLOB object
```
<?xml version="1.0" encoding="UTF-8"?><presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" xmlns:c="urn:ietf:params:xml:ns:pidf:cipid" entity="2496"> <tuple xmlns="urn:ietf:params:xml:ns:pidf" id="t8No1hQnp65U33jS1oqFMgxbIRPq-iFP"><status><basic>open</basic></status></tuple><note xmlns="urn:ietf:params:xml:ns:pidf">On the Phone</note><dm:person xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid" id="1"><rpid:activities><rpid:on-the-phone/></rpid:activities><dm:note>On the Phone</dm:note></dm:person></presence>
```
And later tries to read. But when this XML read reverse conversion of BLOB to string is not take place. And late used BLOB as is. This breaks presentation logic completely.
#### Reproduction
Configure kamailio on kazoo cluster to use PostgreSQL database
On phone create subscribe to second
>From second phone create new call.
#### Operating System
CentOS 7
Linux node2.docker.rcsnet.ru 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/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/1255
[View Less]
The define WITH_HIREDIS_PATH causes the source files to include
"<hiredis/hiredis.h>". But the Makefiles check HIREDISDEFS for the
string "hiredis" and set WITH_HIREDIS_PATH if not found. Which is
exactly the opposite of what is needed. This commit corrects the logic.
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/…
[View More]master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1816
-- Commit Summary --
* modules: fix hiredis handling
-- File Changes --
M src/modules/db_redis/Makefile (2)
M src/modules/ndb_redis/Makefile (2)
M src/modules/topos_redis/Makefile (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1816.patchhttps://github.com/kamailio/kamailio/pull/1816.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/1816
[View Less]
- URL: https://github.com/kamailio/kamailio/commit/3bf230b75b181dd213b08a7cc133fe1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:47:45+01:00
lib/srdb1: memset db connection structure earlier in db_bind_mod()
(cherry picked from commit 1b014d65e26a99f9f5d4aea1b27949776f083c2d)
(cherry picked from commit 1133f818461cf2ed6c8bd755543f93b366a02683)
- URL: https://github.com/kamailio/kamailio/commit/26173d8999d31c8847d915cd26d164c…
Author: Daniel-Constantin …
[View More]Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:47:55+01:00
tm: reply_received() - simplify locking for processing sip response
- leverage the recursive mutex and skip several zones of unlock/lock,
which can lead to races on delayed processing or fast reply
retransmissions
- related to GH #1613 #1744
(cherry picked from commit 39b89a18a8c357151a173ab02dc95dff1f02715d)
(cherry picked from commit cc51d6c7170ad289c8f521a05470a2eacd05f565)
- URL: https://github.com/kamailio/kamailio/commit/3e6f951c070291b0b2e9df6cde3f287…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:48:11+01:00
auth_xkeys: clone value before inserting the lump inside auth_xkeys_add()
(cherry picked from commit 01f5ecbc45c236daea62d6638a02c168720c8479)
(cherry picked from commit 3a2d9921dc8a3c8133e7e3bacfba94468f9bbeb6)
- URL: https://github.com/kamailio/kamailio/commit/67657f5ceef6528fab2371bfea386d3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:49:16+01:00
dialog: store call-id, r-uri, f-uri and t-uri with 0-ending char
- can simplify matching with standard string comparison and regexp
(cherry picked from commit f1ab32ee4a0bf64017a0b05f2013b81d37d50208)
(cherry picked from commit 2e81abf1262784e390eb31efa95c5f437bd7051e)
- URL: https://github.com/kamailio/kamailio/commit/e3eb15272e5940222ceb40c0119e1f7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:49:36+01:00
pv: {param.count} accept static string "," as delimiter
(cherry picked from commit 80b3c37557d446bfe9ca5a5f469a42af60648280)
(cherry picked from commit cb98198e595c776ccbf2cd8777e178eb81e85b58)
- URL: https://github.com/kamailio/kamailio/commit/4942d5cecc310f516d20594f58bc7b8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:49:50+01:00
tm: error log message about new final reply made info
- can happen due to races of packets on the network
(cherry picked from commit 3d43f546ddff613c50068c9d47521a15b42f1c7b)
(cherry picked from commit 9ccbcc089e70001dd94136eadb68d2711669142f)
- URL: https://github.com/kamailio/kamailio/commit/0d62a374cef1f21ca87d2e2d9ca6b25…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:50:09+01:00
regex: init var to avoid compile warning
(cherry picked from commit dfb872b311cd0acd4a40c810f612c8a23e7c9aca)
(cherry picked from commit fc6232f7f9d1c65f436e7ca0db505c6e1114145d)
- URL: https://github.com/kamailio/kamailio/commit/44666e217420dda4bda31ae7ffb46ca…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:50:21+01:00
cplc: init var to avoid compile warning
(cherry picked from commit 0f1b970ae7f47478649b61a8dc43fe42714b2a95)
(cherry picked from commit 2dc84951b8f0e2503ee4c551b8693de36b36ef77)
- URL: https://github.com/kamailio/kamailio/commit/ab850a6ad3373dea409eed96fe87da3…
Author: Balajee <balajee(a)Balajees-MacBook-Air.local>
Date: 2019-01-28T12:50:42+01:00
topoh: fixed unmask route issue, if maksing fails for one of the routes
(cherry picked from commit d57f70127c44fd74c459aefc8d2655978b9cb48b)
(cherry picked from commit 4fe56123b424638a5967832f4ac05d3e63a13577)
- URL: https://github.com/kamailio/kamailio/commit/91763e1661c575db1f0ffb1916188a3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:50:54+01:00
topoh: aded debug message for knowing the reason of no decoding rr
(cherry picked from commit cee4941daf56985d9734263c4b99c33f9ef3a149)
(cherry picked from commit 3a78d068a3678471efe0a7e7f4ea0e7c9bc18675)
- URL: https://github.com/kamailio/kamailio/commit/206cdd921b3fcce9e89691a3c5b9154…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:51:06+01:00
websocket: use the list with ids for ws connections to do ping-pong
- avoid using pointers to ws connections, they can get closed
(cherry picked from commit b5253b62090feb70f08885fb530d894d0bd6ad90)
(cherry picked from commit e25b66962ba51e2749a093f96e0cdaac8df33a4f)
- URL: https://github.com/kamailio/kamailio/commit/9059f23474bf9ec35e7001f715860ca…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:51:17+01:00
websocket: fetch ws connections based on keepalive process index
- get the ones with id that matches the index when doing modulo over the
number of keepalive process in order to spread the load of doing the
ping-pong
(cherry picked from commit 71517152e7de26d6c47fd037c25dc854aa37734f)
(cherry picked from commit 049473bce13cc6994cbde1080d75bb25565ad5bc)
- URL: https://github.com/kamailio/kamailio/commit/f85e6bada0ebd2597cd016111f96c9f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:51:30+01:00
websocket: destroy ws connections in dedicated timer process
- avoid races/invalid access when sending data failed and the connection
was removed
- added parameter to control the timer process: interval or running and
delay interval for removing
(cherry picked from commit af09e224dba0c57c23fd58a7f83a24d2ffbaa07c)
(cherry picked from commit 281d6fa15abc3b5f60c9dfc7cab272fca4e50d44)
- URL: https://github.com/kamailio/kamailio/commit/89cc9d794ca867de1b60d2239e990d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:51:41+01:00
websocket: docs for timer_interval and rm_delay_interval params
(cherry picked from commit 3a20bb1ad27b8a85ec932975e14bcec12237437b)
(cherry picked from commit bc602ee8662a440d0fec47a5ec6b66021a13d4fa)
- URL: https://github.com/kamailio/kamailio/commit/6d28f85378eed7a7da05079be68139c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-01-28T12:52:34+01:00
cnxcc: fix compilation warnings
> warning: field precision should have type 'int', but argument has type 'size_t' (aka 'unsigned long') [-Wformat]
(cherry picked from commit 89e89e023d923d2dbec694509b9f958bbed6d3ad)
(cherry picked from commit 92d7bec4b5dddad2d08b6434ab6b561b230ee466)
- URL: https://github.com/kamailio/kamailio/commit/19f585b4a32673ee15a9fe50f2edc12…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:52:44+01:00
dialog: only write debug messages in case cseq or contact fields are empty
(cherry picked from commit ae4087ef615c1de5b67c8406eab8316300282d8b)
(cherry picked from commit 5067fe22cc16af943126ea88a9ddd35281ca8636)
- URL: https://github.com/kamailio/kamailio/commit/16e8c6856cfa0f6af426fc337798435…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:52:54+01:00
websocket: removed static from declaration of ws_rm_delay_interval
- it is used as external in another source file
- GH #1771
(cherry picked from commit d5e40d5f05795f3902e5ae51bf4c57345e945a9c)
(cherry picked from commit 42821df5cf64d71b9b837e2e5c55b2d91392a250)
- URL: https://github.com/kamailio/kamailio/commit/d2459f195398199b3968351d9edabae…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:53:08+01:00
cdp: init pointer to avoid warning on uninitialized use
(cherry picked from commit 7873a653a43070f891dc6cde5c188c81bf5de25d)
(cherry picked from commit 5bb811d8d7c09c7792206831326c8f650eb30f66)
- URL: https://github.com/kamailio/kamailio/commit/d498c3ca48ad2e0538d29e13eb283f4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:53:28+01:00
auth_db: print db table name when version check fails
(cherry picked from commit a8de371e90ddc8a6921b5bf7464961865804cc06)
(cherry picked from commit f62c3cb67c9c2be10393bdeec684eb3dc9325dd6)
- URL: https://github.com/kamailio/kamailio/commit/6d7a6e1ccebf57cd8be791d44d797c9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:53:43+01:00
ims_isc: free variable in case of errors
(cherry picked from commit e7d684ad22d17f3aca58dd66c555e43877d9320a)
(cherry picked from commit 83597d2fc2922921e66edeca184b3d59354407cf)
- URL: https://github.com/kamailio/kamailio/commit/aadd286fe15ddd121580f2770c3c29f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:54:41+01:00
dialog: docs - more info about using the flag and dlg_manage()
(cherry picked from commit e4dfe3587943d69d556b15df3492cf38c3b21a5f)
(cherry picked from commit 3dd154faeead29f54145843d14367c5b28a4fb7b)
- URL: https://github.com/kamailio/kamailio/commit/3720283674cc783bceb64987ec8f27a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T12:54:50+01:00
dialog: do not require dlg_flag parameter to be set
- using dlg_manage() should be enough for tracking dialogs
(cherry picked from commit 404f403786478a917637186446bb285e8e32cc59)
(cherry picked from commit 563f1d6af3123485ed25cc58bb3badd68e7793a4)
- URL: https://github.com/kamailio/kamailio/commit/f9e7ea0a35d4115f2437d285a8e27ac…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2019-01-28T12:55:04+01:00
tsilo: add check for empty aor
Fix: #1775
(cherry picked from commit 5a5d742eb459249995114eb6a3642f99c6770496)
(cherry picked from commit 23a5c07e924a2feb5f09b727f4ad0faf6c5af349)
[View Less]
<!-- 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 …
[View More]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 -->
- [ ] 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 -->
if there is a sos parameter on Contact header on saving state in P-CSCF ,P-CSCF dont subscribe to S-CSCF for reg-events.
3GPP TS 24.229 5.2.10.1
Upon receiving the 200 (OK) response to the REGISTER request that completes the emergency registration, as identified by the presence of the "sos" SIP URI parameter in the Contact header field of the 200 (OK) response, the P-CSCF shall not subscribe to the registration event package for any emergency public user identity specified in the REGISTER request.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1812
-- Commit Summary --
* ims_registrar_pcscf : added a condition for subscribiton about sos param
-- File Changes --
M src/modules/ims_registrar_pcscf/save.c (31)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1812.patchhttps://github.com/kamailio/kamailio/pull/1812.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/1812
[View Less]
Module: kamailio
Branch: master
Commit: a1148307a5155c8a6806ae94c0c982200d052dc5
URL: https://github.com/kamailio/kamailio/commit/a1148307a5155c8a6806ae94c0c9822…
Author: Yasin CANER <caner_yaso(a)hotmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2019-01-17T10:56:31+03:00
ims_registrar_pcscf : added a condition for subscribiton about sos param
if there is a sos parameter on Contact header on saving state in P-CSCF ,P-CSCF dont subscribe to S-CSCF for reg-events.
3GPP TS …
[View More]24.229 5.2.10.1
Upon receiving the 200 (OK) response to the REGISTER request that completes the emergency registration, as identified by the presence of the "sos" SIP URI parameter in the Contact header field of the 200 (OK) response, the P-CSCF shall not subscribe to the registration event package for any emergency public user identity specified in the REGISTER request.
---
Modified: src/modules/ims_registrar_pcscf/save.c
---
Diff: https://github.com/kamailio/kamailio/commit/a1148307a5155c8a6806ae94c0c9822…
Patch: https://github.com/kamailio/kamailio/commit/a1148307a5155c8a6806ae94c0c9822…
---
diff --git a/src/modules/ims_registrar_pcscf/save.c b/src/modules/ims_registrar_pcscf/save.c
index 39dfe4d589..0789a52bfb 100644
--- a/src/modules/ims_registrar_pcscf/save.c
+++ b/src/modules/ims_registrar_pcscf/save.c
@@ -387,7 +387,9 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags) {
str *service_routes=0;
int num_service_routes = 0;
pv_elem_t *presentity_uri_pv;
-
+ int contact_has_sos=-1;
+ contact_t* chi; //contact header information
+ struct hdr_field* h;
//get request from reply
req = get_request_from_reply(_m);
if (!req) {
@@ -395,11 +397,34 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags) {
goto error;
}
expires_hdr = cscf_get_expires_hdr(_m, 0);
- cb = cscf_parse_contacts(_m);
+
+ if((parse_headers(_m, HDR_CONTACT_F, 0) == -1) || !_m->contact) {
+ LM_ERR("cannot get the Contact header from the SIP message in saving action in PCSCF\n");
+ goto error;
+ }
+
+ if(!_m->contact->parsed && parse_contact(_m->contact) < 0) {
+ LM_ERR("Couldn t parse Contact Header \n");
+ goto error;
+ }
+
+ cb = ((contact_body_t *)_m->contact->parsed);
if (!cb || (!cb->contacts && !cb->star)) {
LM_DBG("No contact headers and not *\n");
goto error;
}
+
+ for (h = _m->contact; h; h = h->next) {
+ if (h->type == HDR_CONTACT_T && h->parsed) {
+ for (chi = ((contact_body_t*) h->parsed)->contacts; chi; chi = chi->next) {
+ contact_has_sos = cscf_get_sos_uri_param(chi->uri);
+ if(contact_has_sos!=-1){
+ break;
+ }
+ }
+ }
+ }
+
cscf_get_p_associated_uri(_m, &public_ids, &num_public_ids, 1);
service_routes = cscf_get_service_route(_m, &num_service_routes, 1);
@@ -409,7 +434,7 @@ int save(struct sip_msg* _m, udomain_t* _d, int _cflags) {
goto error;
}
- if(subscribe_to_reginfo == 1){
+ if(subscribe_to_reginfo == 1 && contact_has_sos < 1){
//use the first p_associated_uri - i.e. the default IMPU
LM_DBG("Subscribe to reg event for primary p_associated_uri");
[View Less]
Module: kamailio
Branch: master
Commit: 60399b423f288c7b28756e480413475793e7ae11
URL: https://github.com/kamailio/kamailio/commit/60399b423f288c7b28756e480413475…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-01-28T08:31:37+01:00
modules: readme files regenerated - exec ... [skip ci]
---
Modified: src/modules/exec/README
---
Diff: https://github.com/kamailio/kamailio/commit/60399b423f288c7b28756e480413475……
[View More]Patch: https://github.com/kamailio/kamailio/commit/60399b423f288c7b28756e480413475…
---
diff --git a/src/modules/exec/README b/src/modules/exec/README
index 2e9c2bcd2a..b63a8b27a1 100644
--- a/src/modules/exec/README
+++ b/src/modules/exec/README
@@ -35,6 +35,7 @@ Jan Janak
4.1. exec_dset(command)
4.2. exec_msg(command)
4.3. exec_avp(command [, avplist])
+ 4.4. exec_cmd(command)
5. Known Issues
@@ -45,6 +46,7 @@ Jan Janak
1.3. exec_dset usage
1.4. exec_msg usage
1.5. exec_avp usage
+ 1.6. exec_cmd usage
Chapter 1. Admin Guide
@@ -66,6 +68,7 @@ Chapter 1. Admin Guide
4.1. exec_dset(command)
4.2. exec_msg(command)
4.3. exec_avp(command [, avplist])
+ 4.4. exec_cmd(command)
5. Known Issues
@@ -144,6 +147,7 @@ modparam("exec", "time_to_kill", 20)
4.1. exec_dset(command)
4.2. exec_msg(command)
4.3. exec_avp(command [, avplist])
+ 4.4. exec_cmd(command)
4.1. exec_dset(command)
@@ -213,6 +217,27 @@ exec_avp("echo TEST");
exec_avp("echo TEST", "$avp(s:test)");
...
+4.4. exec_cmd(command)
+
+ Executes an external command. It is a lightweight version, which does
+ not pass the SIP message as parameter, does not set the environment
+ variables and it does not use the output of the command.
+
+ Meaning of the parameters is as follows:
+ * command - Command to be executed. It can include pseudo-variables.
+
+ WARNING: if the var you are passing out has a bash special character in
+ it, the var needs to be placed inside quotes, for example:
+ exec_msg("print-contact.sh '$ct'");
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.6. exec_cmd usage
+...
+exec_cmd("echo TEST > /tmp/test.txt");
+exec_cmd("echo TEST > /tmp/$rU.txt");
+...
+
5. Known Issues
There is currently no guarantee that scripts ever return and stop
[View Less]
Module: kamailio
Branch: master
Commit: 385fdc71abd0b4f8349f725273bccd483d859088
URL: https://github.com/kamailio/kamailio/commit/385fdc71abd0b4f8349f725273bccd4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-28T08:20:32+01:00
exec: docs for exec_cmd() function
---
Modified: src/modules/exec/doc/exec_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/385fdc71abd0b4f8349f725273bccd4……
[View More]Patch: https://github.com/kamailio/kamailio/commit/385fdc71abd0b4f8349f725273bccd4…
---
diff --git a/src/modules/exec/doc/exec_admin.xml b/src/modules/exec/doc/exec_admin.xml
index 51667fb60d..12249d5104 100644
--- a/src/modules/exec/doc/exec_admin.xml
+++ b/src/modules/exec/doc/exec_admin.xml
@@ -267,6 +267,41 @@ exec_msg("echo TEST > /tmp/$rU.txt");
exec_avp("echo TEST");
exec_avp("echo TEST", "$avp(s:test)");
...
+</programlisting>
+ </example>
+ </section>
+ <section id="exec.f.exec_cmd">
+ <title>
+ <function moreinfo="none">exec_cmd(command)</function>
+ </title>
+ <para>
+ Executes an external command. It is a lightweight version, which
+ does not pass the SIP message as parameter, does not set the
+ environment variables and it does not use the output of the command.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>command</emphasis> - Command to be executed. It
+ can include pseudo-variables.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ WARNING: if the var you are passing out has a bash special
+ character in it, the var needs to be placed inside quotes, for example:
+ exec_msg("print-contact.sh '$ct'");
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function moreinfo="none">exec_cmd</function> usage</title>
+ <programlisting format="linespecific">
+...
+exec_cmd("echo TEST > /tmp/test.txt");
+exec_cmd("echo TEST > /tmp/$rU.txt");
+...
</programlisting>
</example>
</section>
@@ -274,8 +309,8 @@ exec_avp("echo TEST", "$avp(s:test)");
<section id="exec.known_issues">
<title>Known Issues</title>
<para>
- There is currently no guarantee that scripts ever return and stop
- blocking the &sip; server. (There is kill.c but it is not used along with
+ There is currently no guarantee that scripts ever return and stop
+ blocking the &sip; server. (There is kill.c but it is not used along with
the current mechanisms based on popen. Besides that kill.c is ugly).
</para>
</section>
[View Less]
It would be great if provide a function for authenticating username like
***pv_www_authenticate(realm, passwd, flags [, method])***
Purpose: The purpose behind this is i want to modify username and then authenticate according to credentials saved in DB.
--
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/1817
There is no function for authenticating custom username like
pv_www_authenticate(realm, passwd, flags [, method])
Purpose: The purpose behind this is i want to modify username and then authenticate according to credentials saved in DB.
--
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/1818
<!-- 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 …
[View More]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 -->
allows the use definitions as pseudo-variables
```
#!trydef XIP "$HN(i)"
#!substdef "!MY_IP_ADDRESS!$def(XIP)!g"
#!substdef "!MY_HOSTNAME!$HN(f)!g"
#!trydef REGISTRAR_MIN_EXPIRES 300
loadmodule "registrar.so"
modparam("registrar", "min_expires", REGISTRAR_MIN_EXPIRES)
route[SOMETHING]
{
xlog("L_INFO", "configured value of registrar min-expires is $def(REGISTRAR_MIN_EXPIRES)\n");
xlog("L_INFO", "configured value of host is MY_HOSTNAME\n");
xlog("L_INFO", "configured value of ip is MY_IP_ADDRESS\n");
}
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1814
-- Commit Summary --
* core: allow pvar resolve in subsdef
* core: allow pp_define_get to be used by modules
* pv: add $def pseudo variable
-- File Changes --
M src/core/cfg.lex (4)
M src/core/ppcfg.c (4)
M src/modules/pv/pv.c (2)
M src/modules/pv/pv_core.c (25)
M src/modules/pv/pv_core.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1814.patchhttps://github.com/kamailio/kamailio/pull/1814.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/1814
[View Less]
<!-- 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 …
[View More]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 (on 4.4.x)
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Add automatic cleanup of pipes that have not been used for a while. Save memory on infrequently used pipes.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1819
-- Commit Summary --
* pipelimit: Fix memleak on shutdown
* pipelimit: Cleanup unused pipes
-- File Changes --
M src/modules/pipelimit/doc/pipelimit_admin.xml (30)
M src/modules/pipelimit/pipelimit.c (2)
M src/modules/pipelimit/pl_ht.c (36)
M src/modules/pipelimit/pl_ht.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1819.patchhttps://github.com/kamailio/kamailio/pull/1819.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/1819
[View Less]
Module: kamailio
Branch: master
Commit: 3e731300e54c1dd65a36b044ac05c9a31fc246be
URL: https://github.com/kamailio/kamailio/commit/3e731300e54c1dd65a36b044ac05c9a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-01-22T09:01:54+01:00
modules: readme files regenerated - dialog ... [skip ci]
---
Modified: src/modules/dialog/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]3e731300e54c1dd65a36b044ac05c9a…
Patch: https://github.com/kamailio/kamailio/commit/3e731300e54c1dd65a36b044ac05c9a…
---
diff --git a/src/modules/dialog/README b/src/modules/dialog/README
index 4e3f43e99b..f4bfe360ea 100644
--- a/src/modules/dialog/README
+++ b/src/modules/dialog/README
@@ -662,8 +662,8 @@ modparam("dialog", "default_timeout", 21600)
6.7. early_timeout (integer)
- The timeout (in seconds) after which the dialogs in early state (no
- final response received) are destroyed.
+ The timeout (in seconds) after which the dialogs in unconfirmed or
+ early state (no final response received) are destroyed.
Default value is “300 (5 minutes)”.
[View Less]
Module: kamailio
Branch: master
Commit: bdc4d3c7dea73e10353d37655f31d6e36c87126b
URL: https://github.com/kamailio/kamailio/commit/bdc4d3c7dea73e10353d37655f31d6e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-22T08:46:39+01:00
dialog: docs - small addition to early_timeout param
---
Modified: src/modules/dialog/doc/dialog_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]bdc4d3c7dea73e10353d37655f31d6e…
Patch: https://github.com/kamailio/kamailio/commit/bdc4d3c7dea73e10353d37655f31d6e…
---
diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml
index 9adca735db..c74140e04e 100644
--- a/src/modules/dialog/doc/dialog_admin.xml
+++ b/src/modules/dialog/doc/dialog_admin.xml
@@ -323,8 +323,8 @@ modparam("dialog", "default_timeout", 21600)
<section id="dialog.p.early_timeout">
<title><varname>early_timeout</varname> (integer)</title>
<para>
- The timeout (in seconds) after which the dialogs in early state (no
- final response received) are destroyed.
+ The timeout (in seconds) after which the dialogs in unconfirmed or early
+ state (no final response received) are destroyed.
</para>
<para>
<emphasis>
[View Less]
Module: kamailio
Branch: master
Commit: c06aeea1b1c31720437037c211875bea8de0a669
URL: https://github.com/kamailio/kamailio/commit/c06aeea1b1c31720437037c211875be…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-01-21T23:27:43+01:00
db_mysql: remove long commented out DBG statement that don't work for all data
---
Modified: src/modules/db_mysql/km_dbase.c
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]c06aeea1b1c31720437037c211875be…
Patch: https://github.com/kamailio/kamailio/commit/c06aeea1b1c31720437037c211875be…
---
diff --git a/src/modules/db_mysql/km_dbase.c b/src/modules/db_mysql/km_dbase.c
index 84cb5030d8..3014d374f6 100644
--- a/src/modules/db_mysql/km_dbase.c
+++ b/src/modules/db_mysql/km_dbase.c
@@ -96,10 +96,6 @@ static int db_mysql_submit_query(const db1_con_t* _h, const str* _s)
CON_TIMESTAMP(_h) = t;
}
- /* screws up the terminal when the query contains a BLOB :-( (by bogdan)
- * LM_DBG("submit_query(): %.*s\n", _s->len, _s->s);
- */
-
/* When a server connection is lost and a query is attempted, most of
* the time the query will return a CR_SERVER_LOST, then at the second
* attempt to execute it, the mysql lib will reconnect and succeed.
[View Less]
Module: kamailio
Branch: master
Commit: ab0de3872c62084cf5d53b0f263fd7edd70e2781
URL: https://github.com/kamailio/kamailio/commit/ab0de3872c62084cf5d53b0f263fd7e…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2019-01-21T22:58:35+01:00
db_mysql: small unification for log macro usage for errors and warning
---
Modified: src/modules/db_mysql/db_mysql.c
Modified: src/modules/db_mysql/my_con.c
---
Diff: https://github.com/…
[View More]kamailio/kamailio/commit/ab0de3872c62084cf5d53b0f263fd7e…
Patch: https://github.com/kamailio/kamailio/commit/ab0de3872c62084cf5d53b0f263fd7e…
---
diff --git a/src/modules/db_mysql/db_mysql.c b/src/modules/db_mysql/db_mysql.c
index 4a79a1878d..da130f1818 100644
--- a/src/modules/db_mysql/db_mysql.c
+++ b/src/modules/db_mysql/db_mysql.c
@@ -139,14 +139,14 @@ static int mysql_mod_init(void)
my_recv_to= DEFAULT_MY_RECV_TO;
}
} else if (my_recv_to || my_send_to) {
- LOG(L_WARN, "WARNING: mysql send or received timeout set, but "
+ LM_WARN("WARNING: mysql send or received timeout set, but "
" not supported by the installed mysql client library"
" (needed at least 4.1.22 or 5.0.25, but installed %ld)\n",
my_client_ver);
}
#else
if (my_recv_to || my_send_to) {
- LOG(L_WARN, "WARNING: mysql send or received timeout set, but "
+ LM_WARN("WARNING: mysql send or received timeout set, but "
" not supported by the mysql client library used to compile"
" the mysql module (needed at least 4.1.1 but "
" compiled against %ld)\n", MYSQL_VERSION_ID);
diff --git a/src/modules/db_mysql/my_con.c b/src/modules/db_mysql/my_con.c
index 0f0238aae8..d311f5b342 100644
--- a/src/modules/db_mysql/my_con.c
+++ b/src/modules/db_mysql/my_con.c
@@ -90,7 +90,7 @@ int my_con_connect(db_con_t* con)
if (!mysql_real_connect(mcon->con, muri->host, muri->username,
muri->password, muri->database, muri->port, 0, 0)) {
- LOG(L_ERR, "mysql: %s\n", mysql_error(mcon->con));
+ ERR("mysql: %s\n", mysql_error(mcon->con));
return -1;
}
[View Less]
Am Sonntag, 20. Januar 2019, 17:57:33 CET schrieb Mojtaba:
> Hello Henning,
>
> Thank you for replying.Sure. It would be useful. Thanks
> Using htable module is good idea, But if i want not to use htable module
> and save part of SIP Messagre in memory , How do i impelement auto-expire
> after afew time?
> With regards.
Hello Mojtaba,
please keep the list in CC.
The htable module support this memory storage and also auto-expiration out of
the box. :-)
You can find (a …
[View More]bit complicated) example in the usrloc module. A starting
point for the expiration logic can be the delete_ucontact(..) function there.
You need to store the SIP message data in a proper data structure like a list
or a hash table.
Best regards,
Henning
> On Sun, 20 Jan 2019, 18:47 Henning Westerholt, <hw(a)kamailio.org> wrote:
> > Am Samstag, 19. Januar 2019, 10:43:09 CET schrieb Mojtaba:
> > > Sorry for my mistake in subject!
> > > "Give me suggestions for module implementation", anyway,
> > > Give me suggestions for duplication detection algorithm?
> >
> > Hello Mojtaba,
> >
> > just to give you an idea: you can access and store parts of the message in
> > memory with e.g. the htable module. Then you can compare it during the
> > route
> > block with the new incoming message and reject it.
> >
> > I found this old discussion thread about a similar topic:
> > https://lists.kamailio.org/pipermail/users/2009-February/021906.html
> >
> > You can of course also implement this in a module, but in this case it
> > would
> > not be necessary.
> >
> > Maybe this is helpful for your as well.
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Kamailio security assessment - https://skalatan.de/de/assessment
[View Less]
Hi all,
I was trying to add entries to a remote database on OpenWrt and kamctl (address add ...) seemed to just hang there. A bit of digging showed that it prompted for a password, but I couldn't see it because it redirected the prompt to /dev/stderr, which doesn't exist on every system. This patch addresses thist.
Use portable "#!/bin/sh" shebang. This may still be a symlink to bash
(or some other shell).
Also replace the redirection to "/dev/stderr" with a POSIX redirection
to stderr. "/…
[View More]dev/stderr" is not available on all systems and is also not
recognized by all shells (example: ash). On systems without a working
"/dev/stderr" the user will not see the prompts etc.
Signed-off-by: Sebastian Kemper <sebastian_ml(a)gmx.net>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1815
-- Commit Summary --
* kamctl: keep it POSIX
-- File Changes --
M utils/kamctl/kamctl (2)
M utils/kamctl/kamctl.base (6)
M utils/kamctl/kamctl.sqlbase (4)
M utils/kamctl/kamdbctl (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1815.patchhttps://github.com/kamailio/kamailio/pull/1815.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/1815
[View Less]
Module: kamailio
Branch: master
Commit: 8fd514f9bb9e819fa6e5880dc229955cafd72494
URL: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-20T18:08:56+01:00
dialog: clean very old dialogs for both unconfirmed and early state
- it was done only for unconfirmed state
---
Modified: src/modules/dialog/dlg_hash.c
---
Diff: https://…
[View More]github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
Patch: https://github.com/kamailio/kamailio/commit/8fd514f9bb9e819fa6e5880dc229955…
---
diff --git a/src/modules/dialog/dlg_hash.c b/src/modules/dialog/dlg_hash.c
index 30c1cf76d1..5c11bada52 100644
--- a/src/modules/dialog/dlg_hash.c
+++ b/src/modules/dialog/dlg_hash.c
@@ -235,9 +235,9 @@ int dlg_clean_run(ticks_t ti)
while (dlg) {
tdlg = dlg;
dlg = dlg->next;
- if(tdlg->state==DLG_STATE_UNCONFIRMED && tdlg->init_ts>0
+ if(tdlg->state<=DLG_STATE_EARLY && tdlg->init_ts>0
&& tdlg->init_ts<tm-dlg_early_timeout) {
- /* dialog in early state older than 5min */
+ /* dialog in unconfirmed or early state older than expected */
LM_NOTICE("dialog in early state is too old (%p ref %d)\n",
tdlg, tdlg->ref);
unlink_unsafe_dlg(&d_table->entries[i], tdlg);
[View Less]
Module: kamailio
Branch: master
Commit: 2137aef791bfbc835ac5f630c91c49fc509e6a6c
URL: https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-20T17:57:07+01:00
presence_reginfo: clang format wrapper to exports struct
- removed trailing spaces
---
Modified: src/modules/presence_reginfo/add_events.c
Modified: src/modules/…
[View More]presence_reginfo/add_events.h
Modified: src/modules/presence_reginfo/presence_reginfo.c
Modified: src/modules/presence_reginfo/presence_reginfo.h
---
Diff: https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
Patch: https://github.com/kamailio/kamailio/commit/2137aef791bfbc835ac5f630c91c49f…
---
diff --git a/src/modules/presence_reginfo/add_events.c b/src/modules/presence_reginfo/add_events.c
index 5616faa83a..3cb9f7a145 100644
--- a/src/modules/presence_reginfo/add_events.c
+++ b/src/modules/presence_reginfo/add_events.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -31,7 +31,7 @@
int reginfo_add_events(void)
{
pres_ev_t event;
-
+
/* constructing message-summary event */
memset(&event, 0, sizeof(pres_ev_t));
event.name.s = "reg";
@@ -47,6 +47,6 @@ int reginfo_add_events(void)
if (pres_add_event(&event) < 0) {
LM_ERR("failed to add event \"reginfo\"\n");
return -1;
- }
+ }
return 0;
}
diff --git a/src/modules/presence_reginfo/add_events.h b/src/modules/presence_reginfo/add_events.h
index 49d9322740..194dca6f0c 100644
--- a/src/modules/presence_reginfo/add_events.h
+++ b/src/modules/presence_reginfo/add_events.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
diff --git a/src/modules/presence_reginfo/presence_reginfo.c b/src/modules/presence_reginfo/presence_reginfo.c
index bf8588dd37..eadbfdad24 100644
--- a/src/modules/presence_reginfo/presence_reginfo.c
+++ b/src/modules/presence_reginfo/presence_reginfo.c
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -47,6 +47,7 @@ static int mod_init(void);
add_event_t pres_add_event;
/* module exports */
+/* clang-format off */
struct module_exports exports= {
"presence_reginfo", /* module name */
DEFAULT_DLFLAGS, /* dlopen flags */
@@ -59,7 +60,8 @@ struct module_exports exports= {
0, /* per-child init function */
0 /* module destroy function */
};
-
+/* clang-format on */
+
/*
* init module function
*/
@@ -85,8 +87,8 @@ static int mod_init(void)
}
if(reginfo_add_events() < 0) {
LM_ERR("failed to add reginfo-info events\n");
- return -1;
- }
-
+ return -1;
+ }
+
return 0;
}
diff --git a/src/modules/presence_reginfo/presence_reginfo.h b/src/modules/presence_reginfo/presence_reginfo.h
index a721737841..6d5371535b 100644
--- a/src/modules/presence_reginfo/presence_reginfo.h
+++ b/src/modules/presence_reginfo/presence_reginfo.h
@@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
[View Less]
Hello
As you will know i am developing new module for Kamailio and i'll commit on
main project as soon as. Let me give more news about this module later.
But i wanna to share with you one thing, if you were in my shoes, what do
you to found out duplicated signalling? I don't mean retransmision messages.
Let's go to question: In kamailio, you could get a copy of signalling
message that is generated by siptrace module in other one kamailio. We know
it would be send some signalling messages twice …
[View More]or more in duplicate( I
mean 180Ringing, 200OK or etc), How we could found out them? Actually i
must do it in module not do in cfg configuration.
Would you please give me a suggest? I really need a sugest with no extra
overhead.
With regards.Mojtaba
[View Less]
…about stateless forwarded messages
#### Pre-Submission Checklist
- [x] 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 …
[View More]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
- [x] Related to issue #1811
#### Description
Added example how to send stateless forwarded messages
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1813
-- Commit Summary --
* src/modules/siptrace: Updated usage instruction about stateless forwarded messages
-- File Changes --
M src/modules/siptrace/doc/siptrace_admin.xml (14)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1813.patchhttps://github.com/kamailio/kamailio/pull/1813.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/1813
[View Less]
ERROR: tls [tls_init.c:601]: tls_pre_init(): Unable to set the memory allocation functions
This error comes with 5.0x - 5.2x and maybe in earlyer versions too.
Tried OpenSSL 1.0, and 1.1 with same result...
--
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/1797
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.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.kamailio.org/cgi-bin/mailman/listinfo/sr-dev…
[View More]Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
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
We have segfault in Kamailio v5.0.7 rev. 7ab0b1 installed on Debain 7.x 32bit KVM when processing sip reply 408 due to RING Timeout.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
No troubleshooting was done, since it happened on a production server. We simply restarted the server.
#### Reproduction
The problem is random and has happened a couple of times within a month.
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
Here is back trace from core dump generated by kamailio.
<pre>
Core was generated by `/usr/local/adx-webrtc/sbin/kamailio -f /usr/local/adx-webrtc/etc/kamailio/kamai'.
Program terminated with signal 11, Segmentation fault.
#0 0xb4f9bcb9 in run_failure_handlers (t=0x92d6111c, rpl=0xffffffff, code=408, extra_flags=96) at t_reply.c:1013
1013 t_reply.c: No such file or directory.
(gdb) bt
#0 0xb4f9bcb9 in run_failure_handlers (t=0x92d6111c, rpl=0xffffffff, code=408, extra_flags=96) at t_reply.c:1013
#1 0xb4f9ea32 in t_should_relay_response (Trans=0x92d6111c, new_code=408, branch=0, should_store=0xbf90fba4, should_relay=0xbf90fba8, cancel_data=0xbf90fc28, reply=0xffffffff) at t_reply.c:1382
#2 0xb4fa1431 in relay_reply (t=0x92d6111c, p_msg=0xffffffff, branch=0, msg_status=408, cancel_data=0xbf90fc28, do_put_on_wait=0) at t_reply.c:1785
#3 0xb4f4bbca in fake_reply (t=0x92d6111c, branch=0, code=408) at timer.c:340
#4 0xb4f4bfe7 in final_response_handler (r_buf=0x92d61288, t=0x92d6111c) at timer.c:506
#5 0xb4f4c07e in retr_buf_handler (ticks=368965158, tl=0x92d6129c, p=0xfffffffe) at timer.c:562
#6 0x08250eb4 in slow_timer_main () at core/timer.c:1131
#7 0x08069a4e in main_loop () at main.c:1679
#8 0x08070868 in main (argc=13, argv=0xbf9103a4) at main.c:2642
</pre>
Here is full back trace.
<!--
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.
-->
```
(gdb) bt full
#0 0xb4f9bcb9 in run_failure_handlers (t=0x92d6111c, rpl=0xffffffff, code=408, extra_flags=96) at t_reply.c:1013
faked_req = 0x984311f4
faked_req_len = 4512
shmem_msg = 0x94ed18b8
on_failure = 2
keng = 0x0
__FUNCTION__ = "run_failure_handlers"
#1 0xb4f9ea32 in t_should_relay_response (Trans=0x92d6111c, new_code=408, branch=0, should_store=0xbf90fba4, should_relay=0xbf90fba8, cancel_data=0xbf90fc28, reply=0xffffffff) at t_reply.c:1382
branch_cnt = 1
picked_code = 408
new_branch = -1755505652
inv_through = 0
extra_flags = 96
i = 0
replies_dropped = 0
__FUNCTION__ = "t_should_relay_response"
#2 0xb4fa1431 in relay_reply (t=0x92d6111c, p_msg=0xffffffff, branch=0, msg_status=408, cancel_data=0xbf90fc28, do_put_on_wait=0) at t_reply.c:1785
relay = -65536
save_clone = 0
buf = 0x0
res_len = 0
relayed_code = 0
relayed_msg = 0x0
reply_bak = 0xb5002368
bm = {to_tag_val = {s = 0xb5a847f7 "ation", len = 10}}
totag_retr = 0
reply_status = RPS_ERROR
uas_rb = 0x0
to_tag = 0x0
reason = {s = 0x0, len = 1946659428}
onsend_params = {req = 0xb5002368, rpl = 0x0, param = 0xbf910234, code = -1081017352, flags = 56659, branch = 46322, t_rbuf = 0xb4fd5a10, dst = 0x2, send_buf = {
s = 0xbf90fce8 "\030\375\220\277\034\021֒\210\022֒\240", len = 1946588245}}
ip = {af = 0, len = 3213949832, u = {addrl = {4294967295, 0, 3213951540, 3213949832}, addr32 = {4294967295, 0, 3213951540, 3213949832}, addr16 = {65535, 65535, 0, 0, 564, 49041, 64392,
49040}, addr = "\377\377\377\377\000\000\000\000\064\002\221\277\210", <incomplete sequence \373\220\277>}}
__FUNCTION__ = "relay_reply"
#3 0xb4f4bbca in fake_reply (t=0x92d6111c, branch=0, code=408) at timer.c:340
cancel_data = {cancel_bitmap = 0, reason = {cause = 0, u = {text = {s = 0x0, len = 5}, e2e_cancel = 0x0, packed_hdrs = {s = 0x0, len = 5}}}}
do_cancel_branch = 1
reply_status = 29068
#4 0xb4f4bfe7 in final_response_handler (r_buf=0x92d61288, t=0x92d6111c) at timer.c:506
silent = 0
branch_ret = -1258282136
prev_branch = 0
now = 0
#5 0xb4f4c07e in retr_buf_handler (ticks=368965158, tl=0x92d6129c, p=0xfffffffe) at timer.c:562
rbuf = 0x92d61288
fr_remainder = 0
retr_remainder = 12
retr_interval = 1674326491
new_retr_interval_ms = 160
crt_retr_interval_ms = 3213950232
t = 0x92d6111c
__FUNCTION__ = "retr_buf_handler"
#6 0x08250eb4 in slow_timer_main () at core/timer.c:1131
n = 12
ret = 0
tl = 0x92d6129c
i = 516
__FUNCTION__ = "slow_timer_main"
#7 0x08069a4e in main_loop () at main.c:1679
i = 4
pid = 0
si = 0x0
si_desc = "udp receiver child=3 sock=xx.xx.xx.xx:5060\000\000\000\000\000\004\000\000\000\030\000\221\277\333\061\314c\001\000\000\000\333\061\314c\230\377\220\277\264\n(\bd\024<t\004\000\000\000\331\332\066\b\260\354\066\bq\000\000\000t\331\066\b\v\020\000\000Y\222\350\264D\221\257\265;\031B\264\\\"C\264\214#\000\000\000\000\000"
nrprocs = 4
woneinit = 1
__FUNCTION__ = "main_loop"
#8 0x08070868 in main (argc=13, argv=0xbf9103a4) at main.c:2642
cfg_stream = 0x8a4a008
c = -1
r = 0
tmp = 0xbf910903 ""
tmp_len = -1218121696
port = 2209
proto = 1
options = 0x8344f9c ":f:cm:M:dVIhEeb:l:L:n:vKrRDTN:W:w:t:u:g:P:G:SQ:O:a:A:x:X:Y:"
ret = -1
seed = 3093231387
rfd = 4
debug_save = 0
debug_flag = 0
dont_fork_cnt = 0
n_lst = 0xbf9103a4
p = 0x805d60c "[\201\303\354\253<"
st = {st_dev = 14, __pad1 = 0, st_ino = 10259, st_mode = 16832, st_nlink = 2, st_uid = 0, st_gid = 0, st_rdev = 0, __pad2 = 0, st_size = 60, st_blksize = 4096, st_blocks = 0, st_atim = {
tv_sec = 1542580403, tv_nsec = 128163439}, st_mtim = {tv_sec = 1542580752, tv_nsec = 236241520}, st_ctim = {tv_sec = 1542580752, tv_nsec = 236241520}, __unused4 = 0, __unused5 = 0}
__FUNCTION__ = "main"
```
#### Log Messages
No logs available since it happend on a production server.
<!--
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).
-->
```
Jan 10 16:00:53 webrtc-as kernel: [25983771.956320] kamailio[29068]: segfault at 36c ip b4f9bcb9 sp bf90f7a0 error 6 in tm.so[b4eeb000+117000]
```
#### SIP Traffic
No SIP traffic available.
<!--
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).
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.0.7 (i386/linux) 7ab0b1
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, 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, select.
id: 7ab0b1
compiled on 22:43:08 Aug 27 2018 with gcc 4.7.2
```
* **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`)
-->
```
Linux webrtc-as1 3.16.0-0.bpo.4-686-pae #1 SMP Debian 3.16.36-1+deb8u2~bpo70+1 (2016-10-19) i686 GNU/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/1806
[View Less]
When trace_mode = 1, the source socket of an outgoing message can be retrieved from the payload passed in the callback of SREV_NET_DATA_SEND. Otherwise, if the socket has been manually forced (setting $fs, calling force_send_socket..), the information will be overwritten and the actual source socket of the outgoing message lost.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1810
-- Commit Summary --
* siptrace: siptrace: don't …
[View More]calculate message source socket if already set
-- File Changes --
M src/modules/siptrace/siptrace.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1810.patchhttps://github.com/kamailio/kamailio/pull/1810.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/1810
[View Less]
Module: kamailio
Branch: master
Commit: a9331b659eb767e8ae19f1ae2adb0ecbfbc71c13
URL: https://github.com/kamailio/kamailio/commit/a9331b659eb767e8ae19f1ae2adb0ec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-17T08:45:06+01:00
presence_xml: include guard for pres_check.h, declare extern variables in .h
---
Modified: src/modules/presence_xml/add_events.h
Modified: src/modules/presence_xml/api.h
…
[View More]Modified: src/modules/presence_xml/pres_check.h
Modified: src/modules/presence_xml/presence_xml.c
---
Diff: https://github.com/kamailio/kamailio/commit/a9331b659eb767e8ae19f1ae2adb0ec…
Patch: https://github.com/kamailio/kamailio/commit/a9331b659eb767e8ae19f1ae2adb0ec…
---
diff --git a/src/modules/presence_xml/add_events.h b/src/modules/presence_xml/add_events.h
index a4acc8dd75..c15c75c368 100644
--- a/src/modules/presence_xml/add_events.h
+++ b/src/modules/presence_xml/add_events.h
@@ -13,15 +13,15 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
/*!
* \file
- * \brief Kamailio Presence_XML :: Several event packages, presence, presence.winfo, dialog;sla
+ * \brief Kamailio Presence_XML :: Several event packages, presence, presence.winfo, dialog;sla
* \ingroup presence_xml
*/
diff --git a/src/modules/presence_xml/api.h b/src/modules/presence_xml/api.h
index 73ed2c12d0..36a907f1cd 100644
--- a/src/modules/presence_xml/api.h
+++ b/src/modules/presence_xml/api.h
@@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
+
#ifndef PXML_API_H
#define PXML_API_H
#include "../../core/str.h"
diff --git a/src/modules/presence_xml/pres_check.h b/src/modules/presence_xml/pres_check.h
index 70d1e88128..40b9409076 100644
--- a/src/modules/presence_xml/pres_check.h
+++ b/src/modules/presence_xml/pres_check.h
@@ -13,12 +13,16 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef _PRES_CHECK_H_
+#define _PRES_CHECK_H_
+
+
#include <stdio.h>
#include "../../core/parser/msg_parser.h"
#include "../presence/bind_presence.h"
@@ -26,6 +30,7 @@
int presxml_check_basic(struct sip_msg* msg, str presentity_uri, str status);
int presxml_check_activities(struct sip_msg* msg, str presentity_uri, str activity);
-contains_event_t pres_contains_event;
-pres_get_presentity_t pres_get_presentity;
-pres_free_presentity_t pres_free_presentity;
+extern contains_event_t pres_contains_event;
+extern pres_get_presentity_t pres_get_presentity;
+extern pres_free_presentity_t pres_free_presentity;
+#endif
diff --git a/src/modules/presence_xml/presence_xml.c b/src/modules/presence_xml/presence_xml.c
index 228896c18a..3918903e96 100644
--- a/src/modules/presence_xml/presence_xml.c
+++ b/src/modules/presence_xml/presence_xml.c
@@ -78,6 +78,9 @@ add_event_t pres_add_event;
update_watchers_t pres_update_watchers;
pres_get_sphere_t pres_get_sphere;
+contains_event_t pres_contains_event;
+pres_get_presentity_t pres_get_presentity;
+pres_free_presentity_t pres_free_presentity;
/* Module parameter variables */
str xcap_table= str_init("xcap");
[View Less]
Hello,
being discussed at events offline or during irc meetings couple of
times, I want to open the discussion about updating the default
configuration file to use rtpengine. So far I let rtpproxy because was
packaged in many Linux distros, however, given the benefits of rtpengine
in terms of performance as well as webrtc support, doubled by the fact
that nowadays in the community it seems to be the primary choice of rtp
relay, we should decide what to do. I see two options:
1) add a define …
[View More]to allow selection between rtpproxy and rtpengine
2) replace rtpproxy completely with rtpengine
I would prefer 2) for simplicity of the configuration file, but the main
question for the users community is how easy they find the deploying of
rtpengine. Using Debian/Ubuntu should be trivial, there are packages for
it, but I do not know about CentOS, Fedora, openSUSE or other Linux/BSD
OSes people here are using it.
Reply to sr-users if you have an opinion on this matter (I cc-ed sr-dev
mainly to make aware the devs, but it is a matter of using kamailio). Of
course, other suggestions are welcome as well.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
[View Less]
Hello,
Kamailio SIP Server v5.2.1 stable release is out.
This is a maintenance release of the latest stable branch, 5.2, that
includes fixes since the release of v5.2.0. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.2.x. Deployments running previous v5.2.x
versions are strongly recommended to be upgraded to v5.2.1.
For more details about version 5.2.1 (including links and guidelines to
download the tarball or …
[View More]from GIT repository), visit:
* https://www.kamailio.org/w/2019/01/kamailio-v5-2-1-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
[View Less]
Hello,
I am considering to release Kamailio v5.2.1 sometime next week, likely
on Tuesday (Jan 15) or Wednesday (Jan 16). Should any of you be aware of
issues not reported to the bug tracker, open a bug report as soon as
possible to give it a chance for analysis and an eventual fix:
- https://github.com/kamailio/kamailio/issues
Days after it, I am planning to make new releases from branch 5.1 and
5.0 (it should be the last one from there to mark the end of official
packaging).
Cheers,
…
[View More]Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com
[View Less]
### Description
The recently-added **acc_json** module does not support the _multi_leg_info_ parameter from the main **acc** module.
### Expected behavior
**acc_json** module could add the extra leg info attributes in the JSON data, as the **acc_radius** module already does. Behavior could be the same for the JSON module.
--
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/1745
<!-- 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 …
[View More]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 -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
I can’t get big responses via jsonrpcs with default tcp params. According to log response size ~3200k, kamailio send ~2500k of data and can’t add 700k to queue after. This patch should fix, if my understanding of “queued” value is right.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1376
-- Commit Summary --
* tcp: correct queued length checking
-- File Changes --
M src/core/tcp_main.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1376.patchhttps://github.com/kamailio/kamailio/pull/1376.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/1376
[View Less]
Module: kamailio
Branch: master
Commit: 38a696fff66f0a453e54c92c93e8c459a1b4e77d
URL: https://github.com/kamailio/kamailio/commit/38a696fff66f0a453e54c92c93e8c45…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-15T13:02:08+01:00
doc/tutorials/tcp_tunning: note about network buffers size
- they may need tunning when dealing with large data
---
Modified: doc/tutorials/tcp_tunning.txt
---
Diff: https:…
[View More]//github.com/kamailio/kamailio/commit/38a696fff66f0a453e54c92c93e8c45…
Patch: https://github.com/kamailio/kamailio/commit/38a696fff66f0a453e54c92c93e8c45…
---
diff --git a/doc/tutorials/tcp_tunning.txt b/doc/tutorials/tcp_tunning.txt
index 39097d57b7..aca6a12449 100644
--- a/doc/tutorials/tcp_tunning.txt
+++ b/doc/tutorials/tcp_tunning.txt
@@ -19,22 +19,22 @@ For now it deals only with Linux specific optimizations.
net.core.somaxconn - limit of the listen() backlog, default 128
net.ipv4.tcp_max_syn_backlog - default 1024 or 128
-net.ipv4.tcp_timestamps - default on., should be on (along with
+net.ipv4.tcp_timestamps - default on., should be on (along with
tcp_tw_recycle and timestamp supporting
peers allows for fast connections rates)
-1.2 connection in close_wait
+1.2 Connection in close_wait
- Connection should stay as little as possible
- in close_wait to quickly free the fd/resources for new connections attempts
- WARNING: this could break normal TCP use, use it only if you know what you are
+ Connection should stay as little as possible
+ in close_wait to quickly free the fd/resources for new connections attempts
+ WARNING: this could break normal TCP use, use it only if you know what you are
doing
-
+
net.ipv4.tcp_max_tw_buckets - maximum number of timewait sockets
(the default seems to be ok)
net.ipv4.tcp_tw_recycle - enables fast time wait sockets recycling (default
off), should be enabled if you have lots of short
- lived connections
+ lived connections
WARNING: see the above warning
net.ipv4.tcp_tw_reuse - allows reusing of time-wait sockets (default off)
WARNING: see above
@@ -49,10 +49,26 @@ net.ipv4.ip_local_port_range - should be increased (e.g. 4096-65534)
1.4 Open file descriptors
fs.file-max - maximum number of fds that will be allocated
- (you probably need to increase it, default
+ (you probably need to increase it, default
depends on installed memory)
-1.5 other sysctl that might affect tcp connection rate or the maximum number
+1.5 Buffers size
+
+ When dealing with large data, check the values for network sockets buffers
+ to be sufficient, among them:
+
+net.core.rmem_max
+net.core.wmem_max
+net.core.rmem_default
+net.core.wmem_default
+net.ipv4.tcp_mem
+net.ipv4.tcp_rmem
+net.ipv4.tcp_wmem
+
+ Note: sysctl -w net.ipv4.route.flush=1 - enusre that immediatly subsequent
+ connections use the values
+
+1.6 Other sysctl that might affect tcp connection rate or the maximum number
of open connections
fs.epoll.max_user_instances - maximum number of devices - per user (2.6.27.8+)
[View Less]
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.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.kamailio.org/cgi-bin/mailman/listinfo/sr-dev…
[View More]Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
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).
-->
I am getting following error when ts_store() is called
Dec 21 12:50:57 ejabberd /usr/local/kamailio-5.1/sbin/kamailio[25676]: {1 2 INVITE 2d24732c962aa49859622eb9d214a115(a)192.168.2.7} DEBUG: tsilo [ts_store.c:80]: ts_store(): storing transaction 5967:208972607 for r-uri:
Dec 21 12:50:57 ejabberd /usr/local/kamailio-5.1/sbin/kamailio[25696]: DEBUG: <core> [core/tcp_main.c:3279]: handle_tcp_child(): dead tcp child 2 (pid 25676, no 19) (shutting down?)
Dec 21 12:50:57 ejabberd /usr/local/kamailio-5.1/sbin/kamailio[25696]: DEBUG: <core> [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del (0xa6cf40, 37, -1, 0x0) fd_no=37 called
Dec 21 12:50:57 ejabberd /usr/local/kamailio-5.1/sbin/kamailio[25696]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 34
Dec 21 12:50:57 ejabberd /usr/local/kamailio-5.1/sbin/kamailio[25696]: DEBUG: <core> [core/tcp_main.c:3512]: handle_ser_child(): dead child 19, pid 25676 (shutting down?)
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
```
if (lookup("location"))
{
xlog("L_INFO","PUSHASYNC: for new transaction [$T(id_index):$T(id_label)] $fU => $rU \n");
if(t_newtran()) {
xlog("L_INFO","PUSHASYNC: storing transaction [$T(id_index):$T(id_label)] fU=[$fU] => rU=[$rU] ru=[$ru] \n");
ts_store();
xlog("L_INFO","PUSHASYNC: stored transaction [$T(id_index):$T(id_label)] [$fU] => [$rU]\n");
}
$sht(vtp=>stored::$rU) = 1;
return;
}
```
### 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/1775
[View Less]
Module: kamailio
Branch: 5.2
Commit: 82d9703e619f765efcda8f37e45bfcfe4b22607e
URL: https://github.com/kamailio/kamailio/commit/82d9703e619f765efcda8f37e45bfcf…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-01-14T12:46:35+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/dialog/README
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/…
[View More]kamailio/commit/82d9703e619f765efcda8f37e45bfcf…
Patch: https://github.com/kamailio/kamailio/commit/82d9703e619f765efcda8f37e45bfcf…
---
diff --git a/src/modules/dialog/README b/src/modules/dialog/README
index b1b63b8e30..05a1b531f8 100644
--- a/src/modules/dialog/README
+++ b/src/modules/dialog/README
@@ -426,9 +426,10 @@ Chapter 1. Admin Guide
2. How it works
- To create the dialog associated with an initial request, the flag
- “dlg_flag” (Section 6.4, “dlg_flag (integer)”) must be set before
- creating the corresponding transaction.
+ To create the dialog associated with an initial INVITE request, execute
+ the function “dlg_manage()” or set the flag specified by parameter
+ “dlg_flag” (Section 6.4, “dlg_flag (integer)”) before creating the
+ corresponding transaction.
The dialog is automatically destroyed when a “BYE” is received. In case
of no “BYE”, the dialog lifetime is controlled via the default timeout
@@ -611,6 +612,10 @@ modparam("dialog", "rr_param", "xyz")
Flag to be used for marking if a dialog should be constructed for the
current request (this make sense only for initial requests).
+ Note: it is not needed to set this parameter and its corresponding flag
+ for initial request in case the “dlg_manage()” function is used. In
+ other words, using “dlg_manage()” alone is enough.
+
Default value is “none”.
Example 1.4. Set dlg_flag parameter
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 53a464d8ff..c788e393c8 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -697,10 +697,15 @@ Note
Controls what gateways are tested to see if they are reachable.
* Value 0: If set to 0, only the gateways with state PROBING are
tested. After a gateway is probed, the PROBING state is cleared in
- this mode.
+ this mode. This means that no probing will be executed at all only
+ if flag in config file is set to 8/PROBING (please check
+ destination list file syntaxis for more details), it will probe
+ only one time at startup or after dispatcher reload.
* Value 1: If set to 1, all gateways are tested. If set to 1 and
there is a failure of keepalive to an active gateway, then it is
- set to TRYING state.
+ set to TRYING state. This means that probing will be executed all
+ the time, but you can skip some servers with flag 4 in destination
+ list file, for example.
* Value 2: if set to 2, only gateways in inactive state with probing
mode set are tested.
* Value 3: If set to 3, any gateway with state PROBING is continually
@@ -1388,6 +1393,21 @@ kamcmd dispatcher.set_state ip 3 all
Example:
kamcmd dispatcher.list
+ ...
+DEST: {
+ URI: sip:192.168.0.1:5060
+ FLAGS: AP
+ PRIORITY: 12
+}
+ ...
+
+ FLAGS consist out of 2 letters. First letter describe status of
+ destination: A-active, I â inactive, T â trying, D â disabled.
+ Second letter might be P or X. P is for probing, so AP means
+ destination is active and it is tested by SIP options continuously. X
+ means that there are no probing or sip pinging. So AX means that
+ destination is assumed as active and it is not tested by SIP options.
+ DX respectively is disabled destination that is not tested, etc.
5.3. dispatcher.reload
[View Less]
Module: kamailio
Branch: 5.2
Commit: 57017b10d9a50385368324beb7eef9044d0b124a
URL: https://github.com/kamailio/kamailio/commit/57017b10d9a50385368324beb7eef90…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-14T12:30:18+01:00
presence: do not include presence.h in other header files
- it exports as extern the module parameter variables and other modules built on
top of presence can end up including …
[View More]this header file, overwriting
declaration of variables with same name
- renamed db_url to pres_db_url, this being a common variable name, to
avoid same situation with a mistaken include in the future
- GH #1809
(cherry picked from commit eb1bf9a69abad3d237c136750fe8cacea4cd0a31)
---
Modified: src/modules/presence/hash.h
Modified: src/modules/presence/presence.c
Modified: src/modules/presence/presence.h
Modified: src/modules/presence/presence_dmq.c
Modified: src/modules/presence/presence_dmq.h
Modified: src/modules/presence/presentity.h
Modified: src/modules/presence/subscribe.h
---
Diff: https://github.com/kamailio/kamailio/commit/57017b10d9a50385368324beb7eef90…
Patch: https://github.com/kamailio/kamailio/commit/57017b10d9a50385368324beb7eef90…
[View Less]
Module: kamailio
Branch: 5.2
Commit: e61ad10e62d427bd0a22e5621f798015630a1e3f
URL: https://github.com/kamailio/kamailio/commit/e61ad10e62d427bd0a22e5621f79801…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-14T12:29:19+01:00
dispatcher: docs - typo and indentation for the rpc flags paragraph
(cherry picked from commit 14b4d23a06fdc9b9f6b17781c50902beaff0cd94)
---
Modified: src/modules/dispatcher/doc/…
[View More]dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e61ad10e62d427bd0a22e5621f79801…
Patch: https://github.com/kamailio/kamailio/commit/e61ad10e62d427bd0a22e5621f79801…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index c0a55b27ad..6092349cf7 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1713,13 +1713,15 @@ DEST: {
}
...
</programlisting>
-<para>FLAGS consist out of 2 letters. First letter describe status of destination: A-active,
- I – inactive, T – trying, D – disabled. Second letter might be P or X. P is for probing,
- so AP means destination is active and it is tested by SIP options continuously.
- X means that there are no probing or sip pinging. So AX means that destination is assumed as active
- and it is not tested by SIP options. DX respectively is disabled destination what is not tested and etc.
-</para>
- </section>
+ <para>FLAGS consist out of 2 letters. First letter describe status of
+ destination: A-active, I – inactive, T – trying, D – disabled. Second
+ letter might be P or X. P is for probing, so AP means destination
+ is active and it is tested by SIP options continuously. X means that
+ there are no probing or sip pinging. So AX means that destination is
+ assumed as active and it is not tested by SIP options. DX
+ respectively is disabled destination that is not tested, etc.
+ </para>
+ </section>
<section id="dispatcher.r.reload">
<title>
<function moreinfo="none">dispatcher.reload</function>
[View Less]