Changeset 5808


Ignore:
Timestamp:
Jun 21, 2018 4:15:24 AM (6 years ago)
Author:
nanang
Message:

Misc (re #2059): Fixed pjsua.py: inconsistent use of tabs and spaces in indentation (thanks Alexander Traud for the patch).

File:
1 edited

Legend:

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

    r5448 r5808  
    986986 
    987987        Application should implement one of on_incoming_call() or 
    988         on_incoming_call2(), otherwise, the default behavior is to 
     988        on_incoming_call2(), otherwise, the default behavior is to 
    989989        reject the call with default status code. Note that if both are 
    990         implemented, only on_incoming_call2() will be called. 
     990        implemented, only on_incoming_call2() will be called. 
    991991 
    992992        Keyword arguments: 
     
    999999 
    10001000        Application should implement one of on_incoming_call() or 
    1001         on_incoming_call2(), otherwise, the default behavior is to 
     1001        on_incoming_call2(), otherwise, the default behavior is to 
    10021002        reject the call with default status code. Note that if both are 
    1003         implemented, only on_incoming_call2() will be called. 
     1003        implemented, only on_incoming_call2() will be called. 
    10041004 
    10051005        Keyword arguments: 
     
    10081008        """ 
    10091009        call.hangup() 
    1010          
     1010 
    10111011    def on_incoming_subscribe(self, buddy, from_uri, contact_uri, pres_obj): 
    10121012        """Notification when incoming SUBSCRIBE request is received.  
     
    10831083        """ 
    10841084        Notification about change in Message Summary / Message Waiting 
    1085         Indication (RFC 3842) status. MWI subscription must be enabled 
    1086         in the account config to receive this notification. 
     1085        Indication (RFC 3842) status. MWI subscription must be enabled 
     1086        in the account config to receive this notification. 
    10871087 
    10881088        Keyword arguments: 
     
    17951795 
    17961796    def send_pager(self, text, im_id=0, content_type="text/plain",  
    1797                    hdr_list=None): 
     1797                   hdr_list=None): 
    17981798        """Send instant message inside a call. 
    17991799 
     
    21362136        self._lck = lck 
    21372137        self._lck.acquire() 
    2138         #_Trace(('lock acquired',)) 
     2138        #_Trace(('lock acquired',)) 
    21392139 
    21402140    def __del__(self): 
    21412141        try: 
    21422142            self._lck.release() 
    2143             #_Trace(('lock released',)) 
     2143            #_Trace(('lock released',)) 
    21442144        except: 
    2145             #_Trace(('lock release error',)) 
     2145            #_Trace(('lock release error',)) 
    21462146            pass 
    21472147 
     
    22132213        py_ua_cfg.cb.on_pager_status = _cb_on_pager_status 
    22142214        py_ua_cfg.cb.on_typing = _cb_on_typing 
    2215         py_ua_cfg.cb.on_mwi_info = _cb_on_mwi_info; 
     2215        py_ua_cfg.cb.on_mwi_info = _cb_on_mwi_info; 
    22162216 
    22172217        err = _pjsua.init(py_ua_cfg, log_cfg._cvt_to_pjsua(),  
     
    22612261 
    22622262    def thread_register(self, name): 
    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) 
     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) 
    22752275 
    22762276    def verify_sip_url(self, sip_url): 
     
    29492949    while _lib and _lib._quit == 0: 
    29502950        _lib.handle_events(1) 
    2951         time.sleep(0.050) 
     2951        time.sleep(0.050) 
    29522952    if _lib: 
    29532953        _lib._quit = 2 
Note: See TracChangeset for help on using the changeset viewer.