From Fiery Goose, 7 Years ago, written in Plain Text.
- view diff
Embed
  1. capture[pcap] {
  2.  
  3.         # here we can check source/destination IP/port, message size
  4.         if(msg_check("size", "30")) {
  5.  
  6.                 if(is_rtcp()) {
  7.  
  8.                         if(is_rtcp_exist()) {
  9.  
  10.                                 #Convert to JSON if needed.
  11.                                 if(parse_rtcp_to_json()) {
  12.  
  13.                                         #Can be defined many profiles in transport_hep.xml
  14.                                         if(!send_hep("hepsocket")) {
  15.                                                 clog("ERROR", "Error sending HEP!!!!");
  16.                                         }
  17.  
  18.                                 } else {
  19.                                         clog("ERROR", "couldn't parse RTCP to json");
  20.                                 }
  21.  
  22.                         } else {
  23.                                 clog("ERROR", "Couldnot find this call");
  24.                         }
  25.                 } else {
  26.                         clog("ERROR", "This is not RTCP");
  27.                 }
  28.         }
  29.         drop;
  30. }
  31.