Changeset 4122 for pjproject/trunk
- Timestamp:
- May 14, 2012 11:04:46 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
/pjproject/branches/1.x merged: 4116-4117,4119,4121
- Property svn:mergeinfo changed
-
pjproject/trunk/pjmedia/src/pjmedia/conf_switch.c
r3999 r4122 547 547 if (src_afd->channel_count != dst_afd->channel_count) { 548 548 pj_mutex_unlock(conf->mutex); 549 return PJMEDIA_ENCC LOCKRATE;549 return PJMEDIA_ENCCHANNEL; 550 550 } 551 551 -
pjproject/trunk/pjmedia/src/pjmedia/wav_player.c
r4031 r4122 158 158 pj_memset(fport->eofpos, val, size_left); 159 159 } 160 size_left = 0; 160 161 } 161 162 -
pjproject/trunk/pjsip-apps/src/python/setup-vc.py
r2394 r4122 25 25 # Find version 26 26 pj_version="" 27 f = open('../../../pjlib/src/pj/config.c', 'r') 27 pj_version_major="" 28 pj_version_minor="" 29 pj_version_rev="" 30 pj_version_suffix="" 31 f = open('../../../version.mak', 'r') 28 32 for line in f: 29 if line.find("PJ_VERSION") != -1: 30 pj_version = line.split("=")[1].strip('";\r\n ') 31 break 33 if line.find("export PJ_VERSION_MAJOR") != -1: 34 tokens=line.split("=") 35 if len(tokens)>1: 36 pj_version_major= tokens[1].strip() 37 elif line.find("export PJ_VERSION_MINOR") != -1: 38 tokens=line.split("=") 39 if len(tokens)>1: 40 pj_version_minor= line.split("=")[1].strip() 41 elif line.find("export PJ_VERSION_REV") != -1: 42 tokens=line.split("=") 43 if len(tokens)>1: 44 pj_version_rev= line.split("=")[1].strip() 45 elif line.find("export PJ_VERSION_SUFFIX") != -1: 46 tokens=line.split("=") 47 if len(tokens)>1: 48 pj_version_suffix= line.split("=")[1].strip() 49 32 50 f.close() 33 if pj_version=="":34 print 'Unable to get PJ_ pj_version'51 if not pj_version_major: 52 print 'Unable to get PJ_VERSION_MAJOR' 35 53 sys.exit(1) 54 55 pj_version = pj_version_major + "." + pj_version_minor 56 if pj_version_rev: 57 pj_version += "." + pj_version_rev 58 if pj_version_suffix: 59 pj_version += "-" + pj_version_suffix 60 36 61 #print 'PJ_VERSION = "'+ pj_version + '"' 62 37 63 38 64 # Check that extension has been built -
pjproject/trunk/pjsip-apps/src/python/setup.py
r3999 r4122 26 26 # find pjsip version 27 27 pj_version="" 28 f = open('../../../pjlib/src/pj/config.c', 'r') 28 pj_version_major="" 29 pj_version_minor="" 30 pj_version_rev="" 31 pj_version_suffix="" 32 f = open('../../../version.mak', 'r') 29 33 for line in f: 30 if line.find("PJ_VERSION") != -1: 31 pj_version= line.split(" = ")[1].strip('";\r\n') 32 break 34 if line.find("export PJ_VERSION_MAJOR") != -1: 35 tokens=line.split("=") 36 if len(tokens)>1: 37 pj_version_major= tokens[1].strip() 38 elif line.find("export PJ_VERSION_MINOR") != -1: 39 tokens=line.split("=") 40 if len(tokens)>1: 41 pj_version_minor= line.split("=")[1].strip() 42 elif line.find("export PJ_VERSION_REV") != -1: 43 tokens=line.split("=") 44 if len(tokens)>1: 45 pj_version_rev= line.split("=")[1].strip() 46 elif line.find("export PJ_VERSION_SUFFIX") != -1: 47 tokens=line.split("=") 48 if len(tokens)>1: 49 pj_version_suffix= line.split("=")[1].strip() 50 33 51 f.close() 34 if pj_version=="":35 print 'Unable to get PJ_VERSION '52 if not pj_version_major: 53 print 'Unable to get PJ_VERSION_MAJOR' 36 54 sys.exit(1) 55 56 pj_version = pj_version_major + "." + pj_version_minor 57 if pj_version_rev: 58 pj_version += "." + pj_version_rev 59 if pj_version_suffix: 60 pj_version += "-" + pj_version_suffix 61 37 62 #print 'PJ_VERSION = "'+ pj_version + '"' 38 63 -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r4099 r4122 2195 2195 PJSUA_LOCK(); 2196 2196 2197 if ( pjsua_var.tpdata[id].type == PJSIP_TRANSPORT_UDP) {2197 if (t->type == PJSIP_TRANSPORT_UDP) { 2198 2198 2199 2199 pjsip_transport *tp = t->data.tp; … … 2216 2216 status = PJ_SUCCESS; 2217 2217 2218 } else if (pjsua_var.tpdata[id].type == PJSIP_TRANSPORT_TCP) { 2218 } else if (t->type == PJSIP_TRANSPORT_TCP || 2219 t->type == PJSIP_TRANSPORT_TLS) 2220 { 2219 2221 2220 2222 pjsip_tpfactory *factory = t->data.factory; … … 2227 2229 info->id = id; 2228 2230 info->type = t->type; 2229 info->type_name = pj_str("TCP"); 2230 info->info = pj_str("TCP transport"); 2231 info->type_name = (t->type==PJSIP_TRANSPORT_TCP)? pj_str("TCP"): 2232 pj_str("TLS"); 2233 info->info = (t->type==PJSIP_TRANSPORT_TCP)? pj_str("TCP transport"): 2234 pj_str("TLS transport"); 2231 2235 info->flag = factory->flag; 2232 2236 info->addr_len = sizeof(factory->local_addr); -
pjproject/trunk/version.mak
r4114 r4122 1 # Don't change the "export PJ_VERSION_xxx" style, they are parsed by setup.py 1 2 export PJ_VERSION_MAJOR := 2 2 3 export PJ_VERSION_MINOR := 0
Note: See TracChangeset
for help on using the changeset viewer.