Module: kamailio
Branch: 5.2
Commit: 07d990366365499ac1296f16efa56c540ad1dd40
URL: https://github.com/kamailio/kamailio/commit/07d990366365499ac1296f16efa56c5…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-12-04T09:16:46+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/dispatcher/README
Modified: src/modules/ims_charging/README
---
Diff: https://github.com/kamailio/kamailio/commit/07d990366365499ac1296f16efa56c5…
Patch: https://github.com/kamailio/kamailio/commit/07d990366365499ac1296f16efa56c5…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index c90e631a94..53a464d8ff 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1439,12 +1439,21 @@ kamcmd dispatcher.ping_active 0
destination address (string value in full SIP URI format).
Optionally, these fields can be followed by:
- * flags (listed by index - can be bitwise mask of values): 0 (value
- 1) - inactive destination; 1 (value 2) - temporary trying
- destination (in the way to become inactive if it does not reply to
- keepalives - there is a module parameter to set the threshold of
- failures); 2 (value 4) - admin disabled destination; 3 (value 8) -
- probing destination (sending keep alives);
+ * flags - control the mode of using the destination address and
+ sending keepalives. It is a bitwise value that can be built using
+ the folowing flags:
+ + 1 (bit at index 0 - 1 <<0) - inactive destination
+ + 2 (bit at index 1 - 1 <<1) - temporary trying destination (in
+ the way to become inactive if it does not reply to keepalives
+ - there is a module parameter to set the threshold of
+ failures)
+ + 4 (bit at index 2 - 1 <<2) - admin disabled destination
+ + 8 (bit at index 3 - 1 <<3) - probing destination (sending keep
+ alives);
+ + 16 (bit at index 4 - 1 <<4) - skip DNS A/AAAA resolve at
+ startup, useful when the hostname of the destination address
+ is a NAPTR or SRV record only. Such addresses cannot be
+ matched anymore with ds_is_from_list(...).
* priority: sets the priority in destination list (based on it is
done the initial ordering inside the set)
* attributes: extra fields in form of name1=value1;...;nameN=valueN.
diff --git a/src/modules/ims_charging/README b/src/modules/ims_charging/README
index ec8dd1118b..d195743197 100644
--- a/src/modules/ims_charging/README
+++ b/src/modules/ims_charging/README
@@ -66,7 +66,7 @@ Carlos Ruiz Diaz
5. Functions
5.1. Ro_CCR(route_name, direction, reservation_units,
- domain, incoming_trunk_id, outgoing_trunk_id
+ incoming_trunk_id, outgoing_trunk_id)
5.2. Ro_set_session_id_avp()
@@ -163,8 +163,8 @@ Chapter 1. Admin Guide
5. Functions
- 5.1. Ro_CCR(route_name, direction, reservation_units, domain,
- incoming_trunk_id, outgoing_trunk_id
+ 5.1. Ro_CCR(route_name, direction, reservation_units,
+ incoming_trunk_id, outgoing_trunk_id)
5.2. Ro_set_session_id_avp()
@@ -689,13 +689,13 @@ modparam("ims_charging", "custom_user_avp", "$avp(from_user)")
5. Functions
- 5.1. Ro_CCR(route_name, direction, reservation_units, domain,
- incoming_trunk_id, outgoing_trunk_id
+ 5.1. Ro_CCR(route_name, direction, reservation_units,
+ incoming_trunk_id, outgoing_trunk_id)
5.2. Ro_set_session_id_avp()
-5.1. Ro_CCR(route_name, direction, reservation_units, domain,
-incoming_trunk_id, outgoing_trunk_id
+5.1. Ro_CCR(route_name, direction, reservation_units, incoming_trunk_id,
+outgoing_trunk_id)
Perform a CCR on Diameter Ro interface for Charging
@@ -704,7 +704,6 @@ incoming_trunk_id, outgoing_trunk_id
* direction "orig"inating or "term"inating
* reservation_units how many units (at the moment seconds) should be
reserved at the moment.
- * domain Logical domain within registrar.
* incoming_trunk_id Identifies the trunk group from which this
originates.
* outgoing_trunk_id Identifies the trunk group where this will be
Module: kamailio
Branch: 5.2
Commit: ae4b66c18997103419c48e0fb7b95f53dc200300
URL: https://github.com/kamailio/kamailio/commit/ae4b66c18997103419c48e0fb7b95f5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-04T09:06:41+01:00
dispatcher: docs for flags value 16
(cherry picked from commit ba31f4ec4f98487e9f1282fe12a5819d5df0b733)
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/ae4b66c18997103419c48e0fb7b95f5…
Patch: https://github.com/kamailio/kamailio/commit/ae4b66c18997103419c48e0fb7b95f5…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 023f6a0ba2..3b40c04622 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1780,17 +1780,21 @@ onreply_route {
sending keepalives. It is a bitwise value that can be built using
the folowing flags:
<itemizedlist>
- <listitem><para>1 (bit at index 0 - 1 <<0) - inactive destination<para>
+ <listitem><para>1 (bit at index 0 - 1 <<0) - inactive destination</para>
</listitem>
<listitem><para>2 (bit at index 1 - 1 <<1) - temporary trying
destination (in the way to become inactive if it does not reply to
keepalives - there is a module parameter to set the threshold of
- failures)<para>
+ failures)</para>
</listitem>
- <listitem><para>4 (bit at index 2 - 1 <<2) - admin disabled destination<para>
+ <listitem><para>4 (bit at index 2 - 1 <<2) - admin disabled destination</para>
</listitem>
<listitem><para>8 (bit at index 3 - 1 <<3) - probing destination (sending keep alives);</para>
</listitem>
+ <listitem><para>16 (bit at index 4 - 1 <<4) - skip DNS A/AAAA resolve at startup,
+ useful when the hostname of the destination address is a NAPTR or SRV record only.
+ Such addresses cannot be matched anymore with ds_is_from_list(...).</para>
+ </listitem>
</itemizedlist>
</para>
</listitem>
Module: kamailio
Branch: 5.2
Commit: f7540ffb88bbeb07956c43665874dae82c2ac969
URL: https://github.com/kamailio/kamailio/commit/f7540ffb88bbeb07956c43665874dae…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-04T09:06:31+01:00
dispatcher: flag 16 (1<<4) for destinations with host not having A/AAAA record
- use it for addresses that should not be resolved with an A/AAAA query
at startup (e.g., it is a NAPTR or SRV only record for that specific
hostname)
- such addresses will not match when using ds_is_from_list(...)
- GH #1743
(cherry picked from commit 9eba5b673cc1a80434642b280e6f7d53e310338e)
---
Modified: src/modules/dispatcher/dispatch.c
Modified: src/modules/dispatcher/dispatch.h
---
Diff: https://github.com/kamailio/kamailio/commit/f7540ffb88bbeb07956c43665874dae…
Patch: https://github.com/kamailio/kamailio/commit/f7540ffb88bbeb07956c43665874dae…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index cb8fe6ea81..59cf1d9302 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -424,11 +424,17 @@ ds_dest_t *pack_dest(str iuri, int flags, int priority, str *attrs)
/* Do a DNS-Lookup for the Host-Name: */
he = resolvehost(hn);
if(he == 0) {
- LM_ERR("could not resolve %.*s\n", puri.host.len, puri.host.s);
- goto err;
+ if(dp->flags & DS_NODNSARES_DST) {
+ dp->irmode |= DS_IRMODE_NOIPADDR;
+ } else {
+ LM_ERR("could not resolve %.*s (missing no-probing flag?!?)\n",
+ puri.host.len, puri.host.s);
+ goto err;
+ }
+ } else {
+ /* Store hostent in the dispatcher structure */
+ hostent2ip_addr(&dp->ip_address, he, 0);
}
- /* Free the hostname */
- hostent2ip_addr(&dp->ip_address, he, 0);
/* Copy the port out of the URI */
dp->port = puri.port_no;
@@ -2957,8 +2963,8 @@ int ds_is_addr_from_list(sip_msg_t *_m, int group, str *uri, int mode)
if(group == -1) {
- rc = ds_is_addr_from_set_r(
- _m, pipaddr, tport, tproto, _ds_list, mode, 1);
+ rc = ds_is_addr_from_set_r(_m, pipaddr, tport, tproto, _ds_list,
+ mode, 1);
} else {
list = ds_avl_find(_ds_list, group);
if(list) {
diff --git a/src/modules/dispatcher/dispatch.h b/src/modules/dispatcher/dispatch.h
index 0675b3ccd3..1c89c756e6 100644
--- a/src/modules/dispatcher/dispatch.h
+++ b/src/modules/dispatcher/dispatch.h
@@ -44,7 +44,8 @@
#define DS_TRYING_DST 2 /*!< temporary trying destination */
#define DS_DISABLED_DST 4 /*!< admin disabled destination */
#define DS_PROBING_DST 8 /*!< checking destination */
-#define DS_STATES_ALL 15 /*!< all bits for the states of destination */
+#define DS_NODNSARES_DST 16 /*!< no DNS A/AAAA resolve for host in uri */
+#define DS_STATES_ALL 31 /*!< all bits for the states of destination */
#define ds_skip_dst(flags) ((flags) & (DS_INACTIVE_DST|DS_DISABLED_DST))
@@ -68,6 +69,8 @@
#define DS_XAVP_CTX_SKIP_CNT 1
+#define DS_IRMODE_NOIPADDR 1
+
/* clang-format on */
extern str ds_db_url;
@@ -185,16 +188,17 @@ typedef struct _ds_latency_stats {
} ds_latency_stats_t;
typedef struct _ds_dest {
- str uri;
- int flags;
- int priority;
- int dload;
- ds_attrs_t attrs;
- ds_latency_stats_t latency_stats;
- struct socket_info * sock;
- struct ip_addr ip_address; /*!< IP-Address of the entry */
- unsigned short int port; /*!< Port of the URI */
- unsigned short int proto; /*!< Protocol of the URI */
+ str uri; /*!< address/uri */
+ int flags; /*!< flags */
+ int priority; /*!< priority */
+ int dload; /*!< load */
+ ds_attrs_t attrs; /*!< the atttributes */
+ ds_latency_stats_t latency_stats; /*!< latency statistics */
+ int irmode; /*!< internal runtime mode (flags) */
+ struct socket_info *sock; /*!< pointer to local socket */
+ struct ip_addr ip_address; /*!< IP of the address */
+ unsigned short int port; /*!< port of the URI */
+ unsigned short int proto; /*!< protocol of the URI */
int message_count;
struct _ds_dest *next;
} ds_dest_t;
Module: kamailio
Branch: 5.2
Commit: 8a29423b708029b5d569890bc9681a21bf5ebf16
URL: https://github.com/kamailio/kamailio/commit/8a29423b708029b5d569890bc9681a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-04T09:06:07+01:00
dispatcher: docs - make a bullet list for the possible values for flags field
(cherry picked from commit f073f72af6a507e8113e06dc07ad161e3f4632c3)
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/8a29423b708029b5d569890bc9681a2…
Patch: https://github.com/kamailio/kamailio/commit/8a29423b708029b5d569890bc9681a2…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 34a4a1559a..023f6a0ba2 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -1776,12 +1776,23 @@ onreply_route {
</para>
<itemizedlist>
<listitem>
- <para>flags (listed by index - can be bitwise mask of values):
- 0 (value 1) - inactive destination; 1 (value 2) - temporary trying
- destination (in the way to become inactive if it does not reply to
- keepalives - there is a module parameter to set the threshold of
- failures); 2 (value 4) - admin disabled destination; 3 (value 8)
- - probing destination (sending keep alives);</para>
+ <para>flags - control the mode of using the destination address and
+ sending keepalives. It is a bitwise value that can be built using
+ the folowing flags:
+ <itemizedlist>
+ <listitem><para>1 (bit at index 0 - 1 <<0) - inactive destination<para>
+ </listitem>
+ <listitem><para>2 (bit at index 1 - 1 <<1) - temporary trying
+ destination (in the way to become inactive if it does not reply to
+ keepalives - there is a module parameter to set the threshold of
+ failures)<para>
+ </listitem>
+ <listitem><para>4 (bit at index 2 - 1 <<2) - admin disabled destination<para>
+ </listitem>
+ <listitem><para>8 (bit at index 3 - 1 <<3) - probing destination (sending keep alives);</para>
+ </listitem>
+ </itemizedlist>
+ </para>
</listitem>
<listitem>
<para>priority: sets the priority in destination list (based on it