| 40 | |
| 41 | == Changing Account's Presence Status == |
| 42 | |
| 43 | The [http://www.pjsip.org/python/pjsua.htm#Account] class provides two methods to change account's presence status: |
| 44 | * [http://www.pjsip.org/python/pjsua.htm#Account-set_basic_status set_basic_status()] can be used to set basic account's presence status (i.e. available or not available). |
| 45 | * [http://www.pjsip.org/python/pjsua.htm#Account-set_presence_status set_presence_status()] can be used to set both the basic presence status and some extended information (e.g. busy, away, on the phone, etc.). |
| 46 | |
| 47 | When the presence status is changed, the account will publish the new status to all of its presence subscriber, either with PUBLISH request or SUBSCRIBE request, or both, depending on account configuration. |
| 48 | |
| 49 | |
| 50 | |