<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing
C code, ask on sr-dev mailing list
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
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
Right Now, There is no way to pass the parameter to event_callback function to be executed by KEMI Interpreter.
This is required when we have to pass call_uuid for async call without suspending transaction. In callback we don't have anything refer to the previous transaction.
### 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).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
We need to introduce parameter to event_callback with ;
Initially let's keep it to only single parameter.
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
root@ip-172-31-3-45:~# kamailio -v
version: kamailio 5.1.3 (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.
id: unknown
compiled on 15:16:50 Apr 24 2018 with gcc 4.8.4
```
* **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 `uname -a`)
-->
```
root@ip-172-31-3-45:~# uname -a
Linux ip-172-31-3-45 3.13.0-143-generic #192-Ubuntu SMP Tue Feb 27 10:45:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
```
--
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/1627
when i run command "kamailio -c kamailio.cfg" I get this error..
loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/
0(12737) ERROR: <core> [sr_module.c:576]: load_module(): could not open module </usr/lib/x86_64-linux-gnu/kamailio/modules/websocket.so>: /usr/lib/x86_64-linux-gnu/kamailio/modules/websocket.so: undefined symbol: SHA1
I tried reinstalling websocket modules but its not working.
--
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/1634
Module: kamailio
Branch: master
Commit: be55865fb2601cc9141d6f3fb5ad0affd7507102
URL: https://github.com/kamailio/kamailio/commit/be55865fb2601cc9141d6f3fb5ad0af…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-09-04T11:31:32+02:00
modules: readme files regenerated - htable ... [skip ci]
---
Modified: src/modules/htable/README
---
Diff: https://github.com/kamailio/kamailio/commit/be55865fb2601cc9141d6f3fb5ad0af…
Patch: https://github.com/kamailio/kamailio/commit/be55865fb2601cc9141d6f3fb5ad0af…
---
diff --git a/src/modules/htable/README b/src/modules/htable/README
index 2d393d8761..1fd1fbdf5b 100644
--- a/src/modules/htable/README
+++ b/src/modules/htable/README
@@ -68,6 +68,8 @@ Ovidiu Sas
4.9. sht_iterator_start(iname, hname)
4.10. sht_iterator_end(iname)
4.11. sht_iterator_next(iname)
+ 4.12. sht_has_name(htable, op, mval)
+ 4.13. sht_has_str_value(htable, op, mval)
5. Exported pseudo-variables
6. RPC Commands
@@ -117,6 +119,8 @@ Ovidiu Sas
1.27. sht_iterator_start usage
1.28. sht_iterator_end usage
1.29. sht_iterator_next usage
+ 1.30. sht_has_name usage
+ 1.31. sht_has_name usage
Chapter 1. Admin Guide
@@ -160,6 +164,8 @@ Chapter 1. Admin Guide
4.9. sht_iterator_start(iname, hname)
4.10. sht_iterator_end(iname)
4.11. sht_iterator_next(iname)
+ 4.12. sht_has_name(htable, op, mval)
+ 4.13. sht_has_str_value(htable, op, mval)
5. Exported pseudo-variables
6. RPC Commands
@@ -675,6 +681,8 @@ modparam("htable", "event_callback_mode", 1)
4.9. sht_iterator_start(iname, hname)
4.10. sht_iterator_end(iname)
4.11. sht_iterator_next(iname)
+ 4.12. sht_has_name(htable, op, mval)
+ 4.13. sht_has_str_value(htable, op, mval)
4.1. sht_print()
@@ -852,6 +860,50 @@ sht_iterator_end("i1");
sht_iterator_end("i1");
...
+4.12. sht_has_name(htable, op, mval)
+
+ Return greater than 0 (true) if the htable has an item that matches the
+ name against the mval parameter.
+
+ The op parameter can be:
+ * eq - match the val parameter as string equal expression.
+ * ne - match the val parameter as string not-equal expression.
+ * re - match the val parameter as regular expression.
+ * sw - match the val parameter as 'starts with' expression.
+
+ All parameters can be static strings or contain variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.30. sht_has_name usage
+...
+if(sht_has_name("ha", "eq", "alice")) {
+ ...
+}
+...
+
+4.13. sht_has_str_value(htable, op, mval)
+
+ Return greater than 0 (true) if the htable has an item that matches the
+ string value against the mval parameter.
+
+ The op parameter can be:
+ * eq - match the val parameter as string equal expression.
+ * ne - match the val parameter as string not-equal expression.
+ * re - match the val parameter as regular expression.
+ * sw - match the val parameter as 'starts with' expression.
+
+ All parameters can be static strings or contain variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.31. sht_has_name usage
+...
+if(sht_has_str_value("ha", "eq", "alice")) {
+ ...
+}
+...
+
5. Exported pseudo-variables
* $sht(htable=>key)