Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
presence: functions to keep presentity records in memory
- work in progress to have in-memory only records, without database storage
- Loading branch information
f917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is cool! much needed improvement. As always, great work @miconda !
f917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eschmidbauer - can you help testing somehow? Not having the possibility to test properly here, working mainly from home these days I can't use many devices. First would be to make sure existing your existing config is still working fine. I tried to be very non-intrusive as much as possible in the old code and operation mode.
Then, to test in-memory only presentity records, set:
You have to use latest master branch. I did basic tests with baresip for handling the PUBLISH requests and I could see they are in database presentity table if publ_cache!=2 as well as in memory via rpc command if publ_cache==2.
You can set also subscription records in memory with:
f917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes- i'll see what i can do and report back to you.
f917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getting coredump and seeing this in log:
f917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here is a trace from the coredump:
f917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update, if i set
modparam("presence", "subs_db_mode", 3)
there is no segfaultf917318
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eschmidbauer I created a dedicated issue on tracker for troubleshooting related issues to in-memory presentity records, let's continue there:
Attach there the output for
bt full
taken from core file with gdb. Also, add the parameters you set for presence* modules.