### Description
Intermittently the following error is observed when checking if given header is present in SIP INVITE:
SystemError: <built-in function is_present> returned a result with an error set
The complete stack trace is (some names redacted):
11(28) ERROR: {1 195 INVITE nMHZDN.10nOIDt4ldOwz5cqz0XnMepA9} app_python3 [python_support.c:156]: python_handle_exception(): apy_exec: modify_headers((null)): Unhandled exception in the Python code:
TypeError: an integer is required (got type NoneType)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/etc/kamailio/kamailio.py", line 25, in modify_headers
self.modify_header("SomeHeader")
File "/etc/kamailio/kamailio.py", line 29, in modify_header
present = KSR.hdr.is_present(header_name)
SystemError: <built-in function is_present> returned a result with an error set
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.4.6 (x86_64/linux)
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, TLS_PTHREAD_MUTEX_SHARED
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: unknown
compiled with gcc 8.3.0
```
* **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 `lsb_release -a` and `uname -a`)
-->
```
Linux kamailio-5c7484c74d-vhhr8 5.4.0-1056-azure #58~18.04.1-Ubuntu SMP Wed Jul 28 23:14:18 UTC 2021 x86_64 GNU/Linux
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3019
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3019(a)github.com>
- Add capability to set RPData originator
and destination addresses flags.
Default values 0x91.
<!-- 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)
- [ ] 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
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3007
-- Commit Summary --
* smsops: extend rpdata params manipulation
-- File Changes --
M src/modules/smsops/smsops_impl.c (52)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3007.patchhttps://github.com/kamailio/kamailio/pull/3007.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3007
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3007(a)github.com>
<!-- 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)
- [ ] 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
<!-- Describe your changes in detail -->
This PR add support for async queries to db_postgres module. Implementation is the same as the mysql and unixodbx modules.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3010
-- Commit Summary --
* db_postgres: added support for async queries
-- File Changes --
M src/modules/db_postgres/db_postgres.c (2)
M src/modules/db_postgres/km_dbase.c (96)
M src/modules/db_postgres/km_dbase.h (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3010.patchhttps://github.com/kamailio/kamailio/pull/3010.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3010
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3010(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, ...)
- [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:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #3013
#### Description
fixed format-truncation warning
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3017
-- Commit Summary --
* presence: fixed format-truncation warning GH #3013
* rls: fixed format-truncation warning GH #3013
-- File Changes --
M src/modules/presence/presence.c (4)
M src/modules/rls/rls.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3017.patchhttps://github.com/kamailio/kamailio/pull/3017.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3017
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3017(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, ...)
- [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:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #3012
#### Description
fixed misleading-indentation warning
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3016
-- Commit Summary --
* sms: fixed misleading-indentation warning GH #3012
* ims_charging: fixed misleading-indentation warning GH #3012
* kazoo: fixed misleading-indentation warning GH #3012
-- File Changes --
M src/modules/ims_charging/ims_ro.c (26)
M src/modules/kazoo/kz_amqp.c (21)
M src/modules/sms/sms_funcs.c (29)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3016.patchhttps://github.com/kamailio/kamailio/pull/3016.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3016
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3016(a)github.com>