When **trace_mode** is set to 1, then **send_sock_name** is not used (it uses the unexpected socket listen socket).
However, when **trace_mode** is set to 4, then **send_sock_name** works correctly.
Also, in both cases, **send_sock_addr** works correctly.
```
listen=udp:SIP_IPADDRESS:SIP_PORT
listen=udp:SIPCAPTURE_IPADDRESS:SIP_PORT name "siptrace_socket"
modparam("siptrace", "duplicate_uri", "sip:10.218.31.205:9060")
modparam("siptrace", "hep_mode_on", 1)
modparam("siptrace", "hep_version", 3)
modparam("siptrace", "hep_capture_id", 110)
modparam("siptrace", "send_sock_name", "siptrace_socket")
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "trace_mode", 1)
modparam("siptrace", "trace_to_database", 0)
```
This is tested on Kamailio 5.5.1 and 5.5.3.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3174
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3174(a)github.com>
#### Pre-Submission Checklist
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] 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:
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
`PyErr_SetString` is a void function. It doesn't return NULL.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3231
-- Commit Summary --
* Python: must return NULL on error, not Py_None
* modules/python3: return NULL on error.
-- File Changes --
M src/modules/app_python3/python_msgobj.c (102)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3231.patchhttps://github.com/kamailio/kamailio/pull/3231.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3231
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3231(a)github.com>
We have installed Kamailio 5.6.0 from http://deb.kamailio.org/kamailio56, but it is intermittently crashing with a segfault like this:
May 29 04:46:53 ss2 kernel: [26920.901572] kamailio[1416]: segfault at 43a ip 00007f78d1396ab5 sp 00007ffd2487ca10 error 4 in app_perl.so[7f78d1392000+21000]
May 29 04:46:53 ss2 kernel: [26920.901575] Code: 8b 05 8f 34 02 00 48 8b 00 48 89 c7 e8 7b ff ff ff e8 3f e5 ff ff 48 8b 15 78 34 02 00 48 89 02 48 8b 05 6e 34 02 00 48 8b 00 <0f> b6 90 3a 04 00 00 48 8b 05 5d 34 02 00 48 8b 00 83 ca 02 88 90
May 29 04:46:56 ss2 kernel: [26923.737834] kamailio[1409]: segfault at 43a ip 00007f78d1396ab5 sp 00007ffd2487ca10 error 4 in app_perl.so[7f78d1392000+21000]
May 29 04:46:56 ss2 kernel: [26923.737838] Code: 8b 05 8f 34 02 00 48 8b 00 48 89 c7 e8 7b ff ff ff e8 3f e5 ff ff 48 8b 15 78 34 02 00 48 89 02 48 8b 05 6e 34 02 00 48 8b 00 <0f> b6 90 3a 04 00 00 48 8b 05 5d 34 02 00 48 8b 00 83 ca 02 88 90
Perl is version 5.30.0, and the system is running Ubuntu 20.04. A Perl library is loaded using:
modparam( "app_perl", "filename", "/path/to/our/Kamailio.pm" )
We have not found a core file anywhere on the server. Please let us know what other information you need, thanks.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3134
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3134(a)github.com>
The schedule for Kamailio World Conference Online 2022 has been
published on the event website:
 - https://www.kamailioworld.com
