pjsip_resolve function does not handle resolving hostname to IPv6 address?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

[pjproject 1.8.10]

It looks like the pjsip_resolve function does not handle resolving a
hostname to
IPv6 address.

I was using --outbound to set the outbound proxy.
I had set up my /etc/hosts file to resolve the value used in --outbound to
an ipv6 address. However the resolution is failing.

I looked at the pjsip_resolve function in sip_resolve.c file
It looks like the function is properly setting the IPv6 flag
for explicit IPv6 address (ip_addr_ver==6) but i think it is missing the
logic to
do the same if ip_addr_ver == 0 . I am assuming ip_addr_ver=0 indicates it
is not an IP address and in this case there must be some logic to add
the IPv6 flag? May be look at the --ipv6 flag on the account or something.

Any help/patch to get around this?

Thanks
DP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110130/a6c28c1e/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux