|
|
@ -738,6 +738,8 @@ static void stream_pcap_dump(struct media_packet *mp, const str *s) { |
|
|
static void dump_packet_pcap(struct media_packet *mp, const str *s) { |
|
|
static void dump_packet_pcap(struct media_packet *mp, const str *s) { |
|
|
if (ML_ISSET(mp->media->monologue, NO_RECORDING)) |
|
|
if (ML_ISSET(mp->media->monologue, NO_RECORDING)) |
|
|
return; |
|
|
return; |
|
|
|
|
|
if (!CALL_ISSET(mp->call, RECORDING_ON)) |
|
|
|
|
|
return; |
|
|
struct recording *recording = mp->call->recording; |
|
|
struct recording *recording = mp->call->recording; |
|
|
mutex_lock(&recording->pcap.recording_lock); |
|
|
mutex_lock(&recording->pcap.recording_lock); |
|
|
stream_pcap_dump(mp, s); |
|
|
stream_pcap_dump(mp, s); |
|
|
@ -1036,6 +1038,8 @@ static void dump_packet_proc(struct media_packet *mp, const str *s) { |
|
|
struct packet_stream *stream = mp->stream; |
|
|
struct packet_stream *stream = mp->stream; |
|
|
if (stream->recording.proc.stream_idx == UNINIT_IDX) |
|
|
if (stream->recording.proc.stream_idx == UNINIT_IDX) |
|
|
return; |
|
|
return; |
|
|
|
|
|
if (!CALL_ISSET(mp->call, RECORDING_ON)) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
struct rtpengine_command_packet *cmd; |
|
|
struct rtpengine_command_packet *cmd; |
|
|
unsigned char pkt[sizeof(*cmd) + s->len + MAX_PACKET_HEADER_LEN]; |
|
|
unsigned char pkt[sizeof(*cmd) + s->len + MAX_PACKET_HEADER_LEN]; |
|
|
|