In the contact-expired event route I want to check if the expired AOR is registered elsewhere, by checking replicated location tables like "location-peer". Using the registered("location-peer", "<aor>") function causes Kamailio to go to sleep and not respond to rpc commands.
--- 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/577
What is the db_mode you tried with?
--- 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/577#issuecomment-214175507
No DB at all
--- 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/577#issuecomment-217357140
Using another function that tries to access the same location record that expired is trying to lock same slot in usrloc internal hash table. The solution would be implementing re-entrant locks there. I will try to do it when I get the first chance.
--- 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/577#issuecomment-218105874
I pushed a commit to master to make the locks in usrloc reentrant. No testing for reported case, would be appreciated if you can give it a try.
The changes are to a critical module, so we may need to live with this limitation until 5.0.
--- 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/577#issuecomment-224383114
Closed #577.
--- 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/577#event-704906514
Closing this item as a patch was fixed a while ago. If still an issue there, re-open or create a new item.
--- 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/577#issuecomment-228739760