<!-- 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)
- [ ] 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
- [x] Related to issue #2946
#### Description
migrate dialplan to pcre2
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3543
-- Commit Summary --
* regex: migration to pcre2
* dialplan: migrate to pcre2
-- File Changes --
M src/modules/dialplan/Makefile (11)
M src/modules/dialplan/dialplan.c (5)
M src/modules/dialplan/dialplan.h (21)
M src/modules/dialplan/dp_db.c (103)
M src/modules/dialplan/dp_repl.c (56)
M src/modules/regex/Makefile (11)
M src/modules/regex/regex_mod.c (240)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3543.patchhttps://github.com/kamailio/kamailio/pull/3543.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3543
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3543(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)
- [ ] 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/3551
-- Commit Summary --
* smsops: fixes as per static code analyzer report
-- File Changes --
M src/modules/smsops/smsops_impl.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3551.patchhttps://github.com/kamailio/kamailio/pull/3551.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3551
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3551(a)github.com>
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3559
-- Commit Summary --
* misc/ typos
-- File Changes --
M misc/examples/exec/exec_s5b.cfg (2)
M misc/examples/ims/icscf/README.md (2)
M misc/examples/ims/icscf/kamailio.cfg (4)
M misc/examples/ims/pcscf/README.md (2)
M misc/examples/ims/pcscf/kamailio.cfg (4)
M misc/examples/ims/pcscf/pcscf.cfg.sample (2)
M misc/examples/ims/pcscf/route/mo.cfg (2)
M misc/examples/ims/pcscf/sems/sems.conf (2)
M misc/examples/ims/scscf/README.md (2)
M misc/examples/ims/scscf/kamailio.cfg (6)
M misc/examples/ims/scscf/scscf.cfg.sample (2)
M misc/examples/kamailio/acc-mysql.cfg (2)
M misc/examples/kamailio/acc.cfg (2)
M misc/examples/kamailio/ctd.sh (4)
M misc/examples/kamailio/fork.cfg (2)
M misc/examples/kamailio/nathelper.cfg (2)
M misc/examples/kamailio/replicate.cfg (2)
M misc/examples/kamailio/web_im/README (2)
M misc/examples/kemi/kamailio-basic-kemi-ruby.rb (4)
M misc/examples/kemi/kamailio-basic-kemi.cfg (2)
M misc/examples/mixed/acc.cfg (2)
M misc/examples/mixed/kamailio-minimal-anycast.cfg (4)
M misc/examples/mixed/kamailio-minimal-proxy.cfg (4)
M misc/examples/mixed/nathelper.cfg (2)
M misc/examples/mixed/onr.cfg (4)
M misc/examples/mixed/replicate.cfg (2)
M misc/examples/mixed/sip-router.cfg.m4 (14)
M misc/examples/mixed/voicemail.cfg (2)
M misc/examples/obsoleted/imgw.cfg (4)
M misc/examples/obsoleted/secondary.cfg (2)
M misc/examples/obsoleted/sms.cfg (2)
M misc/examples/obsoleted/smsgw.cfg (2)
M misc/examples/obsoleted/test.cfg (2)
M misc/examples/obsoleted/tmtest.cfg (4)
M misc/examples/pkg/kamailio-basic.cfg (2)
M misc/examples/pkg/kamailio-oob.cfg (10)
M misc/examples/pkg/sip-router-basic.cfg (2)
M misc/examples/pkg/sip-router-oob.cfg (32)
M misc/examples/presence/full-no-failover.cfg (6)
M misc/examples/presence/no-db.cfg (4)
M misc/examples/scripts/ctd.sh (4)
M misc/examples/scripts/serresponse (8)
M misc/examples/scripts/web_im/README (2)
M misc/examples/webrtc/kamailio-default-websocket.cfg (4)
M misc/scripts/dbtext/ser_dbtext.sh (2)
M misc/scripts/mysql/sip-router_mysql.sh (4)
M misc/scripts/postgres/ser_postgres.sh (4)
M misc/scripts/serconf.sh (18)
M misc/tools/kemi/python_mock/README.md (4)
M misc/tools/kemi/python_mock/kemi_mock.py (2)
M misc/tools/pike_top/pike_top.c (12)
M misc/tools/profile/launch.sh (2)
M misc/tools/sipgrep/sipgrep (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3559.patchhttps://github.com/kamailio/kamailio/pull/3559.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3559
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3559(a)github.com>
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio…
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.o…
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
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
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### 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).
-->
```
in $mb from xlog shows path header as Path: <sip:xx.xxx.xx.xx
suffix header part is not getting appended creating malformed packet
```
#### SIP Traffic
<!--
REGISTER sip:xx.xxxx.xx.xxxx.xx SIP/2.0
From: "+914962207321"<sip:+91111111111@xx.xxxx.xx.xxxx.xx>;tag=786f78-a7504e5-13c4-590628-2b088c7a-590628
To: "+914962207321"<sip:+911111111111@xx.xxxx.xx.xxxx.xx>
P-Access-Network-Info: ADSL;ue-ip=10.117.x.xxx;ue-port=5060;transport=udp;nat=no
Call-ID: 790930-a7504e5-13c4-590628-aede83e-590628
CSeq: 2 REGISTER
Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK1af.96eb50fa0163b0488a72566a78846e9f.0
Via: SIP/2.0/UDP 10.117.x.xxx:5060;rport=5060;branch=z9hG4bK-590628-5bc00f10-3253a7b8
Max-Forwards: 69
Supported: 100rel,replaces,timer
Contact: <sip:+911111111111@10.117.x.xxx:5060>
Expires: 3600
Authorization: Digest username="+911111111111",realm="xx.xxxx.xx.xxxx.xx",nonce="eqvZt86/W0Pt/0bN+SZKLw==",uri="sip:xx.xxxx.xx.xxxx.xx",response="3213963a37bd59cf4b16a5d4080da415",algorithm=MD5,cnonce="5bc00f1a",qop=auth,nc=00000001
Content-Length: 0
Path: <sip:127.0.1.1
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
reverted to pre "use snprintf() instead of sprintf()" merge for patch.c it works fine
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.8.0-dev1 (x86_64/linux) 99eb1b
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, 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_BLOCKLIST, 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: 99eb1b
compiled on 10:38:25 Sep 8 2023 with gcc 11.4.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`)
-->
```
Ubuntu 22.04
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3560
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3560(a)github.com>
Module: kamailio
Branch: master
Commit: 06b1a35c727155974eb3c10971eaac2606b430ea
URL: https://github.com/kamailio/kamailio/commit/06b1a35c727155974eb3c10971eaac2…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2023-09-11T14:46:24+02:00
modules: readme files regenerated - textops ... [skip ci]
---
Modified: src/modules/textops/README
---
Diff: https://github.com/kamailio/kamailio/commit/06b1a35c727155974eb3c10971eaac2…
Patch: https://github.com/kamailio/kamailio/commit/06b1a35c727155974eb3c10971eaac2…
---
diff --git a/src/modules/textops/README b/src/modules/textops/README
index fa73e19ea32..3979dfdf185 100644
--- a/src/modules/textops/README
+++ b/src/modules/textops/README
@@ -104,6 +104,7 @@ Ovidiu Sas
4.59. get_body_part_raw(content_type, opv)
4.60. remove_body_part(content_type)
4.61. regex_substring(itext, regexp, mindex, mcount, dpv)
+ 4.62. via_param_rm(name, idx)
2. Developer Guide
@@ -175,6 +176,7 @@ Ovidiu Sas
1.60. get_body_part_raw usage
1.61. remove_body_part usage
1.62. _regex_substring usage
+ 1.63. via_param_rm usage
Chapter 1. Admin Guide
@@ -252,6 +254,7 @@ Chapter 1. Admin Guide
4.59. get_body_part_raw(content_type, opv)
4.60. remove_body_part(content_type)
4.61. regex_substring(itext, regexp, mindex, mcount, dpv)
+ 4.62. via_param_rm(name, idx)
1. Overview
@@ -355,6 +358,7 @@ From: medabeda
4.59. get_body_part_raw(content_type, opv)
4.60. remove_body_part(content_type)
4.61. regex_substring(itext, regexp, mindex, mcount, dpv)
+ 4.62. via_param_rm(name, idx)
4.1. search(re)
@@ -1621,6 +1625,25 @@ msg_apply_changes();
----
...
+4.62. via_param_rm(name, idx)
+
+ Remove parameter matching by name from Via body at the specified index.
+ The index starts from 0 (first Via body). Negative index counts from
+ the end of the list for Via header bodies (-1 is the last Via body).
+
+ Meaning of the parameters is as follows:
+ * name - name of the parameter
+ * idx - index of the Via body.
+
+ The parameters can also be variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.63. via_param_rm usage
+...
+via_param_rm("p1", "0");
+...
+
Chapter 2. Developer Guide
Table of Contents