Module: kamailio
Branch: master
Commit: 77840e465e1e074ede44fbc262faa850e1c4f862
URL: https://github.com/kamailio/kamailio/commit/77840e465e1e074ede44fbc262faa85…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-10-27T10:16:43+02:00
modules: readme files regenerated - app_python3 ... [skip ci]
---
Modified: src/modules/app_python3/README
---
Diff: https://github.com/kamailio/kamailio/commit/77840e465e1e074ede44fbc262faa85…
Patch: https://github.com/kamailio/kamailio/commit/77840e465e1e074ede44fbc262faa85…
---
diff --git a/src/modules/app_python3/README b/src/modules/app_python3/README
index 49bc577444..f59291a078 100644
--- a/src/modules/app_python3/README
+++ b/src/modules/app_python3/README
@@ -87,6 +87,11 @@ Chapter 1. Admin Guide
module, look at the files inside the source tree located at
'modules/app_python3/python_examples/'.
+ Note: if symbols exported to KEMI (module or function names) conflict
+ with Python's reserved keywords, use the 'getattr()' function or the
+ '__dict__' attribute for 'KSR' (e.g.,
+ 'KSR.__dict__["async"].task_route("myroute")').
+
2. Dependencies
2.1. Kamailio Modules
Module: kamailio
Branch: master
Commit: 0d6d434a92ae69cf1e503f07ffa6f46a9948593e
URL: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-10-27T10:07:36+02:00
app_python3: note about kemi symbols and python reserved words
---
Modified: src/modules/app_python3/doc/app_python3_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46…
Patch: https://github.com/kamailio/kamailio/commit/0d6d434a92ae69cf1e503f07ffa6f46…
---
diff --git a/src/modules/app_python3/doc/app_python3_admin.xml b/src/modules/app_python3/doc/app_python3_admin.xml
index c2648c48c82..0f4c63ffd04 100644
--- a/src/modules/app_python3/doc/app_python3_admin.xml
+++ b/src/modules/app_python3/doc/app_python3_admin.xml
@@ -34,6 +34,11 @@
this module, look at the files inside the source tree located at
'modules/app_python3/python_examples/'.
</para>
+ <para>
+ Note: if symbols exported to KEMI (module or function names) conflict
+ with Python's reserved keywords, use the 'getattr()' function or the
+ '__dict__' attribute for 'KSR' (e.g., 'KSR.__dict__["async"].task_route("myroute")').
+ </para>
</section>
<section>
<title>Dependencies</title>
### Description
Using the KEMI async module in Python is not possible, since the `async` word is a reserved word in Python3. This leads to a syntax error.
#### Reproduction
```python
import KSR
KSR.async.task_route("")
```
### Possible Solutions
The below code works, but not sure if this is a right approach to this issue.
`KSR.__dict__["async"].task_route("my_route")`
### Additional Information
```
version: kamailio 5.6.1 (x86_64/linux) b36a13
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_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: b36a13
compiled on 10:06:47 Oct 25 2022 with gcc 10.2.1
```
```
Linux b0fe2a764c5e 5.10.124-linuxkit #1 SMP Thu Jun 30 08:19:10 UTC 2022 x86_64 GNU/Linux
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3272
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3272(a)github.com>
Hi,
maybe im wrong, but it seems the sipt module is not implemented in KEMI Framework.
Is it planned? :)
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3264
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3264(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 -->
- [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 -->
Adding add_uri_param method to kemi
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3268
-- Commit Summary --
* siputils: adding add_uri_param to kemi
-- File Changes --
M src/modules/siputils/siputils.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3268.patchhttps://github.com/kamailio/kamailio/pull/3268.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3268
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3268(a)github.com>