<!-- 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] 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
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Fix invalid memory access (beyond the string).
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2512
-- Commit Summary --
* janssonrpcc: Zero-terminate all string copies
* janssonrpcc: Remove unused variable and redundant assignment
-- File Changes --
M src/modules/janssonrpcc/janssonrpc.h (32)
M src/modules/janssonrpcc/janssonrpc_funcs.c (15)
M src/modules/janssonrpcc/janssonrpc_server.c (14)
M src/modules/janssonrpcc/janssonrpc_srv.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2512.patchhttps://github.com/kamailio/kamailio/pull/2512.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/2512
Module: kamailio
Branch: master
Commit: b999e086d51202916a4cdfaf143150e3b8fa10cf
URL: https://github.com/kamailio/kamailio/commit/b999e086d51202916a4cdfaf143150e…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-10-22T17:46:28+02:00
modules: readme files regenerated - rtpengine ... [skip ci]
---
Modified: src/modules/rtpengine/README
---
Diff: https://github.com/kamailio/kamailio/commit/b999e086d51202916a4cdfaf143150e…
Patch: https://github.com/kamailio/kamailio/commit/b999e086d51202916a4cdfaf143150e…
---
diff --git a/src/modules/rtpengine/README b/src/modules/rtpengine/README
index 00e3746ffe..b72a92de2a 100644
--- a/src/modules/rtpengine/README
+++ b/src/modules/rtpengine/README
@@ -2088,13 +2088,19 @@ rtpengine_offer();
engaged. Only codecs that are supported for both decoding and
encoding can be added in this manner. More details about this
are found in the rtpengine README.
+ + codec-set=... - set codec options (bitrate etc) for codecs
+ that are implicitly accepted for transcoding from the offering
+ side.
+ codec-strip=... - strips given codec from sdp
+ codec-offer=... - offer given codec from sdp. More details
about this are found in the rtpengine README.
+ + codec-except=... - same as codec-offer but preserves original
+ order
+ codec-mask=... - Similar to strip except that codecs listed
here will still be accepted and used for transcoding on the
- offering side.Useful only in combination with codec-transcode.
- all keyword can be used to mask all offered codecs
+ offering side. Useful only in combination with
+ codec-transcode. all keyword can be used to mask all offered
+ codecs
+ T.38=decode - If the offered SDP contains a media section
advertising T.38 over UDPTL, translate it to a regular audio
media section over RTP. By default, PCMU and PCMA will be used
Module: kamailio
Branch: master
Commit: 4de33ea963b40a5150f34fac8f63d04c5992515e
URL: https://github.com/kamailio/kamailio/commit/4de33ea963b40a5150f34fac8f63d04…
Author: Richard Fuchs <rfuchs(a)sipwise.com>
Committer: Richard Fuchs <rfuchs(a)sipwise.com>
Date: 2020-10-22T11:40:47-04:00
rtpengine: update README for 8bf1935c
---
Modified: src/modules/rtpengine/doc/rtpengine_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4de33ea963b40a5150f34fac8f63d04…
Patch: https://github.com/kamailio/kamailio/commit/4de33ea963b40a5150f34fac8f63d04…
---
diff --git a/src/modules/rtpengine/doc/rtpengine_admin.xml b/src/modules/rtpengine/doc/rtpengine_admin.xml
index 362fa58910..db7e7334b9 100644
--- a/src/modules/rtpengine/doc/rtpengine_admin.xml
+++ b/src/modules/rtpengine/doc/rtpengine_admin.xml
@@ -2392,6 +2392,11 @@ rtpengine_offer();
this manner. More details about this are found in the rtpengine README.
</para></listitem>
+ <listitem><para>
+ <emphasis>codec-set=...</emphasis> - set codec options (bitrate etc) for codecs that are implicitly
+ accepted for transcoding from the offering side.
+ </para></listitem>
+
<listitem><para>
<emphasis>codec-strip=...</emphasis> - strips given codec from sdp
</para></listitem>
@@ -2401,9 +2406,13 @@ rtpengine_offer();
More details about this are found in the rtpengine README.
</para></listitem>
+ <listitem><para>
+ <emphasis>codec-except=...</emphasis> - same as <emphasis>codec-offer</emphasis> but preserves original order
+ </para></listitem>
+
<listitem><para>
<emphasis>codec-mask=...</emphasis> - Similar to strip except that codecs listed here will still be accepted
- and used for transcoding on the offering side.Useful only in combination with codec-transcode. <emphasis>all</emphasis> keyword
+ and used for transcoding on the offering side. Useful only in combination with codec-transcode. <emphasis>all</emphasis> keyword
can be used to mask all offered codecs
</para></listitem>
<listitem><para>
Hello guys,
My kamailio version is:
version: kamailio 5.1.1 (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.
I am facing a strange bug with TM in case of negative replies.
A party sends the invite
B party connects the call
B party after a few time sends in dialog invite with t38 media.
A party rejects the in-dialog invite with 488
Kamailio send ACK to A party(since it is an ACK for negative replies it is build in each hop)
The problem in this case is that the ACK sent by kamailio to A party has the callid of kamailio - B party.
Since it has a different callid the A party does not recognize the ACK.
How can I resolve this issue?
Thanks and regards,
Rafael
--
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/2525