You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but when sems receives a request to forward via next_hop=2002:C0A8:6E4F:5:A00:27FF:FE25:A4B9 (IPV6 ADDRESS MYVOIPGW) I have an error in trace:
ERROR: Could not find a local interface for resolved local IP (local_tag='3AF5A893-595D004B000F0808-4AAFF480';local_ip='2002:c0a8:6e4f:5::1')
WARNING: Error while computing outbound interface: default interface will be used instead.
DEBUG: setting outbound interface to 0
and sems crash with:
ERROR: sendto(12;]:5060): Address family not supported by protocol
ERROR: Error from transport layer
Segmentation fault
From code I see in "getOutboundIf" method of "AmBasicSipDialog" class that retrieve the interface to use to send sip packets from "next_hop" host but the method do not find interface because the search ipv6 address without "[" "]".
From code I see:
if(!next_hop.empty() &&
!parse_next_hop(stl2cstr(next_hop),ip_list) && -------------> parse_next_hop method return next_hop host without "[" "]"
!ip_list.empty()) {
dest_ip = c2stlstr(ip_list.front().host);
}
if(get_local_addr_for_dest(dest_ip,local_ip) < 0){ -----------> "get_local_addr_for_dest" method use "dest_ip" to get "local_ip" for correct ip family (IPV6) and return it without "[" "]"
ERROR("No local address for dest '%s' (local_tag='%s')",dest_ip.c_str(),local_tag.c_str());
goto error;
}
if_it = AmConfig::LocalSIPIP2If.find(local_ip); -------------> local_ip not found in LocalSIPIP2If because in this list ipv6 address is in [] form.
if(if_it == AmConfig::LocalSIPIP2If.end()){
ERROR("Could not find a local interface for resolved local IP (local_tag='%s';local_ip='%s')",
local_tag.c_str(), local_ip.c_str());
goto error;
}
I modified the code to add [] to local_ip and the interfaces found.
My questions are: is it a bug or is my wrong configuration?
Can You help me?
thank's in advance!
The text was updated successfully, but these errors were encountered:
```
I modified the code to add [] to local_ip and the interfaces found.
My questions are:
**is it a bug or is my wrong configuration?
Can You help me?**
I don't have any experience with ipv6 in sems, since I frontend sems
with sip proxy that handles ipv6.
If you suspect it is a bug in sems, please submit a pull request to fix
it. Make sure that it does not change anything when ipv4 addresses are
used.
Hi Everyone,
I'm using SEMS (v. 1.7.0) with Kamailio proxy to make a ipv4/ipv6 interworking:
Sip Client <-------> Proxy <--- IPV4 ---> Sems <--- IPV6 ---> MyVoipGw
and I have any problems with sems ipv6 configuration.
I configured two sems ntw interfaces IPV4/IPV6:
when sems startup I see in the logs:
but when sems receives a request to forward via next_hop=2002:C0A8:6E4F:5:A00:27FF:FE25:A4B9 (IPV6 ADDRESS MYVOIPGW) I have an error in trace:
ERROR: Could not find a local interface for resolved local IP (local_tag='3AF5A893-595D004B000F0808-4AAFF480';local_ip='2002:c0a8:6e4f:5::1')
WARNING: Error while computing outbound interface: default interface will be used instead.
DEBUG: setting outbound interface to 0
and sems crash with:
From code I see in "getOutboundIf" method of "AmBasicSipDialog" class that retrieve the interface to use to send sip packets from "next_hop" host but the method do not find interface because the search ipv6 address without "[" "]".
From code I see:
I modified the code to add [] to local_ip and the interfaces found.
My questions are:
is it a bug or is my wrong configuration?
Can You help me?
thank's in advance!
The text was updated successfully, but these errors were encountered: