Changeset 5308 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- May 19, 2016 6:55:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r5170 r5308 1665 1665 if (app_config.udp_cfg.port == 0) { 1666 1666 pjsua_transport_info ti; 1667 pj_sockaddr_in *a;1668 1667 1669 1668 pjsua_transport_get_info(transport_id, &ti); 1670 a = (pj_sockaddr_in*)&ti.local_addr; 1671 1672 tcp_cfg.port = pj_ntohs(a->sin_port); 1669 tcp_cfg.port = pj_sockaddr_get_port(&ti.local_addr); 1673 1670 } 1674 1671 }
Note: See TracChangeset
for help on using the changeset viewer.