hb9eue created an issue (kamailio/kamailio#4760)
Hi @miconda and @abalashov
Issue as described in [SR-Users]: All AVP get deleted when a htable entry is
added which is to be replicated to a peer via dmq. When dmqreplicate is set to
0 the issue does not happen. The issue is present no matter if the DMQ peer is
reachable or not.
Running Kamailio 6.1.2 from the Kamailo Repo for Ubuntu Noble.
Issue was not observed with Kamailio 5.8 not tested with 6.0.
Config to reproduce:
```
modparam("htable", "htable", "custprof=>size=8;autoexpire=3600;dmqreplicate=1")
xlog("L_INFO", "0 testing is not yet set, value: $avp(testing)
\n");
$avp(testing) = "I am a value";
xlog("L_INFO", "1 testing has value: $avp(testing) \n");
avp_print();
$sht(custprof=>"HTKEY") = "HTVALUE";
xlog("L_INFO", "2 testing has value: $avp(testing) \n");
avp_print();
xlog("L_INFO", "After avp_print\n");
```
Log Output showing Issue:
```
517228636 INVITE]<script>: 0 testing is not yet set, value: <null>
517228636 INVITE]<script>: 1 testing has value: I am a value
517228636 INVITE]avpops [avpops_impl.c:1333]: ops_print_avp():
p=0x7e27041e94b0, flags=0x0113
517228636 INVITE]avpops [avpops_impl.c:1336]: ops_print_avp():
#011#011#011name=<testing>
517228636 INVITE]avpops [avpops_impl.c:1342]: ops_print_avp():
#011#011#011val_str=<I am a value / 12>
517228636 INVITE]avpops [avpops_impl.c:1333]: ops_print_avp():
p=0x7e27041e7d20, flags=0x0113
[...]
517228636 INVITE]<script>: 2 testing has value: <null>
517228636 INVITE]<script>: After avp_print
```
After: $sht(custprof=>"HTKEY") = "HTVALUE"; there are not a single AVP
remaining to be printed.
debug level 3 shows xavp_destroy_list() being called a lot, possibly for each
AVP?
-Benoît-
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4760
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!