Ignore:
Timestamp:
Oct 29, 2009 8:16:46 AM (14 years ago)
Author:
bennylp
Message:

More ticket #982: added MWI support for Python

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/pjsua.py

    r2910 r2976  
    994994        pass 
    995995 
     996    def on_mwi_info(self, body): 
     997        """ 
     998        Notification about change in Message Summary / Message Waiting 
     999        Indication (RFC 3842) status. MWI subscription must be enabled 
     1000        in the account config to receive this notification. 
     1001 
     1002        Keyword arguments: 
     1003        body      -- String containing message body as received in the 
     1004                     NOTIFY request. 
     1005 
     1006        """ 
     1007        pass 
     1008 
    9961009 
    9971010 
     
    21142127        py_ua_cfg.cb.on_pager_status = _cb_on_pager_status 
    21152128        py_ua_cfg.cb.on_typing = _cb_on_typing 
     2129        py_ua_cfg.cb.on_mwi_info = _cb_on_mwi_info; 
    21162130 
    21172131        err = _pjsua.init(py_ua_cfg, log_cfg._cvt_to_pjsua(),  
     
    27642778                acc._cb.on_typing(from_uri, contact, is_typing) 
    27652779 
     2780    def _cb_on_mwi_info(self, acc_id, body): 
     2781        acc = self._lookup_account(acc_id) 
     2782        if acc: 
     2783            return acc._cb.on_mwi_info(body) 
     2784 
    27662785    def _cb_on_buddy_state(self, buddy_id): 
    27672786        buddy = self._lookup_buddy(buddy_id) 
     
    28172836    _lib._cb_on_typing(call_id, from_uri, to, contact, is_typing, acc_id) 
    28182837 
     2838def _cb_on_mwi_info(acc_id, body): 
     2839    _lib._cb_on_mwi_info(acc_id, body) 
    28192840 
    28202841# Worker thread 
Note: See TracChangeset for help on using the changeset viewer.