voiceip/oreka

Can't capture RTP stream in Docker

Closed this issue · 2 comments

ENV:
centos 7.5
docker 19

Here is the logs:

`
OrkAudio service starting

2020-11-06 09:55:29,421 WARN config:249 - It is not recommended to have more batch threads than CPUs
2020-11-06 09:55:29,423 INFO root:109 - Loaded plugin: /usr/lib/libvoip.so
2020-11-06 09:55:29,426 INFO packet:1812 - Initializing VoIP plugin
2020-11-06 09:55:29,530 INFO packet:1515 - Available pcap devices:
2020-11-06 09:55:29,531 INFO packet:1522 - * ens160 -
2020-11-06 09:55:29,531 INFO packet:1314 - Setting pcap socket buffer size:8388608 bytes successful
2020-11-06 09:55:29,549 INFO packet:1338 - Activating pcaphandle:1ae1bf0 successfully
2020-11-06 09:55:29,549 INFO packet:1353 - Setting setsockopt with bufsize:8388608 successfully
2020-11-06 09:55:29,549 INFO packet:1445 - Successfully opened device. pcap handle:1ae1bf0 message:
2020-11-06 09:55:29,549 INFO packet:1522 - * any - Pseudo-device that captures on all interfaces
2020-11-06 09:55:29,549 INFO packet:1522 - * lo -
2020-11-06 09:55:29,549 INFO packet:1522 - * docker0 -
2020-11-06 09:55:29,549 INFO packet:1522 - * nflog - Linux netfilter log (NFLOG) interface
2020-11-06 09:55:29,549 INFO packet:1522 - * nfqueue - Linux netfilter queue (NFQUEUE) interface
2020-11-06 09:55:29,550 INFO packet:1709 - No localpartymap.csv supplied, either locally or at /etc/orkaudio/localpartymap.csv
2020-11-06 09:55:29,550 INFO packet:1770 - LoadSkinnyGlobalNumbersList: Could not open file:skinnyglobalnumbers.csv -- trying:/etc/orkaudio/skinnyglobalnumbers.csv now
2020-11-06 09:55:29,550 INFO packet:1776 - LoadPartyMaps: Could not open file:/etc/orkaudio/skinnyglobalnumbers.csv either -- giving up
2020-11-06 09:55:29,551 INFO root:133 - Loaded plugin: /usr/lib/orkaudio/plugins/libg729codec.so
2020-11-06 09:55:29,551 INFO g729:149 - G729 codec filter starting.
2020-11-06 09:55:29,551 INFO g729:152 - G729 codec filter initialized.
2020-11-06 09:55:29,551 INFO root:133 - Loaded plugin: /usr/lib/orkaudio/plugins/librtpmixer.so
2020-11-06 09:55:29,552 INFO root:133 - Loaded plugin: /usr/lib/orkaudio/plugins/libsilkcodec.so
2020-11-06 09:55:29,552 INFO sik:242 - SILK codec filter initialized.
2020-11-06 09:55:29,553 INFO taperegistry:62 - Registered processor: BatchProcessing
2020-11-06 09:55:29,553 INFO taperegistry:62 - Registered processor: CommandProcessing
2020-11-06 09:55:29,553 INFO taperegistry:62 - Registered processor: Reporting
2020-11-06 09:55:29,553 INFO taperegistry:62 - Registered processor: TapeFileNaming
2020-11-06 09:55:29,554 INFO taperegistry:62 - Registered processor: DirectionSelector
2020-11-06 09:55:29,554 INFO reporting:283 - [localhost:8080/orktrack] reporting thread started
2020-11-06 09:55:29,554 INFO immediateProcessing:90 - thread starting - queue size:10000
2020-11-06 09:55:29,554 INFO batchProcessing:233 - thread Th0 starting - queue size:20000
2020-11-06 09:55:29,555 INFO batchProcessing:233 - thread Th2 starting - queue size:20000
2020-11-06 09:55:29,555 INFO batchProcessing:233 - thread Th1 starting - queue size:20000
2020-11-06 09:55:29,555 INFO batchProcessing:233 - thread Th3 starting - queue size:20000
2020-11-06 09:55:29,556 INFO batchProcessing:233 - thread Th4 starting - queue size:20000
2020-11-06 09:55:29,556 INFO batchProcessing:233 - thread Th5 starting - queue size:20000
2020-11-06 09:55:29,556 INFO batchProcessing:233 - thread Th6 starting - queue size:20000
2020-11-06 09:55:29,557 INFO batchProcessing:233 - thread Th7 starting - queue size:20000
2020-11-06 09:55:29,557 INFO batchProcessing:233 - thread Th8 starting - queue size:20000
2020-11-06 09:55:29,557 INFO batchProcessing:233 - thread Th10 starting - queue size:20000
2020-11-06 09:55:29,557 INFO batchProcessing:233 - thread Th9 starting - queue size:20000
2020-11-06 09:55:29,558 INFO batchProcessing:233 - thread Th11 starting - queue size:20000
2020-11-06 09:55:29,558 INFO batchProcessing:233 - thread Th12 starting - queue size:20000
2020-11-06 09:55:29,558 INFO batchProcessing:233 - thread Th13 starting - queue size:20000
2020-11-06 09:55:29,558 INFO batchProcessing:233 - thread Th14 starting - queue size:20000
2020-11-06 09:55:29,558 INFO batchProcessing:233 - thread Th15 starting - queue size:20000
2020-11-06 09:55:29,559 INFO batchProcessing:233 - thread Th16 starting - queue size:20000
2020-11-06 09:55:29,559 INFO batchProcessing:233 - thread Th17 starting - queue size:20000
2020-11-06 09:55:29,559 INFO batchProcessing:233 - thread Th18 starting - queue size:20000
2020-11-06 09:55:29,560 INFO batchProcessing:233 - thread Th19 starting - queue size:20000
2020-11-06 09:55:29,560 INFO batchProcessing:233 - thread Th22 starting - queue size:20000
2020-11-06 09:55:29,560 ERROR orkclient:36 - HTTP header:HTTP/1.1 404
Content-Type: text/html;charset=utf-8
Content-Language: zh-CN
Content-Length: 1088
Date: Fri, 06 Nov 2020 09:55:29 GMT
Connection: close

** request:timeout:5 http://localhost:8080//orktrack/command?type=init&name=orkaudio-localhost.localdomain&hostname=localhost.localdomain&servicetype=A&tcpport=59140&protocol=&fileserveport=&contextpath=&servepath=&absolutepath=%2Fhome%2FRecordFile%2Faudio&streamingport=&username=&password=&sshport=&hostname=localhost.localdomain&
2020-11-06 09:55:29,560 WARN reporting:320 - [localhost:8080/orktrack] init connection:false success:false comment:
2020-11-06 09:55:29,560 INFO batchProcessing:233 - thread Th21 starting - queue size:20000
2020-11-06 09:55:29,560 INFO batchProcessing:233 - thread Th20 starting - queue size:20000
2020-11-06 09:55:29,561 INFO batchProcessing:233 - thread Th24 starting - queue size:20000
2020-11-06 09:55:29,561 INFO batchProcessing:233 - thread Th23 starting - queue size:20000
2020-11-06 09:55:29,562 INFO tapeFileNamingLog:86 - Started
2020-11-06 09:55:29,562 INFO batchProcessing:106 - Command Processing thread Th0 starting - queue size:10000
2020-11-06 09:55:29,562 INFO directionSelector:184 - thread Th0 starting - queue size:20000
2020-11-06 09:55:29,562 INFO httpserver:238 - Started HttpServer on port:59140
2020-11-06 09:55:29,563 INFO directionSelector:129 - LoadAreaCodesMaps: Could not open file:area-codes-recorded-side.csv -- trying:/etc/orkaudio/area-codes-recorded-side.csv now
2020-11-06 09:55:29,563 INFO directionSelector:135 - LoadAreaCodesMaps: Could not open file:/etc/orkaudio/area-codes-recorded-side.csv either -- giving up
2020-11-06 09:55:29,563 INFO eventstreamingserver:690 - Started EventstreamingServer on port:59150
2020-11-06 09:55:29,563 INFO packet:939 - Start Capturing: pcap handle:1ae1bf0
2020-11-06 09:55:36,553 INFO packet:1709 - No localpartymap.csv supplied, either locally or at /etc/orkaudio/localpartymap.csv
`

Can you check if your docker instance is actually receiving traffic?

docker run --net=host -v $PWD:/data corfr/tcpdump -i eth2 -w /data/dump.pcap

Captures from docker would mostly capture traffic between docker and host afaik. Ideally, if you want to capture mirror traffic with oreka you would need to run directly on the host.

/beer

This is my configuration problem. I set the network card in config.xml correctly to capture it

thx