This module publishes information about "reg"-events according to to RFC 3680. This can be used distribute the registration-info status to the subscribed watchers. This module "PUBLISH"es information when a new user registers at this server (e.g. when "save()" is called) to users, which have subscribed for the reg-info for this user. This module can "SUBSCRIBE" for information at another server, so it will receive "NOTIFY"-requests, when the information about a user changes. And finally, it can process received "NOTIFY" requests and it will update the local registry accordingly. Use cases for this might be: * Keeping different Servers in Sync regarding the location database * Get notified, when a user registers: A presence-server, which handles offline message storage for an account, would get notified, when the user comes online. * A client could subscribe to its own registration-status, so he would get notified as soon as his account gets administratively unregistered. * ...
| Parámetro | Tipo | Descripción |
|---|---|---|
| default_domain | str | 3.2. publish_reginfo(int) 3.3. outbound_proxy(str) 3.4. server_address(str) |
| publish_reginfo | int | 3.3. outbound_proxy(str) 3.4. server_address(str) |
| outbound_proxy | str | 3.4. server_address(str) |
| server_address | str | 3.1. default_domain(str) |
| default_domain | str | The default domain for the registered users to be used when constructing the uri for the registrar callback. |
| publish_reginfo | int | Whether or not to generate PUBLISH requests. |
| outbound_proxy | str | The outbound_proxy uri to be used when sending Subscribe and Publish requests. |
| server_address | str | The IP address of the server. |
4.2. reginfo_subscribe(uri[, expires]) 4.3. reginfo_disable_publish()
4.3. reginfo_disable_publish()
4.1. reginfo_handle_notify(uldomain)
This function processes received "NOTIFY"-requests and updates the local registry accordingly.
This function will subscribe for reginfo-information at the given server URI.
This function disables sending the PUBLISH request in the registrar callback invocation, for the current message only.
Copyright © 2011 Carsten Bock, carsten@ng-voice.com,