The event spans over two days, September 7-8, 2022, with presentations
and open discussion sessions during 12:50-17:00UTC. With the main target
to share the knowledge and connect the community, the conference has
presentations covering use of Kamailio for 5G services, NAT traversal
and integration with RTPEngine, TLS with WolfSSL, end to end testing
testing, controlling SIP message content from KEMI and resources
management for scalability. It is a good balance between established and
new speakers at this edition of Kamailio World Conference.
There is no registration required to join the event, the sessions will
be presented in a live video conferencing room streamed to YouTube
KamailioWorld Channel. A text chat room will be made available for
posting questions and background discussions.
Book the dates in your agenda and prepare for another amazing Kamailio
World Conference! Keep the eye on the event website for updates!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Module: kamailio
Branch: master
Commit: d0e1827b2f8890da4fd30cc23f8bd090227d87f2
URL: https://github.com/kamailio/kamailio/commit/d0e1827b2f8890da4fd30cc23f8bd09…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-09-08T10:31:31+02:00
modules: readme files regenerated - posops ... [skip ci]
---
Modified: src/modules/posops/README
---
Diff: https://github.com/kamailio/kamailio/commit/d0e1827b2f8890da4fd30cc23f8bd09…
Patch: https://github.com/kamailio/kamailio/commit/d0e1827b2f8890da4fd30cc23f8bd09…
---
diff --git a/src/modules/posops/README b/src/modules/posops/README
index 035f807acb..e7583adc58 100644
--- a/src/modules/posops/README
+++ b/src/modules/posops/README
@@ -214,6 +214,9 @@ pos_insert("100", "10");
Set the char at position index to first character in val.
+ Important: it changes the character directly in the SIP message buffer,
+ the update being immediately visible.
+
The idx can be an integer value or a variable holding an integer. If
the value is negative, the position is counted from the end of the
buffer.
Module: kamailio
Branch: master
Commit: c3771966fa8470db91d04323a1e9c837a16a22cf
URL: https://github.com/kamailio/kamailio/commit/c3771966fa8470db91d04323a1e9c83…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-09-08T10:23:52+02:00
posops: docs - updated pos_set_char() section
- note that the change is done directly inside the sip message buffer
---
Modified: src/modules/posops/doc/posops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/c3771966fa8470db91d04323a1e9c83…
Patch: https://github.com/kamailio/kamailio/commit/c3771966fa8470db91d04323a1e9c83…
---
diff --git a/src/modules/posops/doc/posops_admin.xml b/src/modules/posops/doc/posops_admin.xml
index 1a38b85c67f..e47d658f995 100644
--- a/src/modules/posops/doc/posops_admin.xml
+++ b/src/modules/posops/doc/posops_admin.xml
@@ -168,6 +168,10 @@ pos_insert("100", "10");
Set the char at position index to first character in val.
</para>
<para>
+ Important: it changes the character directly in the SIP message
+ buffer, the update being immediately visible.
+ </para>
+ <para>
The idx can be an integer value or a variable holding an integer. If
the value is negative, the position is counted from the end of the buffer.
</para>
Module: kamailio
Branch: master
Commit: 93e77d441112ce41042cfd904cc3e7fd8ae78b4a
URL: https://github.com/kamailio/kamailio/commit/93e77d441112ce41042cfd904cc3e7f…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-09-07T23:46:23+02:00
modules: readme files regenerated - rtpengine ... [skip ci]
---
Modified: src/modules/rtpengine/README
---
Diff: https://github.com/kamailio/kamailio/commit/93e77d441112ce41042cfd904cc3e7f…
Patch: https://github.com/kamailio/kamailio/commit/93e77d441112ce41042cfd904cc3e7f…
---
diff --git a/src/modules/rtpengine/README b/src/modules/rtpengine/README
index 4944f8abaa..fd1e71dc26 100644
--- a/src/modules/rtpengine/README
+++ b/src/modules/rtpengine/README
@@ -2160,6 +2160,10 @@ rtpengine_offer();
+ SIP-source-address - the opposite of trust-address. Restores
the old default behaviour of ignoring endpoint addresses in
the SDP body.
+ + received-from=IP - Configure the SIP-source-address IP
+ explicitly, which will be useful when two kamailio is cascaded
+ where first kamailio is handling NAT and second kamailio
+ RTPEngine.
+ replace-origin - flags that IP from the origin description
(o=) should be also changed.
+ replace-session-connection - flags to change the session-level
Add receive-from option to flags
receive-from=1.2.3.4
required for managing rtpengine by a kamailio node behind a dispatcher
kamailio node
<!-- Kamailio Pull Request Template -->
UE behind NAT --------------->Dispatcher Kamailio--------> Location & Media managementKamailio ---------------> C5 SoftSwitch
| |
| V
| RTPENGINE
|
|---------------------------->Location & Media management Kamailio ---------------> C5 SoftSwitch
|
V
RTPENGINE
In this scenario when the Kamailio behind the Dispatcher will be getting the $Ri as dispatcher IP and by default that will be passed to RTP Engine for NAT negotiation which will fail.
In this pull merge requst, RTP engine module a new flag is added receive-from=IP which is supposed to be the received IP from the First node through P-Accessnetwork-Info header or the contact recived tag etc..
<!--
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/3230
-- Commit Summary --
* Add receive-from option
-- File Changes --
M src/modules/rtpengine/rtpengine.c (47)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3230.patchhttps://github.com/kamailio/kamailio/pull/3230.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3230
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3230(a)github.com>