res_hep: Capture actual transport type in use

Rather than hard-coding UDP, allow consumers of the HEP API to specify
which protocol is in use. Update the PJSIP provider to pass in the
current protocol type.

ASTERISK-26850 #close

Change-Id: I54bbb0a001cfe4c6a87ad4b6f2014af233349978
This commit is contained in:
Sean Bright
2017-03-21 07:59:12 -04:00
parent f5603cb1ec
commit d4fcf196a2
3 changed files with 18 additions and 1 deletions

View File

@@ -72,6 +72,8 @@ struct hepv3_capture_info {
size_t len;
/*! If non-zero, the payload accompanying this capture info will be compressed */
unsigned int zipped:1;
/*! The IPPROTO_* protocol where we captured the packet */
int protocol_id;
};
/*!