Changeset 2976 for pjproject/trunk/pjsip-apps/src/python/pjsua.py
- Timestamp:
- Oct 29, 2009 8:16:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/pjsua.py
r2910 r2976 994 994 pass 995 995 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 996 1009 997 1010 … … 2114 2127 py_ua_cfg.cb.on_pager_status = _cb_on_pager_status 2115 2128 py_ua_cfg.cb.on_typing = _cb_on_typing 2129 py_ua_cfg.cb.on_mwi_info = _cb_on_mwi_info; 2116 2130 2117 2131 err = _pjsua.init(py_ua_cfg, log_cfg._cvt_to_pjsua(), … … 2764 2778 acc._cb.on_typing(from_uri, contact, is_typing) 2765 2779 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 2766 2785 def _cb_on_buddy_state(self, buddy_id): 2767 2786 buddy = self._lookup_buddy(buddy_id) … … 2817 2836 _lib._cb_on_typing(call_id, from_uri, to, contact, is_typing, acc_id) 2818 2837 2838 def _cb_on_mwi_info(acc_id, body): 2839 _lib._cb_on_mwi_info(acc_id, body) 2819 2840 2820 2841 # Worker thread
Note: See TracChangeset
for help on using the changeset viewer.