[sr-dev] git:master:9f92b33c: presence: option to set priority for presentity documents

Daniel-Constantin Mierla miconda at gmail.com
Thu Mar 26 21:20:09 CET 2015


Module: kamailio
Branch: master
Commit: 9f92b33c5eb35c32e5d07789bac86e850dfd0d83
URL: https://github.com/kamailio/kamailio/commit/9f92b33c5eb35c32e5d07789bac86e850dfd0d83

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-03-26T21:19:49+01:00

presence: option to set priority for presentity documents

- xavp_cfg - new parameter to specify the name of xavp use to store
  attributes for publish processing
- priority can be set inside xavp_cfg with $xavp(xavp_cfg=>priority)
- priority is stored in a new column inside database table presentity
  for each publish that has the xavp set
- retrieve_order - new parameter to specify the order to retrieve the
  records from database. Default value is 0 (retrieve by received_time
  like so far). If set to 1, retrieve by priority value
- if xavp_cfg parameter is set but priority field inside it is not, then
  inside the database is stored a value based on timestamp so the newest
  records will have a higher value, preserving the old behaviour even
  the retrieve_order=1

---

Modified: modules/presence/notify.c
Modified: modules/presence/notify.h
Modified: modules/presence/presence.c
Modified: modules/presence/presence.h
Modified: modules/presence/presentity.c
Modified: modules/presence/presentity.h

---

Diff:  https://github.com/kamailio/kamailio/commit/9f92b33c5eb35c32e5d07789bac86e850dfd0d83.diff
Patch: https://github.com/kamailio/kamailio/commit/9f92b33c5eb35c32e5d07789bac86e850dfd0d83.patch




More information about the sr-dev mailing list