#include <account.hpp>
Account presence config. This will be specified in AccountConfig.
◆ readObject()
virtual void pj::AccountPresConfig::readObject |
( |
const ContainerNode & |
node | ) |
|
throw | ( | Error |
| ) | | |
|
virtual |
Read this object from a container node.
- Parameters
-
node | Container to read values from. |
Implements pj::PersistentObject.
◆ writeObject()
virtual void pj::AccountPresConfig::writeObject |
( |
ContainerNode & |
node | ) |
const |
throw | ( | Error |
| ) | | |
|
virtual |
Write this object to a container node.
- Parameters
-
node | Container to write values to. |
Implements pj::PersistentObject.
◆ headers
The optional custom SIP headers to be put in the presence subscription request.
◆ publishEnabled
bool pj::AccountPresConfig::publishEnabled |
If this flag is set, the presence information of this account will be PUBLISH-ed to the server where the account belongs.
Default: PJ_FALSE
◆ publishQueue
bool pj::AccountPresConfig::publishQueue |
Specify whether the client publication session should queue the PUBLISH request should there be another PUBLISH transaction still pending. If this is set to false, the client will return error on the PUBLISH request if there is another PUBLISH transaction still in progress.
Default: PJSIP_PUBLISHC_QUEUE_REQUEST (TRUE)
◆ publishShutdownWaitMsec
unsigned pj::AccountPresConfig::publishShutdownWaitMsec |
Maximum time to wait for unpublication transaction(s) to complete during shutdown process, before sending unregistration. The library tries to wait for the unpublication (un-PUBLISH) to complete before sending REGISTER request to unregister the account, during library shutdown process. If the value is set too short, it is possible that the unregistration is sent before unpublication completes, causing unpublication request to fail.
Value is in milliseconds.
Default: PJSUA_UNPUBLISH_MAX_WAIT_TIME_MSEC (2000)
◆ pidfTupleId
string pj::AccountPresConfig::pidfTupleId |
Optional PIDF tuple ID for outgoing PUBLISH and NOTIFY. If this value is not specified, a random string will be used.
The documentation for this struct was generated from the following file: