Changeset 6152 for pjproject


Ignore:
Timestamp:
Feb 4, 2020 4:47:32 AM (5 years ago)
Author:
nanang
Message:

Close #2265: Fixed compatibility issues on Python 3.7 or above.

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/python/Makefile

    r5777 r6152  
    44 
    55ifeq ($(USE_PYTHON3),1) 
    6   PYTHON_EXE=python3.6 
    7   PYTHON_PKG_DIR=$(HOME)/.local/lib/python3.6/site-packages 
     6  PYTHON_EXE=python3 
    87else 
    9   PYTHON_EXE=python2.7 
    10   PYTHON_PKG_DIR=$(HOME)/.local/lib/python2.7/site-packages 
     8  PYTHON_EXE=python2 
    119endif 
    1210 
    1311#PYTHON_SETUP_FLAGS = --inplace  
    1412ifeq ($(OS),Windows_NT) 
     13  PYTHON_PKG_DIR := $(shell $(PYTHON_EXE) -m site --user-site | sed 's/\\/\//g') 
    1514  PYTHON_SETUP_FLAGS += --compiler=mingw32 
    1615  GCC_EXE=gcc.exe 
    1716else 
     17  PYTHON_PKG_DIR := $(shell $(PYTHON_EXE) -m site --user-site) 
    1818  GCC_EXE= 
    1919endif 
  • pjproject/trunk/pjsip/include/pjsua2/call.hpp

    r6097 r6152  
    894894     * the re-INVITE. 
    895895     */ 
    896     bool                async; 
     896    bool                isAsync; 
    897897     
    898898    /** 
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r6119 r6152  
    13361336    prm.offer.fromPj(*offer); 
    13371337    prm.rdata.fromPj(*rdata); 
    1338     prm.async = PJ2BOOL(*async); 
     1338    prm.isAsync = PJ2BOOL(*async); 
    13391339    prm.statusCode = *code; 
    13401340    prm.opt.fromPj(*opt); 
     
    13421342    call->onCallRxReinvite(prm); 
    13431343     
    1344     *async = prm.async; 
     1344    *async = prm.isAsync; 
    13451345    *code = prm.statusCode; 
    13461346    *opt = prm.opt.toPj(); 
Note: See TracChangeset for help on using the changeset viewer.