Friends, I am NOTICE CLI in Asterisk 13:
[Nov 14 23:10:57] NOTICE[5009]: res_hep.c:418 hep_queue_cb: Unable to send packet: Address Family mismatch between source/destination
Any idea?
Thanks
Moderators: muppetmaster, Moderator, Support
david55 wrote:You probably received an IPv6 address when your system only supports IPv4.
res_hep.c:418 hep_queue_cb: Unable to send packet: Address Family mismatch between source/destination
;
; res_hep Module configuration for Asterisk
;
; All settings are currently set in the general section.
[general]
enabled = yes ; Enable/disable forwarding of packets to a
; HEP server. Default is "yes".
capture_address = [ip address]:9060 ; The address of the HEP capture server.
capture_password = myHep ; If specified, the authorization passsword
; for the HEP server. If not specified, no
; authorization password will be sent.
capture_id = 2001 ; A unique integer identifier for this
; server. This ID will be embedded sent
; with each packet from this server.
hep_queue_cb
static int hep_queue_cb(void *data)
{
RAII_VAR(struct module_config *, config, ao2_global_obj_ref(global_config), ao2_cleanup);
RAII_VAR(struct hepv3_runtime_data *, hepv3_data, ao2_global_obj_ref(global_data), ao2_cleanup);
RAII_VAR(struct hepv3_capture_info *, capture_info, data, ao2_cleanup);
struct hep_generic hg_pkt;
unsigned int packet_len = 0, sock_buffer_len;
struct hep_chunk_ip4 ipv4_src, ipv4_dst;
struct hep_chunk_ip6 ipv6_src, ipv6_dst;
struct hep_chunk auth_key, payload, uuid;
void *sock_buffer;
int res;
if (!capture_info || !config || !hepv3_data) {
return 0;
}
if (ast_sockaddr_is_ipv4(&capture_info->src_addr) != ast_sockaddr_is_ipv4(&capture_info->dst_addr)) {
ast_log(AST_LOG_NOTICE, "Unable to send packet: Address Family mismatch between source/destination\n");
return -1;
}
packet_len = sizeof(hg_pkt);
Users browsing this forum: Google [Bot] and 1 guest