Closed arainero closed 6 years ago
Hi @arainero . Can u please share us a pcap with this RTCP traffic to see the issue ? Thanks
if the compound RTCP packet has an APP or a BYE packet at the end, the whole packet is dropped. src/modules/protocol/rtcp/protocol_rtcp.c#L91-L106 src/modules/protocol/rtcp/parser_rtcp.c#L184-L195
it's a bug, I'd say :)
I'm agree with @btriller . I didn't notice that on a fast look. Thanks.
@btriller I wanted add the other label, sorry :)
@kYroL01 Would you still like me to get a pcap or is it clear enough without one?
If u still pass me the pcap could be easy for test, because I don't have RTCP pcap with APP or BYE pkt. Thank you
@kYroL01 I sent you an email with the requested files.
@arainero Can u check now after this ? Thanks https://github.com/sipcapture/captagent/commit/2122366d90bf06ca7253212fc89cd36a846fb652
I recompiled with those changes. I don't see any json errors like I had before. However, I don't see any information in QoS reports though. No graphs or anything.
IMHO the problems could be two:
Is there anything you recommend for me to do or try so RTP stats will work?
Here is a captagent debug level 10 dump. It appears that there is JSON RTCP, but it doesn't get to the Homer server for some reason. All other SIP info is there though.
Just to make sure I understand this properly. The RTCP statistics will populate under "QoS Reports" on the right side, correct?
[DEBUG] modules.c:50 Loading module: [transport_hep]
[NOTICE] Loaded transport_hep
[DEBUG] modules.c:50 Loading module: [protocol_sip]
[NOTICE] Loaded protocol_sip
[DEBUG] modules.c:50 Loading module: [database_hash]
[NOTICE] Loaded database_hash
[DEBUG] modules.c:50 Loading module: [protocol_rtcp]
[NOTICE] Loaded protocol_rtcp
[DEBUG] modules.c:50 Loading module: [socket_pcap]
[NOTICE] Loaded socket_pcap
[DEBUG] socket_pcap.c:573 Activating device: any
[DEBUG] socket_pcap.c:609 Activated device: [any]
[NOTICE] Using filter: (portrange 5060-5091)
[DEBUG] conf_function.c:453 find_export_record: found <msg_check> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <parse_sip> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <send_hep> in module transport_hep [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <clog> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <sip_has_sdp> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <check_rtcp_ipport> in module database_hash [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <clog> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] socket_pcap.c:573 Activating device: any
[DEBUG] socket_pcap.c:764 Link offset interface type [113] [113] [16]
[DEBUG] socket_pcap.c:609 Activated device: [any]
[NOTICE] Using filter: (portrange 5060-50000 and len >=50 ) and (ip and ip[6] & 0x2 = 0 and ip[6:2] & 0x1fff = 0 and udp and udp[8] & 0xc0 = 0x80 and udp[9] >= 0xc8 && udp[9] <= 0xcc)
[DEBUG] conf_function.c:453 find_export_record: found <msg_check> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <is_rtcp> in module protocol_rtcp [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <is_rtcp_exist> in module database_hash [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <parse_rtcp_to_json> in module protocol_rtcp [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <send_hep> in module transport_hep [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <clog> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <clog> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <clog> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] conf_function.c:453 find_export_record: found <clog> in module protocol_sip [/usr/local/captagent/lib/captagent/modules]
[DEBUG] modules.c:50 Loading module: [socket_raw]
[DEBUG] socket_pcap.c:764 Link offset interface type [113] [113] [16]
[NOTICE] Loaded socket_raw
[DEBUG] captagent.c:316 The Captagent is ready
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [INVITE sip:alonzotest2@10.10.10.42;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-92c9ce87166a55b6-1---d8754z-
Max-Forwards: 70
Contact: <sip:alonzotest@192.168.128.17:5060;transport=UDP>
To: <sip:alonzotest2@10.10.10.42;transport=UDP>
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Zoiper for Windows 2.43 r24984
Allow-Events: presence, kpml
Content-Length: 331
v=0
o=Zoiper_user 0 0 IN IP4 192.168.128.17
s=Zoiper_session
c=IN IP4 192.168.128.17
t=0 0
m=audio 8000 RTP/AVP 3 0 8 110 98 101
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:110 speex/8000
a=rtpmap:98 iLBC/8000
a=fmtp:98 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@10.10.10.42;transport=UDP
[DEBUG] database_hash.c:140 RTCP CALLID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
[DEBUG] database_hash.c:141 RTCP IP PORT: 192.168.128.17:8001
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-92c9ce87166a55b6-1---d8754z-;received=192.168.128.17;rport=5060
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
To: <sip:alonzotest2@10.10.10.42;transport=UDP>
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 INVITE
Server: Asterisk PBX 11.14.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 600;refresher=uas
Contact: <sip:alonzotest2@10.10.10.42:5060>
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [INVITE sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK57972fab;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
Contact: <sip:5555555555@10.10.10.42:5060>
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.14.1
Date: Thu, 12 Oct 2017 12:31:26 GMT
Session-Expires: 600
Min-SE: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 234
v=0
o=root 1895147476 1895147476 IN IP4 10.10.10.42
s=Asterisk PBX 11.14.1
c=IN IP4 10.10.10.42
t=0 0
m=audio 13228 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
[DEBUG] database_hash.c:140 RTCP CALLID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
[DEBUG] database_hash.c:141 RTCP IP PORT: 10.10.10.42:13229
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-92c9ce87166a55b6-1---d8754z-;received=192.168.128.17;rport=5060
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 INVITE
Server: Asterisk PBX 11.14.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 600;refresher=uas
Contact: <sip:alonzotest2@10.10.10.42:5060>
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [INVITE sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK57972fab;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
Contact: <sip:5555555555@10.10.10.42:5060>
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.14.1
Date: Thu, 12 Oct 2017 12:31:26 GMT
Session-Expires: 600
Min-SE: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 234
v=0
o=root 1895147476 1895147476 IN IP4 10.10.10.42
s=Asterisk PBX 11.14.1
c=IN IP4 10.10.10.42
t=0 0
m=audio 13228 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
[DEBUG] database_hash.c:140 RTCP CALLID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
[DEBUG] database_hash.c:141 RTCP IP PORT: 10.10.10.42:13229
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK57972fab;rport=5060
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 INVITE
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK57972fab;rport=5060
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 INVITE
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK57972fab;rport=5060
Contact: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 INVITE
User-Agent: X-Lite release 5.0.1 stamp 86895
Allow-Events: talk, hold
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-92c9ce87166a55b6-1---d8754z-;received=192.168.128.17;rport=5060
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 INVITE
Server: Asterisk PBX 11.14.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 600;refresher=uas
Contact: <sip:alonzotest2@10.10.10.42:5060>
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK57972fab;rport=5060
Contact: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 INVITE
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, OPTIONS
Content-Type: application/sdp
Supported: replaces
User-Agent: X-Lite release 5.0.1 stamp 86895
Content-Length: 204
v=0
o=- 11166860 3 IN IP4 192.168.128.17
s=X-Lite release 5.0.1 stamp 86895
c=IN IP4 192.168.128.17
t=0 0
m=audio 60216 RTP/AVP 0 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
]
[DEBUG] database_hash.c:140 RTCP CALLID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
[DEBUG] database_hash.c:141 RTCP IP PORT: 192.168.128.17:60217
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [ACK sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK5bb63163;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
Contact: <sip:5555555555@10.10.10.42:5060>
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 11.14.1
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-92c9ce87166a55b6-1---d8754z-;received=192.168.128.17;rport=5060
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 INVITE
Server: Asterisk PBX 11.14.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 600;refresher=uas
Contact: <sip:alonzotest2@10.10.10.42:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 234
v=0
o=root 1060127621 1060127621 IN IP4 10.10.10.42
s=Asterisk PBX 11.14.1
c=IN IP4 10.10.10.42
t=0 0
m=audio 11534 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
]
[DEBUG] database_hash.c:140 RTCP CALLID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
[DEBUG] database_hash.c:141 RTCP IP PORT: 10.10.10.42:11535
IS RTCP
[DEBUG] database_hash.c:165 IP PORT: 192.168.128.17:60217
[DEBUG] database_hash.c:280 IP PORT: [192.168.128.17:60217]
[DEBUG] database_hash.c:175 SESSION ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
[DEBUG] parser_rtcp.c:77 Parsing compound packet (total of 72 bytes)
[DEBUG] parser_rtcp.c:88 #1 SR (200)
[DEBUG] parser_rtcp.c:136 #2 SDES (202)
[DEBUG] protocol_rtcp.c:121 JSON RTCP { "sender_information":{"ntp_timestamp_sec":551520733,"ntp_timestamp_usec":2727918681,"octets":800,"rtp_timestamp":1555201044, "packets":5},"sdes_ssrc":1384644827,"sdes_chunk_ssrc":17850959,"sdes_information": [ {"type":0,"text":"Rˆ"},{"type":98,"text":"rQbQ164Rl5AT5V"}],"sdes_report_count":2}
[DEBUG] transport_hep.c:273 LETS FREE IT!
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-92c9ce87166a55b6-1---d8754z-;received=192.168.128.17;rport=5060
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 INVITE
Server: Asterisk PBX 11.14.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 600;refresher=uas
Contact: <sip:alonzotest2@10.10.10.42:5060>
Content-Type: application/sdp
Require: timer
Content-Length: 234
v=0
o=root 1060127621 1060127621 IN IP4 10.10.10.42
s=Asterisk PBX 11.14.1
c=IN IP4 10.10.10.42
t=0 0
m=audio 11534 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
]
[DEBUG] database_hash.c:140 RTCP CALLID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
[DEBUG] database_hash.c:141 RTCP IP PORT: 10.10.10.42:11535
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [ACK sip:alonzotest2@10.10.10.42:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-63546a96fe0a7bbf-1---d8754z-
Max-Forwards: 70
Contact: <sip:alonzotest@192.168.128.17:5060;transport=UDP>
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 ACK
User-Agent: Zoiper for Windows 2.43 r24984
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@10.10.10.42:5060
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [ACK sip:alonzotest2@10.10.10.42:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-63546a96fe0a7bbf-1---d8754z-
Max-Forwards: 70
Contact: <sip:alonzotest@192.168.128.17:5060;transport=UDP>
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 1 ACK
User-Agent: Zoiper for Windows 2.43 r24984
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@10.10.10.42:5060
IS RTCP
[DEBUG] database_hash.c:165 IP PORT: 192.168.128.17:8001
[DEBUG] database_hash.c:280 IP PORT: [192.168.128.17:8001]
[DEBUG] database_hash.c:175 SESSION ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
[DEBUG] parser_rtcp.c:77 Parsing compound packet (total of 104 bytes)
[DEBUG] parser_rtcp.c:88 #1 SR (200)
[DEBUG] parser_rtcp.c:136 #2 SDES (202)
[DEBUG] protocol_rtcp.c:121 JSON RTCP { "sender_information":{"ntp_timestamp_sec":601852381,"ntp_timestamp_usec":310624490,"octets":27680,"rtp_timestamp":302749106, "packets":173},"ssrc":1158380256,"type":200, "report_blocks":[{"source_ssrc":1384644827,"highest_seq_no":21511,"fraction_lost":0,"ia_jitter":0,"packets_lost":0,"lsr":0,"dlsr":0}],"report_count":1,"sdes_ssrc":1158380256,"sdes_chunk_ssrc":18243954,"sdes_information": [ {"type":0,"text":"Ezàar"},{"type":97,"text":"nero@RAFAEL-PC"}],"sdes_report_count":2}
[DEBUG] transport_hep.c:273 LETS FREE IT!
IS RTCP
[DEBUG] database_hash.c:165 IP PORT: 192.168.128.17:8001
[DEBUG] database_hash.c:280 IP PORT: [192.168.128.17:8001]
[DEBUG] database_hash.c:175 SESSION ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
[DEBUG] parser_rtcp.c:77 Parsing compound packet (total of 88 bytes)
[DEBUG] parser_rtcp.c:88 #1 SR (200)
[DEBUG] parser_rtcp.c:136 #2 SDES (202)
[DEBUG] parser_rtcp.c:186 #3 BYE (203)
[DEBUG] protocol_rtcp.c:121 JSON RTCP { "sender_information":{"ntp_timestamp_sec":618629597,"ntp_timestamp_usec":3746532695,"octets":30240,"rtp_timestamp":1377342898, "packets":189},"sdes_ssrc":1158380256,"sdes_chunk_ssrc":18243954,"sdes_information": [ {"type":0,"text":"Ezàar"},{"type":97,"text":"nero@RAFAEL-PC"}],"sdes_report_count":2}
[DEBUG] transport_hep.c:273 LETS FREE IT!
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [BYE sip:alonzotest2@10.10.10.42:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-6e0f508550921405-1---d8754z-
Max-Forwards: 70
Contact: <sip:alonzotest@192.168.128.17:5060;transport=UDP>
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 2 BYE
User-Agent: Zoiper for Windows 2.43 r24984
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@10.10.10.42:5060
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.128.17:5060;branch=z9hG4bK-d8754z-6e0f508550921405-1---d8754z-;received=192.168.128.17;rport=5060
From: <sip:alonzotest@10.10.10.42;transport=UDP>;tag=8e307026
To: <sip:alonzotest2@10.10.10.42;transport=UDP>;tag=as2b179bb3
Call-ID: M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.
CSeq: 2 BYE
Server: Asterisk PBX 11.14.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [INVITE sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
Contact: <sip:5555555555@10.10.10.42:5060>
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.14.1
Date: Thu, 12 Oct 2017 12:31:32 GMT
Session-Expires: 600
Min-SE: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 234
v=0
o=root 1665473441 1665473441 IN IP4 10.10.10.42
s=Asterisk PBX 11.14.1
c=IN IP4 10.10.10.42
t=0 0
m=audio 17488 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
[DEBUG] database_hash.c:140 RTCP CALLID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
[DEBUG] database_hash.c:141 RTCP IP PORT: 10.10.10.42:17489
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [BYE sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK6b392af8;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 103 BYE
User-Agent: Asterisk PBX 11.14.1
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [INVITE sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
Contact: <sip:5555555555@10.10.10.42:5060>
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 INVITE
User-Agent: Asterisk PBX 11.14.1
Date: Thu, 12 Oct 2017 12:31:32 GMT
Session-Expires: 600
Min-SE: 300
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 234
v=0
o=root 1665473441 1665473441 IN IP4 10.10.10.42
s=Asterisk PBX 11.14.1
c=IN IP4 10.10.10.42
t=0 0
m=audio 17488 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
[DEBUG] database_hash.c:140 RTCP CALLID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
[DEBUG] database_hash.c:141 RTCP IP PORT: 10.10.10.42:17489
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [BYE sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK6b392af8;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 103 BYE
User-Agent: Asterisk PBX 11.14.1
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
IS RTCP
[DEBUG] database_hash.c:165 IP PORT: 192.168.128.17:60217
[DEBUG] database_hash.c:280 IP PORT: [192.168.128.17:60217]
[DEBUG] database_hash.c:175 SESSION ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
[DEBUG] parser_rtcp.c:77 Parsing compound packet (total of 56 bytes)
[DEBUG] parser_rtcp.c:115 #1 RR (201)
[DEBUG] parser_rtcp.c:186 #2 BYE (203)
[DEBUG] protocol_rtcp.c:121 JSON RTCP { "ssrc":1384644827,"type":201, "report_blocks":[{"source_ssrc":1158380256,"highest_seq_no":4788,"fraction_lost":0,"ia_jitter":48,"packets_lost":0,"lsr":0,"dlsr":0}],"report_count":1}
[DEBUG] transport_hep.c:273 LETS FREE IT!
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport=5060
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 INVITE
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK6b392af8;rport=5060
Contact: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 103 BYE
User-Agent: X-Lite release 5.0.1 stamp 86895
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [CANCEL sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 11.14.1
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport=5060
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 INVITE
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK6b392af8;rport=5060
Contact: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6253a002
From: <sip:5555555555@10.10.10.42>;tag=as22219ca9
Call-ID: 1921d7340c3819d4540bbb226b8d3523@10.10.10.42:5060
CSeq: 103 BYE
User-Agent: X-Lite release 5.0.1 stamp 86895
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [CANCEL sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 CANCEL
User-Agent: Asterisk PBX 11.14.1
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport=5060
Contact: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6d44a72d
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 CANCEL
User-Agent: X-Lite release 5.0.1 stamp 86895
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport=5060
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6d44a72d
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 INVITE
User-Agent: X-Lite release 5.0.1 stamp 86895
Content-Length: 0
]
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [ACK sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4 SIP/2.0
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport
Max-Forwards: 70
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=6d44a72d
Contact: <sip:5555555555@10.10.10.42:5060>
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 ACK
User-Agent: Asterisk PBX 11.14.1
Content-Length: 0
]
[DEBUG] parser_sip.c:792 INVITE RURI: sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4
PARSE SIP
[DEBUG] protocol_sip.c:370 SIP: [SIP/2.0 481 Call/Transaction Does Not Exist
Via: SIP/2.0/UDP 10.10.10.42:5060;branch=z9hG4bK50378ada;rport=5060
To: <sip:alonzotest2@192.168.128.17:53035;rinstance=d9c6ccb542d575e4>;tag=31965d69
From: <sip:5555555555@10.10.10.42>;tag=as512dc129
Call-ID: 7c60594138c13b2c723fd3d626b6ad09@10.10.10.42:5060
CSeq: 102 CANCEL
Content-Length: 0
]
[DEBUG] captagent.c:87 The agent has been terminated
[NOTICE] unloaded module socket_raw
[NOTICE] unloaded module socket_pcap
[DEBUG] socket_pcap.c:775 loop stopped by breakloop
------- OUT OF CALLBACK PROTO ------
[DEBUG] socket_pcap.c:796 exit loop
[DEBUG] socket_pcap.c:775 loop stopped by breakloop
------- OUT OF CALLBACK PROTO ------
[DEBUG] socket_pcap.c:796 exit loop
[NOTICE] Unloaded protocol_rtcp
[NOTICE] unloaded module database_hash
[NOTICE] unloaded module protocol_sip
[NOTICE] unloaded module transport_hep
@arainero
first, check for data in Homer database.
SELECT * FROM rtcp_capture WHERE correlation_id IN ('M2JjZGI2MDYyYmU4N2E2OTdmNDY2NDkwNDQ0MThlMGQ.')
.
Then, check for errors regarding JSON decoding in php-fpm/Apache/syslog. The broken RTCP SDES items parsing (first SDES item is read from wrong byte) messes up json_decode in homer-api.
You can workaround the broken JSON ("sdes_information": [ {"type":0,"text":"E�z�ar"},{"type":97,"text":"nero@RAFAEL-PC"}]
) by removing non-printable characters:
if ($data[$key]["msg"] == NULL) $data[$key]["msg"] = json_decode(preg_replace( '/[^[:print:]]/', '',$json), true);
@btriller I have homer installed via docker and I don't have too much docker knowledge at the moment. Is there a simple way to access the database container or expose it the outside?
Depending how you launched the container, you can run docker ps
and mark the ID of the homer container, followed by docker exec -ti <CONTAINER_ID> bash
to get a shall into the system.
From there you can launch mysql and do all the rest as in a regular system (just don't stop services)
Thanks @lmangani.
@btriller I was able to see the RTCP JSON data in the database. So for the statistics to display I have to modify the homer-api file?
I'm slightly confused on the step after checking to see if the data exists in the database.
@btriller
This is what I see appear in the apache error log when opening reports for a call:
[Tue Oct 17 11:26:31.916086 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 35, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.916190 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Alarm.php on line 39, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.916264 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Admin.php on line 38, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.918482 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Search.php on line 1362, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.918538 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Undefined variable: limit in /var/www/html/api/RestApi/Search.php on line 1432, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.921791 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 1445, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.922396 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Search.php on line 1187, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.922467 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant CLEGTAIL - assumed 'CLEGTAIL' in /var/www/html/api/RestApi/Search.php on line 1225, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.922485 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant CLEGTAIL - assumed 'CLEGTAIL' in /var/www/html/api/RestApi/Search.php on line 1232, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.922490 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant CLEGTAIL - assumed 'CLEGTAIL' in /var/www/html/api/RestApi/Search.php on line 1248, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.922493 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant CLEGTAIL - assumed 'CLEGTAIL' in /var/www/html/api/RestApi/Search.php on line 1251, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.922498 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant CLEGTAIL - assumed 'CLEGTAIL' in /var/www/html/api/RestApi/Search.php on line 1255, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.923301 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 1327, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.924662 2017] [:error] [pid 32] [client 192.168.128.17:52246] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 1327, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.928702 2017] [:error] [pid 31] [client 192.168.128.17:52247] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 35, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.928778 2017] [:error] [pid 31] [client 192.168.128.17:52247] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Alarm.php on line 39, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.928837 2017] [:error] [pid 31] [client 192.168.128.17:52247] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Admin.php on line 38, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.930594 2017] [:error] [pid 31] [client 192.168.128.17:52247] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 1266, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.931795 2017] [:error] [pid 33] [client 192.168.128.17:52248] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 35, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.931866 2017] [:error] [pid 33] [client 192.168.128.17:52248] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Alarm.php on line 39, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.931918 2017] [:error] [pid 33] [client 192.168.128.17:52248] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Admin.php on line 38, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.933592 2017] [:error] [pid 33] [client 192.168.128.17:52248] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 1378, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.934818 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Search.php on line 35, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.934887 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Alarm.php on line 39, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.934939 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Admin.php on line 38, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.937477 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 216, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.941006 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 895, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.946124 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 553, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.946666 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Use of undefined constant RTCP_TABLE_PARTITION - assumed 'RTCP_TABLE_PARTITION' in /var/www/html/api/RestApi/Report.php on line 593, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.950235 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 710, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.952591 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Undefined index: node in /var/www/html/api/RestApi/Report.php on line 387, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.954218 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Use of undefined constant RTCP_TABLE_PARTITION - assumed 'RTCP_TABLE_PARTITION' in /var/www/html/api/RestApi/Report.php on line 425, referer: http://10.10.10.196/
[Tue Oct 17 11:26:31.954442 2017] [:error] [pid 49] [client 192.168.128.17:52245] PHP Notice: Use of undefined constant SYSLOG_ENABLE - assumed 'SYSLOG_ENABLE' in /var/www/html/api/RestApi/Report.php on line 437, referer: http://10.10.10.196/
@arainero you might want to give HEPlify a try see if it simplifies the utilization issues with the full agent.
@arainero homer-api patched for non-printable chars, not sure if this was your issue but worth a shot - Thanks @btriller https://github.com/sipcapture/homer-api/commit/82188fd9d2944cc3f9534589738ab874b3c7620e
Hello, It was great meeting some of you at Astricon. I have just recently installed Homer via docer and have captagent installed on one of my Asterisk 11 servers. SIP with SDP appears to be working fine with Homer.
However, I can not get any RTP statistics to work. I see "[ERR] protocol_sip.c:133 couldn't parse RTCP to json" in the captagent output which I suspect is the issue. Any debug tips or info to provide to help resolve this would be appreciated.
I'm using the latest GIT version.
Here is the RTPC section of captagent with level 10 logging:
captanget.xml:
protocol_rtcp.xml:
socket_pcap.xml:
rtcp_capture_plan.cfg:
sip_capture_plan.cfg:
transport_hep.xml:
transport_json.xml: