https://github.com/kamailio/kamailio/blob/ae23876b3091db2e62f651e05fa695d29…
This function appears to be determining, for an unknown reason, that the log message that was sent immediately prior (successfully, I might add) to my logstash server via UDP returned non-zero from the udp_send
I am receiving the message and the subsequent error message just fine, so I am unsure of what the issue could be.
kamailio 5.4.0 (x86_64/linux) 19128f
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, 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: 19128f
compiled on 20:14:01 Aug 19 2020 with gcc 4.8.5
CentOS Linux release 7.8.2003 (Core)
x86_64
--
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/2452
ka_add_destination, ka_del_destination requires owner param.
<!-- 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/2438
-- Commit Summary --
* ka_add_destination, ka_del_destination requires owner param
-- File Changes --
M src/modules/keepalive/README (52)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2438.patchhttps://github.com/kamailio/kamailio/pull/2438.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/2438
Module: kamailio
Branch: master
Commit: 7284a61125bb0cacd1adc2289af616061df03258
URL: https://github.com/kamailio/kamailio/commit/7284a61125bb0cacd1adc2289af6160…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-08-24T09:35:19+02:00
keepalive: docs - documented owner parameter for add/delete functions
- related to GH #2438
---
Modified: src/modules/keepalive/doc/keepalive_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/7284a61125bb0cacd1adc2289af6160…
Patch: https://github.com/kamailio/kamailio/commit/7284a61125bb0cacd1adc2289af6160…
---
diff --git a/src/modules/keepalive/doc/keepalive_admin.xml b/src/modules/keepalive/doc/keepalive_admin.xml
index 98e55222ea..5b74c6e4cc 100644
--- a/src/modules/keepalive/doc/keepalive_admin.xml
+++ b/src/modules/keepalive/doc/keepalive_admin.xml
@@ -169,10 +169,22 @@ if(ka_is_alive("192.168.10.20") == 1) {
</section>
<section id="keepalive.ka_add_destination">
<title>
- <function moreinfo="none">ka_add_destination(sip_uri)</function>
+ <function moreinfo="none">ka_add_destination(sip_uri, owner)</function>
</title>
<para>
- Adds destination sip/sips uri in memory list to keep alive .
+ Adds SIP URI in the memory destinations list to perform keep alive to it.
+ </para>
+ <para>
+ Meaning of the parameters:
+ <itemizedlist>
+ <listitem>sip_uri (string) - address of destination to monitor.
+ Valid format is [protoschema:]ip[:port], with: 'protoschema' being
+ one of 'sip' or 'sips' (SIP over TLS) - if omitted, 'sip'is used
+ by default; 'port' is optional (using default standard port 5060
+ for sip and 5061 for sips)</listitem>
+ <listitem>owner (string) - module name “owning” the destination
+ (for informational purpose)</listitem>
+ </itemizedlist>
</para>
<para>
Returned value:
@@ -185,25 +197,38 @@ if(ka_is_alive("192.168.10.20") == 1) {
This function can be used from REQUEST_ROUTE,BRANCH_ROUTE,ONREPLY_ROUTE.
</para>
<example>
- <title><function>ka_add_destination(sip_uri)</function> usage</title>
+ <title><function>ka_add_destination(sip_uri, ownder)</function> usage</title>
<programlisting format="linespecific">
...
$avp(duri1)="sip:192.168.1.10:5060;transport=tcp";
$avp(duri2)="sip:192.168.1.11:5061";
$avp(duri3)="sip:192.168.1.12"
-ka_add_destination("$avp(duri3)");
-ka_add_destination("sip:192.168.1.10:5060;transport=tcp");
+ka_add_destination("$avp(duri3)", "config");
+ka_add_destination("sip:192.168.1.10:5060;transport=tcp", "config");
...
</programlisting>
</example>
</section>
<section id="keepalive.ka_del_destination">
<title>
- <function moreinfo="none">ka_del_destination(sip_uri)</function>
+ <function moreinfo="none">ka_del_destination(sip_uri, owner)</function>
</title>
<para>
- Deletes destination sip/sips uri in memory list .
+ Deletes the SIP URI from the memory destinations list used for monitoring.
</para>
+ <para>
+ Meaning of the parameters:
+ <itemizedlist>
+ <listitem>sip_uri (string) - address of monitored destination.
+ Valid format is [protoschema:]ip[:port], with: 'protoschema' being
+ one of 'sip' or 'sips' (SIP over TLS) - if omitted, 'sip'is used
+ by default; 'port' is optional (using default standard port 5060
+ for sip and 5061 for sips)</listitem>
+ <listitem>owner (string) - module name “owning” the destination
+ (for informational purpose)</listitem>
+ </itemizedlist>
+ </para>
+
<para>
Returned value:
<itemizedlist>
@@ -215,14 +240,14 @@ ka_add_destination("sip:192.168.1.10:5060;transport=tcp");
This function can be used from ANY_ROUTE.
</para>
<example>
- <title><function>ka_del_destination(sip_uri)</function> usage</title>
+ <title><function>ka_del_destination(sip_uri, owner)</function> usage</title>
<programlisting format="linespecific">
...
$avp(duri1)="sip:192.168.1.10:5060;transport=tcp";
$avp(duri2)="sip:192.168.1.11:5061";
$avp(duri3)="sip:192.168.1.12"
-ka_del_destination("$avp(duri3)");
-ka_del_destination("sip:192.168.1.10:5060;transport=tcp");
+ka_del_destination("$avp(duri3)", "config");
+ka_del_destination("sip:192.168.1.10:5060;transport=tcp", "config");
...
</programlisting>
</example>
<!-- 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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [x] 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
When doing t_reply/send_reply stateful, the ACC module will not add the to-tag to the ACC events.
This patch will fix this and ensure that we get the to-tag that was locally generated used in the reply.
example :
```
modparam("acc", "acc_prepare_always", 1)
modparam("acc_json", "acc_missed_flag", 6)
failure_route[test] {
setflag(6); // MISSED_ACC, the failure will be recorded by ACC
t_flush_flags(); // This will set the flags in the newly created transaction
t_reply("500", "Service Unavailable");
}
```
This does generate an ACC event, however the to-tag is not populated, my guess this is because the TM callback is done before the to-tag is generated.
This patch will populate the to-tag immediately.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2422
-- Commit Summary --
* acc: add to-tag for locally generated replies
-- File Changes --
M src/modules/acc/acc.c (7)
M src/modules/acc/acc_api.h (1)
M src/modules/acc/acc_logic.c (20)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2422.patchhttps://github.com/kamailio/kamailio/pull/2422.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/2422