You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1230
-- Commit Summary --
* pkg/kamailio/obs: Removed nonexistend dependency
* pkg/kamailio/centos: Linked CentOS packaging to openSUSE build service SPEC file
-- File Changes --
A pkg/kamailio/centos/6 (1)
D pkg/kamailio/centos/6/README (29)
D pkg/kamailio/centos/6/kamailio.init (134)
D pkg/kamailio/centos/6/kamailio.spec (1279)
D pkg/kamailio/centos/6/…
[View More]kamailio.sysconfig (30)
A pkg/kamailio/centos/7 (1)
D pkg/kamailio/centos/7/README (16)
D pkg/kamailio/centos/7/kamailio.init (141)
D pkg/kamailio/centos/7/kamailio.service (27)
D pkg/kamailio/centos/7/kamailio.spec (1468)
D pkg/kamailio/centos/7/kamailio.sysconfig (30)
D pkg/kamailio/centos/7/kamailio.tmpfiles (1)
M pkg/kamailio/obs/kamailio.service (2)
M pkg/kamailio/obs/kamailio.spec (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1230.patchhttps://github.com/kamailio/kamailio/pull/1230.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/1230
[View Less]
got these docbook errors today when building latest master on debian
stretch.
-- juha
usr/bin/docbook2x-man -s ../../../doc/stylesheets/serdoc2man.xsl auth.xml
auth.xml:7: warning: failed to load external entity "../../../../doc/docbook/entities.xml"
%docentities;
^
Entity: line 1:
%docentities;
^
auth.xml:25: parser error : Entity 'kamailio' not defined
The <command>auth</command> module of &kamailio; provides basic functional
…
[View More] ^
auth.xml:208: parser error : Entity 'kamailio' not defined
can be divided into several partitions. Each &kamailio; process is assig
^
auth.xml:213: parser error : Entity 'kamailio' not defined
conditions. In the worst case, when only one &kamailio; process receive
^
auth.xml:532: parser error : Entity 'kamailio' not defined
separated by a comma. For challenges generated by &kamailio;, this
^
auth.xml:535: parser error : Entity 'kamailio' not defined
parameter will be present in challenges created by &kamailio;. This may
^
auth.xml:537: parser error : Entity 'kamailio' not defined
make your &kamailio; not comply with RFC 3261.
^
[View Less]
Module: kamailio
Branch: master
Commit: b38455c90c858044e474a4d864f5f7156a8f08cf
URL: https://github.com/kamailio/kamailio/commit/b38455c90c858044e474a4d864f5f71…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-09-17T11:01:58+02:00
modules: readme files regenerated - usrloc ... [skip ci]
---
Modified: src/modules/usrloc/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]b38455c90c858044e474a4d864f5f71…
Patch: https://github.com/kamailio/kamailio/commit/b38455c90c858044e474a4d864f5f71…
---
diff --git a/src/modules/usrloc/README b/src/modules/usrloc/README
index 131baca9c5..b8faee9efb 100644
--- a/src/modules/usrloc/README
+++ b/src/modules/usrloc/README
@@ -1021,10 +1021,20 @@ modparam("usrloc", "db_timer_clean", 1)
* contact - contact string to be added
* expires - expires value of the contact
* Q - Q value of the contact
- * path value of the contact
+ * path value with the Path vector (use '0' or '.' if it should not be
+ set)
* flags - internal USRLOC flags of the contact
* cflags - per branch flags of the contact
* methods - mask with supported requests of the contact
+ * received (optional) value with the received-from address (source
+ address) (use '0' or '.' if it should not be set). Format:
+ sip:srcip:srcport;transport=abc
+ * socket (optional) value with the local socket address (use '0' or
+ '.' if it should not be set). Format: proto:localip:localport
+
+ Note: the position of parameters is relevant, in the case of optional
+ parameters, use '0' or '.' for parameters that should not be set which
+ are positioned before any parameter that has to be set.
4.7. ul.db_users
[View Less]
Looking into code it seems RPC functions of USRLOC don't allow setting all fields for USRLOC entry, for example, Received and Socket.
It would be great if we can set these, because we need to have ability to transfer contacts from other server to Kamailio.
I think at present this can be done sending specially crafted fake REGISTER packets or calling special route from HTTP with some tricks for saving contact and received, but as for me it would be great to set it from RPC because we already …
[View More]have ul.add method.
It also would be cool if we can use named parameters in JSONRPC params: {} section with names corresponding to usrloc fields, like 'table', 'AOR', 'received' and so on. Maybe on specual key not to mix with current 'params'.
--
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/1225
[View Less]
Module: kamailio
Branch: master
Commit: d6af9b8146ae6fc6fda692e669fb334ba1a959bd
URL: https://github.com/kamailio/kamailio/commit/d6af9b8146ae6fc6fda692e669fb334…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-09-17T10:56:35+02:00
usrloc: updated docs for rpc ul.add command
---
Modified: src/modules/usrloc/doc/usrloc_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]d6af9b8146ae6fc6fda692e669fb334…
Patch: https://github.com/kamailio/kamailio/commit/d6af9b8146ae6fc6fda692e669fb334…
---
diff --git a/src/modules/usrloc/doc/usrloc_admin.xml b/src/modules/usrloc/doc/usrloc_admin.xml
index 1dd4ae378a..fde16498d7 100644
--- a/src/modules/usrloc/doc/usrloc_admin.xml
+++ b/src/modules/usrloc/doc/usrloc_admin.xml
@@ -1268,7 +1268,8 @@ modparam("usrloc", "db_timer_clean", 1)
<emphasis>Q</emphasis> - Q value of the contact
</para></listitem>
<listitem><para>
- <emphasis>path</emphasis> value of the contact
+ <emphasis>path</emphasis> value with the Path vector (use '0'
+ or '.' if it should not be set)
</para></listitem>
<listitem><para>
<emphasis>flags</emphasis> - internal USRLOC flags of the
@@ -1282,7 +1283,23 @@ modparam("usrloc", "db_timer_clean", 1)
<emphasis>methods</emphasis> - mask with supported requests
of the contact
</para></listitem>
+ <listitem><para>
+ <emphasis>received</emphasis> (optional) value with the
+ received-from address (source address) (use '0'
+ or '.' if it should not be set). Format:
+ sip:srcip:srcport;transport=abc
+ </para></listitem>
+ <listitem><para>
+ <emphasis>socket</emphasis> (optional) value with the local
+ socket address (use '0' or '.' if it should not be set). Format:
+ proto:localip:localport
+ </para></listitem>
</itemizedlist>
+ <para>
+ Note: the position of parameters is relevant, in the case of
+ optional parameters, use '0' or '.' for parameters that should not
+ be set which are positioned before any parameter that has to be set.
+ </para>
</section>
<section id="usrloc.r.db_users">
[View Less]
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing
C code, ask on sr-dev mailing list
* http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as …
[View More]possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
"ds_is_from_list" function from Dispatcher module give false result - when actually it should be true.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
modparam("dispatcher", "db_url",DBURL)
modparam("dispatcher", "table_name", "dispatcher")
modparam("dispatcher", "setid_col", "setid")
modparam("dispatcher", "destination_col", "destination")
modparam("dispatcher", "flags", 2)
modparam("dispatcher", "dst_avp", "$avp(AVP_DST)")
modparam("dispatcher", "grp_avp", "$avp(AVP_GRP)")
modparam("dispatcher", "cnt_avp", "$avp(AVP_CNT)")
modparam("dispatcher", "sock_avp", "$avp(AVP_SOCK)")
request_route {
xlog("L_INFO","[=Start Routing=]")
if(ds_is_from_list("1")) {
xlog("L_INFO","[=FROM ASTERISK=]");
} else {
xlog("L_INFO","[=TO ASTERISK=]");
}
if($si=="192.168.1.10") {
xlog("L_INFO","[=FROM ASTERISK BY IP=]");
} else {
xlog("L_INFO","[=TO ASTERISK BY IP=]");
}
root@kamailio:/var/log# kamctl dispatcher show
dispatcher gateways
+----+-------+---------------------+-------+----------+-------+-----------------+
| id | setid | destination | flags | priority | attrs | description |
+----+-------+---------------------+-------+----------+-------+-----------------+
| 1 | 1 | sip:192.168.1.10:5060 | 0 | 3 | | Main Asterisk |
| 2 | 2 | sip:192.168.1.11:5060 | 0 | 2 | | Backup Asterisk |
| 3 | 3 | sip:192.168.1.12:5060 | 0 | 1 | | Test Asterisk |
+----+-------+---------------------+-------+----------+-------+-----------------+
root@kamailio:/var/log#
cat /var/log/kamailio.log
[=Start Routing=]
**[=TO ASTERISK=]**
**[=FROM ASTERISK BY IP=]**
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
root@kamailio:/var/log# kamailio -v
version: kamailio 5.0.3 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 12:12:14 Sep 7 2017 with gcc 6.3.0
root@kamailio:/var/log#
```
* **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`)
-->
```
Debian 9.1/ Linux kamailio1 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u3 (2017-08-06) 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/1235
[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:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
This PR to fix a calculation error on the latency standard deviation
test with random values from 1-30
```
total[1726000000]value[3] count[2097152] std[8.654594] avg[15.541001] est[14.098082]
total[1727000000]value[2] count[2097152] std[8.654230] avg[15.542887] est[16.070623]
total[1728000000]value[2] count[2097152] std[8.655254] avg[15.546928] est[13.154167]
```
test with random values 1-500
```
total[1056000000]value[373] count[2097152] std[144.397552] avg[249.993790] est[297.913574]
total[1057000000]value[118] count[2097152] std[144.369400] avg[250.121262] est[222.419662]
total[1058000000]value[431] count[2097152] std[144.314056] avg[250.138077] est[295.765625]
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1236
-- Commit Summary --
* dispatcher: latency fix stdev calculation
-- File Changes --
M src/modules/dispatcher/dispatch.c (29)
M src/modules/dispatcher/dispatch.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1236.patchhttps://github.com/kamailio/kamailio/pull/1236.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/1236
[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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ X] New …
[View More]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
- [ X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
With the proposed modification the dispatcher can now compute the latency of all the nodes it is pinging and also report timeouts counts.
Default module behavior is unchanged, the stats needs to be explicitly activated.
In this first stage, the objective is to start to monitor latency and intermittent timeouts and share the result to be used by an external monitoring system.
The metrics are only expose using `kamcmd dispatcher.list` maybe they should be made available elsewhere, for example from the routing script ? but this can be done later ...
```
DEST: {
URI: sip:1.2.3.4
FLAGS: AX
PRIORITY: 9
LATENCY: {
AVG: 24.250000 # weigthed moving average for the last few weeks
STD: 1.035000 # standard deviation of AVG
EST: 25.000000 # short term estimate, see parameter: ds_latency_estimator_alpha
MAX: 26 # maximun value seen
TIMEOUT: 0 # count of ping timeouts
}
}
```
Another stage would probably be to adjust the load distribution/weight considering the latency estimator, the dispatcher would be able to detect intermittent remote server lags and minimize the impact.
tested :
Some tests done on the calculation generating billions of fake samples to verify calculations.
ds_reload :
- safe because it is using a blue/green update keeping the active version while creating the new one
- this will currently reset the stats
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1234
-- Commit Summary --
* dispatcher: latency statistics
-- File Changes --
M src/modules/dispatcher/dispatch.c (87)
M src/modules/dispatcher/dispatch.h (13)
M src/modules/dispatcher/dispatcher.c (28)
M src/modules/dispatcher/doc/dispatcher.xml (9)
M src/modules/dispatcher/doc/dispatcher_admin.xml (75)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1234.patchhttps://github.com/kamailio/kamailio/pull/1234.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/1234
[View Less]
Hi, it seems there is a connection problem with the ubuntu repo. I
will investigate
Err http://ie.archive.ubuntu.com/ubuntu/ precise/main libexpat1 amd64
2.0.1-7.2ubuntu1
Could not connect to ie.archive.ubuntu.com:80 (193.1.193.69),
connection timed out
I tried latest Linphone and when it tried to register, K complained:
Sep 13 20:56:06 box /usr/bin/sip-proxy[111574]: WARNING: registrar [sip_msg.c:194]: check_contacts(): contact uri is too long: [sip:username@host:port;app-id=929724111839;pn-type=firebase;pn-tok=dYqC3AnzCxI:APA91bF84yDlViEZtJyuUd-9icZYAxsn0f8AAsV97kYzBiSo1uu1VRcI6IWsUQP8evlYCltEHJpjKf9alnyIxcRiRaVDugu4CF7ZgaI3vVw2Ls22mW6K7TGJJ90iTs7g-G1sE5oVTdC1;pn-silent=1;transport=tls]
I haven't checked yet, what RFC 3261 says about …
[View More]length of contact uri
(if anything).
Comments?
-- Juha
[View Less]
Module: kamailio
Branch: master
Commit: 7d041c41d06773a5198f4e1a6461bdb1bd5b5351
URL: https://github.com/kamailio/kamailio/commit/7d041c41d06773a5198f4e1a6461bdb…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-09-13T11:46:55+02:00
modules: readme files regenerated - dialog ... [skip ci]
---
Modified: src/modules/dialog/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]7d041c41d06773a5198f4e1a6461bdb…
Patch: https://github.com/kamailio/kamailio/commit/7d041c41d06773a5198f4e1a6461bdb…
---
diff --git a/src/modules/dialog/README b/src/modules/dialog/README
index f344c99b53..f56c64cad8 100644
--- a/src/modules/dialog/README
+++ b/src/modules/dialog/README
@@ -1979,15 +1979,17 @@ kamcmd dlg.list _from_ _to_ _op_
11.1. event_route[dialog:start]
- Executed when 200OK for INVITE is processed.
+ Executed when 200OK reply for INVITE is processed.
11.2. event_route[dialog:end]
- Executed when BYE is processed or dialog timed out.
+ Executed when the BYE for the call is processed or the dialog timed
+ out.
11.3. event_route[dialog:failed]
- Executed when dialog is not completed (+300 reply to INVITE).
+ Executed when dialog is not completed (300 or greater reply code to
+ INVITE).
Chapter 2. Developer Guide
[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 -->
- [ ] 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 -->
While starting kamailio or reloading the routes, if the same carrier/domain pairs do not have
any route with a probability other than 0 (zero) then an error log will be printed on the screen.
Besides, the log "invalid dice_max value" in the cr_func.c has been made more clear.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1233
-- Commit Summary --
* carrierroute: warning for the same carrier/domain having routes with only 0 probability
-- File Changes --
M src/modules/carrierroute/cr_db.c (34)
M src/modules/carrierroute/cr_db.h (5)
M src/modules/carrierroute/cr_func.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1233.patchhttps://github.com/kamailio/kamailio/pull/1233.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/1233
[View Less]