Hi, The documentation for pj_gethostip says "On successful resolution, the address family and address part of this socket address will be filled up with the host IP address, in network byte order. Other parts of the socket address are untouched." However, the port is being reset to zero. Patch is attached. Thanks, Nishant -------------- next part -------------- A non-text attachment was scrubbed... Name: pj.patch Type: text/x-patch Size: 484 bytes Desc: not available URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20131202/e8cc5037/attachment-0001.patch>