Changeset 2591 for pjproject/trunk/pjnath/src/pjnath-test/server.c
- Timestamp:
- Apr 13, 2009 6:40:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath-test/server.c
r2589 r2591 467 467 } 468 468 pj_stun_msg_add_sockaddr_attr(alloc->pool, alloc->data_ind, 469 PJ_STUN_ATTR_ PEER_ADDR, PJ_TRUE,469 PJ_STUN_ATTR_XOR_PEER_ADDR, PJ_TRUE, 470 470 &alloc->alloc_addr, 471 471 pj_sockaddr_get_len(&alloc->alloc_addr)); … … 516 516 resp = create_success_response(test_srv, alloc, req, pool, 0, &auth_key); 517 517 } else if (req->hdr.type == PJ_STUN_SEND_INDICATION) { 518 pj_stun_ peer_addr_attr *pa;518 pj_stun_xor_peer_addr_attr *pa; 519 519 pj_stun_data_attr *da; 520 520 521 521 test_srv->turn_stat.rx_send_ind_cnt++; 522 522 523 pa = (pj_stun_ peer_addr_attr*)524 pj_stun_msg_find_attr(req, PJ_STUN_ATTR_ PEER_ADDR, 0);523 pa = (pj_stun_xor_peer_addr_attr*) 524 pj_stun_msg_find_attr(req, PJ_STUN_ATTR_XOR_PEER_ADDR, 0); 525 525 da = (pj_stun_data_attr*) 526 526 pj_stun_msg_find_attr(req, PJ_STUN_ATTR_DATA, 0); … … 589 589 { 590 590 turn_allocation *alloc; 591 pj_stun_ peer_addr_attr *pa;591 pj_stun_xor_peer_addr_attr *pa; 592 592 pj_stun_data_attr *da; 593 593 char peer_info[PJ_INET6_ADDRSTRLEN+10]; … … 624 624 625 625 /* Format a Data indication */ 626 pa = (pj_stun_ peer_addr_attr*)627 pj_stun_msg_find_attr(alloc->data_ind, PJ_STUN_ATTR_ PEER_ADDR, 0);626 pa = (pj_stun_xor_peer_addr_attr*) 627 pj_stun_msg_find_attr(alloc->data_ind, PJ_STUN_ATTR_XOR_PEER_ADDR, 0); 628 628 da = (pj_stun_data_attr*) 629 629 pj_stun_msg_find_attr(alloc->data_ind, PJ_STUN_ATTR_DATA, 0);
Note: See TracChangeset
for help on using the changeset viewer.