Commit d75ba9af authored by Simon Morlat's avatar Simon Morlat

fix ipv6 channel match error

parent c1f887b6
......@@ -146,8 +146,9 @@ belle_sip_channel_t *belle_sip_listening_point_get_channel(belle_sip_listening_p
struct addrinfo hints={0};
char portstr[20];
belle_sip_channel_t *chan;
hints.ai_flags=AI_NUMERICHOST|AI_NUMERICSERV;
hints.ai_family=lp->ai_family;
hints.ai_flags=AI_NUMERICHOST|AI_NUMERICSERV|AI_V4MAPPED;
snprintf(portstr,sizeof(portstr),"%i",hop->port);
getaddrinfo(hop->host,portstr,&hints,&res);
chan=_belle_sip_listening_point_get_channel(lp,hop,res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment