diff options
author | Liong Sauw Ming <ming@teluu.com> | 2016-05-19 06:55:16 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2016-05-19 06:55:16 +0000 |
commit | b897438fb3b3f6efcd62b87f2c9902ced7e01be3 (patch) | |
tree | 0829db82d9346eec812f6d07c893b3641654a6f2 /pjsip-apps | |
parent | 68958ad7d2304c6c78ca899ddb09827bcd993891 (diff) |
Fixed #1921: Add support to handle IPv6 transports in pjsua_transport API and transport keep alive
Also:
- add more detailed transport info for TCP and TLS transport
- fixed pjsua sample app which tries to get IPv4 local address from IPv6 transport.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5308 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps')
-rw-r--r-- | pjsip-apps/src/pjsua/pjsua_app.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pjsip-apps/src/pjsua/pjsua_app.c b/pjsip-apps/src/pjsua/pjsua_app.c index af34ac91..9a598b5f 100644 --- a/pjsip-apps/src/pjsua/pjsua_app.c +++ b/pjsip-apps/src/pjsua/pjsua_app.c @@ -1664,12 +1664,9 @@ static pj_status_t app_init() if (app_config.udp_cfg.port == 0) { pjsua_transport_info ti; - pj_sockaddr_in *a; pjsua_transport_get_info(transport_id, &ti); - a = (pj_sockaddr_in*)&ti.local_addr; - - tcp_cfg.port = pj_ntohs(a->sin_port); + tcp_cfg.port = pj_sockaddr_get_port(&ti.local_addr); } } |