Asterisk - The Open Source Telephony Project
21.4.1
|
Routines for integration with Homer using HEPv3. More...
#include "asterisk/netsock2.h"
Go to the source code of this file.
Data Structures | |
struct | hepv3_capture_info |
HEPv3 Capture Info. More... | |
Enumerations | |
enum | hep_uuid_type { HEP_UUID_TYPE_CALL_ID = 0, HEP_UUID_TYPE_CHANNEL } |
enum | hepv3_capture_type { HEPV3_CAPTURE_TYPE_SIP = 0x01, HEPV3_CAPTURE_TYPE_H323 = 0x02, HEPV3_CAPTURE_TYPE_SDP = 0x03, HEPV3_CAPTURE_TYPE_RTP = 0x04, HEPV3_CAPTURE_TYPE_RTCP = 0x05, HEPV3_CAPTURE_TYPE_MEGACO = 0x07, HEPV3_CAPTURE_TYPE_M2UA = 0x08, HEPV3_CAPTURE_TYPE_M3UA = 0x09, HEPV3_CAPTURE_TYPE_IAX = 0x10 } |
HEPv3 Packet Capture Types. | |
Functions | |
struct hepv3_capture_info * | hepv3_create_capture_info (const void *payload, size_t len) |
Create a hepv3_capture_info object. More... | |
enum hep_uuid_type | hepv3_get_uuid_type (void) |
Get the preferred UUID type. More... | |
int | hepv3_is_loaded (void) |
Return whether or not we're currently loaded and active. More... | |
int | hepv3_send_packet (struct hepv3_capture_info *capture_info) |
Send a generic packet capture to HEPv3. More... | |
Routines for integration with Homer using HEPv3.
Definition in file res_hep.h.
struct hepv3_capture_info* hepv3_create_capture_info | ( | const void * | payload, |
size_t | len | ||
) |
Create a hepv3_capture_info object.
This returned object is an ao2 reference counted object.
Any attribute in the returned hepv3_capture_info that is a pointer should point to something that is allocated on the heap, as it will be free'd when the hepv3_capture_info object is reclaimed.
payload | The payload to send to the HEP capture node |
len | Length of payload |
NULL | on error |
Definition at line 435 of file res_hep.c.
References ao2_ref, ast_malloc, capture_info_dtor(), hepv3_capture_info::len, hepv3_capture_info::payload, and hepv3_capture_info::protocol_id.
enum hep_uuid_type hepv3_get_uuid_type | ( | void | ) |
Get the preferred UUID type.
Definition at line 416 of file res_hep.c.
References ao2_global_obj_ref, and RAII_VAR.
int hepv3_is_loaded | ( | void | ) |
Return whether or not we're currently loaded and active.
0 | The module is not loaded |
1 | The module is loaded |
Definition at line 428 of file res_hep.c.
References ao2_global_obj_ref, and RAII_VAR.
int hepv3_send_packet | ( | struct hepv3_capture_info * | capture_info | ) |
Send a generic packet capture to HEPv3.
capture_info | Information describing the packet. This should be a reference counted object, created via hepv3_create_capture_info. |
Once this function is called, it assumes ownership of the capture_info
object and steals the reference of the object. Regardless of success or failure, the calling function should assumed that this function will own the object.
0 | on success |
-1 | on error |
Definition at line 600 of file res_hep.c.
References ao2_global_obj_ref, ao2_ref, ast_taskprocessor_push(), hep_queue_cb(), and RAII_VAR.