after handle_subscribe there is no safe way in script to obtain the presently because re-subscription RURI is ip of kamailio and To-Uri may not contain the presently.
$subs(uri) will allow access to this value
added as a pv to allow extension to get more properties from subscription You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/118
-- Commit Summary --
* presence: add $subs pv for subscription access
-- File Changes --
M modules/presence/doc/presence_admin.xml (34) M modules/presence/presence.c (7) M modules/presence/presence.h (3) M modules/presence/subscribe.c (51)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/118.patch https://github.com/kamailio/kamailio/pull/118.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/118