Changeset 5308 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- May 19, 2016 6:55:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r5307 r5308 2448 2448 PJSUA_LOCK(); 2449 2449 2450 if ( t->type== PJSIP_TRANSPORT_UDP) {2450 if ((t->type & PJSIP_TRANSPORT_UDP) == PJSIP_TRANSPORT_UDP) { 2451 2451 2452 2452 pjsip_transport *tp = t->data.tp; … … 2469 2469 status = PJ_SUCCESS; 2470 2470 2471 } else if ( t->type== PJSIP_TRANSPORT_TCP ||2472 t->type== PJSIP_TRANSPORT_TLS)2471 } else if ((t->type & PJSIP_TRANSPORT_TCP) == PJSIP_TRANSPORT_TCP || 2472 (t->type & PJSIP_TRANSPORT_TLS) == PJSIP_TRANSPORT_TLS) 2473 2473 { 2474 2474 … … 2482 2482 info->id = id; 2483 2483 info->type = t->type; 2484 info->type_name = (t->type==PJSIP_TRANSPORT_TCP)? pj_str("TCP"): 2485 pj_str("TLS"); 2486 info->info = (t->type==PJSIP_TRANSPORT_TCP)? pj_str("TCP transport"): 2487 pj_str("TLS transport"); 2484 info->type_name = pj_str(factory->type_name); 2485 info->info = pj_str(factory->info); 2488 2486 info->flag = factory->flag; 2489 2487 info->addr_len = sizeof(factory->local_addr); … … 2535 2533 { 2536 2534 pj_status_t status; 2535 pjsip_transport_type_e tp_type; 2537 2536 2538 2537 /* Make sure id is in range. */ … … 2542 2541 /* Make sure that transport exists */ 2543 2542 PJ_ASSERT_RETURN(pjsua_var.tpdata[id].data.ptr != NULL, PJ_EINVAL); 2543 2544 tp_type = pjsua_var.tpdata[id].type & ~PJSIP_TRANSPORT_IPV6; 2544 2545 2545 2546 /* Note: destroy() may not work if there are objects still referencing … … 2547 2548 */ 2548 2549 if (force) { 2549 switch ( pjsua_var.tpdata[id].type) {2550 switch (tp_type) { 2550 2551 case PJSIP_TRANSPORT_UDP: 2551 2552 status = pjsip_transport_shutdown(pjsua_var.tpdata[id].data.tp); … … 2580 2581 * descriptor. 2581 2582 */ 2582 switch ( pjsua_var.tpdata[id].type) {2583 switch (tp_type) { 2583 2584 case PJSIP_TRANSPORT_UDP: 2584 2585 return pjsip_transport_shutdown(pjsua_var.tpdata[id].data.tp);
Note: See TracChangeset
for help on using the changeset viewer.