Module: kamailio
Branch: master
Commit: 44cd10a5fa5f51f079b0d47a544e8d0bf4eb43a5
URL: https://github.com/kamailio/kamailio/commit/44cd10a5fa5f51f079b0d47a544e8d0…
Author: Tsvetomir Dimitrov <tsv.dimitrov(a)gmail.com>
Committer: Tsvetomir Dimitrov <tsv.dimitrov(a)gmail.com>
Date: 2019-02-26T11:14:08Z
ims_ipsec_pcscf: IPv6 support
The parameter ipsec_listen_addr of the module can be set to either IPv4
or IPv6 address. All xfrm related code is reworked to handle both type
of addresses.
Note: At the moment it is not possible to use both IPv4 and IPv6 at the
same time for IPSec. The implementation allows it, but additional config
parameters should be added in order to make this work.
---
Modified: src/modules/ims_ipsec_pcscf/cmd.c
Modified: src/modules/ims_ipsec_pcscf/ipsec.c
Modified: src/modules/ims_ipsec_pcscf/ipsec.h
---
Diff: https://github.com/kamailio/kamailio/commit/44cd10a5fa5f51f079b0d47a544e8d0…
Patch: https://github.com/kamailio/kamailio/commit/44cd10a5fa5f51f079b0d47a544e8d0…
### Description
If var is encoded with `base58`, it can't be restored via `s.decode.base58`
#### Reproduction
```
request_route {
route(TEST_BASE58);
}
route[TEST_BASE58] {
$var(test_var) = "This is a text";
$var(test_var_encode_base58) = $(var(test_var){s.encode.base58});
$var(test_var_decode_base58) = $(var(test_var_encode_base58){s.decode.base58});
xlog("L_ALERT", "[BASE58 TEST] $var(test_var) -> $var(test_var_encode_base58) -> $var(test_var_decode_base58) \n");
}
```
#### 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).
-->
2 messages just to show, that var is not restored
```
44(60) ALERT: <script>: [BASE58 TEST] This is a text -> Y2oxCuAXwVJduYPTnFd -> 14(30) ALERT: <script>: [BASE58 TEST] This is a text -> Y2oxCuAXwVJduYPTnFd ->
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.2.0 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, 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_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 5.3.1
```
* **Operating System**:
```
4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:45:01 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/1868