Module: kamailio
Branch: master
Commit: 3759c26c486c879a798b41a186870fda0f546506
URL: https://github.com/kamailio/kamailio/commit/3759c26c486c879a798b41a186870fd…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-09-18T09:16:49+02:00
modules: readme files regenerated - statsc ... [skip ci]
---
Modified: src/modules/statsc/README
---
Diff: https://github.com/kamailio/kamailio/commit/3759c26c486c879a798b41a186870fd…
Patch: https://github.com/kamailio/kamailio/commit/3759c26c486c879a798b41a186870fd…
---
diff --git a/src/modules/statsc/README b/src/modules/statsc/README
index a753399731..a43e2ff5c4 100644
--- a/src/modules/statsc/README
+++ b/src/modules/statsc/README
@@ -73,8 +73,8 @@ Chapter 1. Admin Guide
2.1. Kamailio Modules
The following modules must be loaded along this module:
- * various - for getting access to the statistics exported by these
- modules.
+ * various - (optional, e.g., sl, tm, usrloc) for getting access to
+ the statistics exported by these modules.
2.2. External Libraries or Applications
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/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
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 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
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/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">