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
This can be merged.
Having references to pseudo-variables in there README/docs of the module is ok, but they must be documented in the wiki, where is the main reference documentation for variables. I added it for this pull request at:
* http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables?&#presence_...
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/118#issuecomment-87706906
Merged #118.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/118#event-268562074
@miconda thank you. for future reference, what is the proper flow to issue a pull request for documenting pseudo-variables ?
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/118#issuecomment-87708379
The wiki is open for anyone, not only for developers, as we wanted the community to contribute with more examples, extra text, etc. without waiting for devs.
It requires to make an account on the wiki, given that we faced a lot of spambots in the past. But then, just edit the pages and add what you want/need. If there is something to discuss/clarify then email to sr-dev, otherwise nothing required.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/118#issuecomment-87710453