akabihno created an issue (kamailio/kamailio#4354)

<!--
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.org/

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.org/

Please try to fill this template as much as possible for any issue. It helps 
the developers to troubleshoot the issue.

Note that an issue report may be closed automatically after about 2 months
if there is no interest from developers or community users on pursuing it, being
considered expired. In such case, it can be reopened by writing a comment that 
includes
the token `/notexpired`. About two weeks before considered expired, the issue is
marked with the label `stale`, trying to notify the submitter and everyone else
that might be interested in it. To remove the label `stale`, write a comment 
that
includes the token `/notstale`. Also, any comment postpone the `expire` 
timeline,
being considered that there is interest in pursuing 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

#### Scenario
Running kamailio 6.0.2 with rtpengine module.

At some point rtpengine with address 10.1.2.3 becomes temporary unavailable, 
due to network failure:
ERROR: {1 2 BYE f861be32-c8a2-4d59-bb26-e2c6fe4f8dbc} rtpengine 
[rtpengine.c:4038]: send_rtpp_command(): timeout waiting reply for command 
"delete" from RTPEngine <udp:10.1.2.3:22222>

After rtpengine with address 10.1.2.3 becomes available again, executing 
```kamcmd rtpengine.show udp:10.1.2.3:22222``` shows that **active** for it is 
still **0** for indefinite time
{
  url: udp:10.1.2.3:22222
  set: 1
  index: 10
  weight: 999999
  disabled: 0
  active: 0
  recheck_ticks: 0
}

No new calls are sent to inactive rtpengine

### Troubleshooting

#### Reproduction

Issue can be reproduced as follows:
1. Stop rtpengine.service on 10.1.2.3
2. Wait for message "ERROR: rtpengine [rtpengine.c:4003]: send_rtpp_command(): 
can't send command "ping" to RTPEngine <udp:10.1.2.3:22222> (Connection 
refused:111)"
3. Start rtpengine.service on 10.1.2.3
4. Execute ```kamcmd rtpengine.show udp:10.1.2.3:22222``` to check that 
**active** will remain **0** indefinitely

Issue reproduces on kamailio 6.0.2 and not reproducing on kamailio 5.7.1

#### Debugging Data

#### Log Messages

```
ERROR: {1 2 BYE f861be32-c8a2-4d59-bb26-e2c6fe4f8dbc} rtpengine 
[rtpengine.c:4038]: send_rtpp_command(): timeout waiting reply for command 
"delete" from RTPEngine <udp:10.1.2.3:22222>
```

### Possible Solutions

#### Workaround
After executing ```kamcmd rtpengine.ping udp:10.1.2.3:22222``` **active** is 
set to **1** 

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`

```
version: kamailio 6.0.2 (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, 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_SEND_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 on 18:13:11 Jun 25 2025 with gcc 14.2.0
```

* **Operating System**:
```
Running ghcr.io/kamailio/kamailio-ci:6.0.2-alpine in docker as systemd service

Host system:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial

uname -a
Linux ap07prvp.dyninno.net 4.4.0-1052-aws #61-Ubuntu SMP Mon Feb 12 23:05:58 
UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

docker -v
Docker version 18.06.3-ce, build d7080c1
```

* **rtpengine module config parameters**:
```
modparam("rtpengine", "db_url", DBURL)
modparam("rtpengine", "extra_id_pv", "$avp(extra_id)")
modparam("rtpengine", "setid_avp", "$avp(setid)")
modparam("rtpengine", "rtpengine_disable_tout", 10)
modparam("rtpengine", "aggressive_redetection", 0)
modparam("rtpengine", "rtpengine_allow_op", 2)
modparam("rtpengine", "hash_algo", 2)
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4354
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to