[sr-dev] git:master:839cf89b: presentity: don't update terminated presentity entries in the database

Phil Lavin phil.lavin at synety.com
Mon Aug 22 09:42:14 CEST 2016


Module: kamailio
Branch: master
Commit: 839cf89b02f8817156487a960ff62013e3cde530
URL: https://github.com/kamailio/kamailio/commit/839cf89b02f8817156487a960ff62013e3cde530

Author: Phil Lavin <phil.lavin at synety.com>
Committer: Phil Lavin <phil.lavin at synety.com>
Date: 2016-07-27T15:04:26+01:00

presentity: don't update terminated presentity entries in the database

- Fixes a race condition caused by, for example, the call being answered
  at almost exactly the same time as the caller cancels. This causes
  a terminated state to change back to completed. The dialog is then
  removed from the database and the presentity entry stays in place
  until it expires.
- This fix explicitly prevents terminated entries being updated as the
  state machine in RFC 4235 prohibits this behaviour.

---

Modified: modules/presence/presentity.c

---

Diff:  https://github.com/kamailio/kamailio/commit/839cf89b02f8817156487a960ff62013e3cde530.diff
Patch: https://github.com/kamailio/kamailio/commit/839cf89b02f8817156487a960ff62013e3cde530.patch




More information about the sr-dev mailing list