Changes between Version 1 and Version 2 of Python_SIP/IM


Ignore:
Timestamp:
Jul 23, 2008 10:04:57 PM (16 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/IM

    v1 v2  
    1 = SIP Instant Messaging - pjsua Python Module = 
     1= SIP Instant Messaging = 
    22 
    33[[TracNav(Python_SIP/TOC)]] 
     
    1414 
    1515The transmission status of outgoing instant messages is reported in [http://www.pjsip.org/python/pjsua.htm#BuddyCallback-on_pager_status on_pager_status()] method of [http://www.pjsip.org/python/pjsua.htm#BuddyCallback BuddyCallback] class, or [http://www.pjsip.org/python/pjsua.htm#CallCallback-on_pager_status on_pager_status()] of [http://www.pjsip.org/python/pjsua.htm#CallCallback CallCallback] class, depending on how the instant message was sent. 
     16 
     17[[BR]] 
     18== Receiving IM == 
     19 
     20There are three ways to receive incoming instant messages (yes unfortunately it's not that straightforward), depending on how and who sends the instant message: 
     21 * if the IM was sent within call, then it will be received in [http://www.pjsip.org/python/pjsua.htm#CallCallback-on_pager on_pager()] method of [http://www.pjsip.org/python/pjsua.htm#CallCallback CallCallback object] 
     22 * if the IM was sent '''not''' within the call and the sender is in the our buddy list, then it will be received in [http://www.pjsip.org/python/pjsua.htm#BuddyCallback-on_pager on_pager()] method of [http://www.pjsip.org/python/pjsua.htm#BuddyCallback BuddyCallback] object. 
     23 * failing all that, the IM will be reported in [http://www.pjsip.org/python/pjsua.htm#AccountCallback-on_pager on_pager()] method of [http://www.pjsip.org/python/pjsua.htm#AccountCallback AccountCallback]. 
     24 
     25Incoming typing indications will be received in similar way, in ''on_typing()'' callback. 
     26 
     27