Ignore:
Timestamp:
Dec 13, 2013 11:44:51 AM (10 years ago)
Author:
nanang
Message:

Re #1519: Misc fixes in pjsua2:

  • Changed AccountConfig::toPj() signature, because a pjsua_acc_config instance should not be copied/assigned to another pjsua_acc_config instance as it contains list.
  • Fixed assertion in Endpoint destructor caused by access to pjlib mutex after pjlib is destroyed.
  • Changed VS2005 sample_debug project to allow debugging C++ code such as pjsua2_demo.cpp.
  • Compile warnings on VS2005.
  • Fixed SWIG python unit test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/pjsip-apps/src/swig/python/test.py

    r4619 r4692  
    4848def ua_run_test_exception(): 
    4949        print "Exception test.." 
    50         ep = pj.Endpoint.instance() 
     50        ep = pj.Endpoint() 
     51        ep.libCreate() 
    5152        got_exception = False 
    5253        try: 
    53                 ep.testException() 
     54                ep.natDetectType() 
    5455        except pj.Error, e: 
    5556                got_exception = True 
    5657                print "  Got exception: status=%u, reason=%s,\n  title=%s,\n  srcFile=%s, srcLine=%d" % \ 
    5758                        (e.status, e.reason, e.title, e.srcFile, e.srcLine) 
    58                 assert e.status == 70013 
    59                 assert e.reason == "Invalid operation (PJ_EINVALIDOP)" 
    60                 #assert e.title == "Endpoint::testException()" 
     59                assert e.status == 370050 
     60                assert e.reason.find("PJNATH_ESTUNINSERVER") >= 0 
     61                assert e.title == "pjsua_detect_nat_type()" 
    6162        assert got_exception 
    6263 
     
    7980        ep_cfg.logConfig.decor = ep_cfg.logConfig.decor & ~(pj.PJ_LOG_HAS_CR | pj.PJ_LOG_HAS_NEWLINE)  
    8081         
    81         ep = pj.Endpoint.instance() 
     82        ep = pj.Endpoint() 
    8283        ep.libCreate() 
    8384        ep.libInit(ep_cfg) 
     
    9192        ep_cfg = pj.EpConfig() 
    9293         
    93         ep = pj.Endpoint.instance() 
     94        ep = pj.Endpoint() 
    9495        ep.libCreate() 
    9596        ep.libInit(ep_cfg) 
Note: See TracChangeset for help on using the changeset viewer.