Changes between Version 2 and Version 3 of Python_SIP/Presence


Ignore:
Timestamp:
Jul 23, 2008 9:22:43 PM (16 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Presence

    v2 v3  
    3838This can be done by implementing the [http://www.pjsip.org/python/pjsua.htm#AccountCallback-on_incoming_subscribe on_incoming_subscribe()] method of the [http://www.pjsip.org/python/pjsua.htm#AccountCallback AccountCallback] class.  
    3939 
     40 
     41== Changing Account's Presence Status == 
     42 
     43The [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 
     47When 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