ims_charging : doc is fixed
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Ro_CCR function doesnt get parameter like domain. it removed from doc.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1741
-- Commit Summary --
* ims_charging : doc is fixed
-- File Changes --
M src/modules/ims_charging/doc/ims_charging_admin.xml (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1741.patchhttps://github.com/kamailio/kamailio/pull/1741.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/1741
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for feature requests.
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
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If you submit a feature request (or enhancement) 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
I used [get_body_part_by_filter](https://github.com/kamailio/kamailio/blob/f073f72a… to extract a body part from a `multipart/mixed` message. It works as expected but for every body part it compares and do not match (until finding the one that matches the filter) it shows error log messages like:
`ERROR: <core> [core/parser/parse_body.c:513]: part_multipart_headers_cmp(): part_multipart_headers_cmp. error. "-2". "MIME types mismatch".`
The comparison of body parts shouldn´t be logged as errors, since they are not.
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Expected behavior
No error logs.
#### Actual observed behavior
Error log messages.
#### 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).
-->
```
ERROR: <core> [core/parser/parse_body.c:513]: part_multipart_headers_cmp(): part_multipart_headers_cmp. error. "-2". "MIME types mismatch".
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a improvement.
-->
Do not show logs or change log level.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
5.1
```
* **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`)
-->
```
CentOS 7
```
--
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/1746
Module: kamailio
Branch: master
Commit: ba31f4ec4f98487e9f1282fe12a5819d5df0b733
URL: https://github.com/kamailio/kamailio/commit/ba31f4ec4f98487e9f1282fe12a5819…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-29T18:31:07+01:00
dispatcher: docs for flags value 16
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/ba31f4ec4f98487e9f1282fe12a5819…
Patch: https://github.com/kamailio/kamailio/commit/ba31f4ec4f98487e9f1282fe12a5819…
---
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: master
Commit: 9eba5b673cc1a80434642b280e6f7d53e310338e
URL: https://github.com/kamailio/kamailio/commit/9eba5b673cc1a80434642b280e6f7d5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-29T18:20:24+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
---
Modified: src/modules/dispatcher/dispatch.c
Modified: src/modules/dispatcher/dispatch.h
---
Diff: https://github.com/kamailio/kamailio/commit/9eba5b673cc1a80434642b280e6f7d5…
Patch: https://github.com/kamailio/kamailio/commit/9eba5b673cc1a80434642b280e6f7d5…
---
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: master
Commit: f073f72af6a507e8113e06dc07ad161e3f4632c3
URL: https://github.com/kamailio/kamailio/commit/f073f72af6a507e8113e06dc07ad161…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-11-28T17:38:56+01:00
dispatcher: docs - make a bullet list for the possible values for flags field
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/f073f72af6a507e8113e06dc07ad161…
Patch: https://github.com/kamailio/kamailio/commit/f073f72af6a507e8113e06dc07ad161…
---
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
Kamailio v5.2.0 is out – it comes with 6 new modules and a consistent
group of improvements touching more than 100 existing modules.
You can read detailed release notes at:
* https://www.kamailio.org/w/kamailio-v5-2-0-release-notes/
Many thanks to all developers and community members that made possible
this release.
v5.2.0 brings more flexibility and optimizations for KEMI interpreters
(including two new interpreters for Python3 and Ruby), major
enhancements to load balancer and tls implementations, new variables and
lots of other new features.
Enjoy Kamailio v5.2.0!
Thank you for flying Kamailio!
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference 2019 - http://www.kamailioworld.com