Changeset 5808 for pjproject/trunk/pjsip-apps/src/python/pjsua.py
- Timestamp:
- Jun 21, 2018 4:15:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/python/pjsua.py
r5448 r5808 986 986 987 987 Application should implement one of on_incoming_call() or 988 988 on_incoming_call2(), otherwise, the default behavior is to 989 989 reject the call with default status code. Note that if both are 990 990 implemented, only on_incoming_call2() will be called. 991 991 992 992 Keyword arguments: … … 999 999 1000 1000 Application should implement one of on_incoming_call() or 1001 1001 on_incoming_call2(), otherwise, the default behavior is to 1002 1002 reject the call with default status code. Note that if both are 1003 1003 implemented, only on_incoming_call2() will be called. 1004 1004 1005 1005 Keyword arguments: … … 1008 1008 """ 1009 1009 call.hangup() 1010 1010 1011 1011 def on_incoming_subscribe(self, buddy, from_uri, contact_uri, pres_obj): 1012 1012 """Notification when incoming SUBSCRIBE request is received. … … 1083 1083 """ 1084 1084 Notification about change in Message Summary / Message Waiting 1085 1086 1085 Indication (RFC 3842) status. MWI subscription must be enabled 1086 in the account config to receive this notification. 1087 1087 1088 1088 Keyword arguments: … … 1795 1795 1796 1796 def send_pager(self, text, im_id=0, content_type="text/plain", 1797 1797 hdr_list=None): 1798 1798 """Send instant message inside a call. 1799 1799 … … 2136 2136 self._lck = lck 2137 2137 self._lck.acquire() 2138 2138 #_Trace(('lock acquired',)) 2139 2139 2140 2140 def __del__(self): 2141 2141 try: 2142 2142 self._lck.release() 2143 2143 #_Trace(('lock released',)) 2144 2144 except: 2145 2145 #_Trace(('lock release error',)) 2146 2146 pass 2147 2147 … … 2213 2213 py_ua_cfg.cb.on_pager_status = _cb_on_pager_status 2214 2214 py_ua_cfg.cb.on_typing = _cb_on_typing 2215 2215 py_ua_cfg.cb.on_mwi_info = _cb_on_mwi_info; 2216 2216 2217 2217 err = _pjsua.init(py_ua_cfg, log_cfg._cvt_to_pjsua(), … … 2261 2261 2262 2262 def thread_register(self, name): 2263 2264 2265 2266 The call must be made from the new thread before calling any pjlib 2267 2268 2269 2270 name-- Non descriptive name for the thread2271 2272 2273 2274 2263 """Register external threads (threads that are not created by PJSIP, 2264 such as threads that are created by Python API) to PJSIP. 2265 2266 The call must be made from the new thread before calling any pjlib 2267 functions. 2268 2269 Keyword arguments: 2270 name -- Non descriptive name for the thread 2271 """ 2272 dummy = 1 2273 err = _pjsua.thread_register(name, dummy) 2274 self._err_check("thread_register()", self, err) 2275 2275 2276 2276 def verify_sip_url(self, sip_url): … … 2949 2949 while _lib and _lib._quit == 0: 2950 2950 _lib.handle_events(1) 2951 2951 time.sleep(0.050) 2952 2952 if _lib: 2953 2953 _lib._quit = 2
Note: See TracChangeset
for help on using the changeset viewer.