We get some noise in our Asterisk error file generated by scanners sending invalid invites.  Example below (details removed)

[2020-12-0702:53:30]ERROR[23370]pjproject:sip_transport.c Error processing 559 bytes packet from UDP *********** :PJSIPsyntaxerrorexceptionwhenparsing'Request Line'header on line 1 col 12:INVITEsip:@*******SIP/2.0Via:SIP/2.0/UDP0.0.0.0:49990;branch=*****Max-Forwards:70From:<sip:@****:5060@*****>;tag=*****To:<sip:@****>Call-ID:*******CSeq:1INVITEContact:<sip:@****:***@****:****>Content-Type:application/sdpContent-Length:204v=0o=@******:50601626418299INIP40.0.0.0s=pplsipc=INIP40.0.0.0t=00m=audio25282RTP/AVP1006083185101a=rtpmap:0pcmu/8000a=rtpmap:101telephone-event/8000a=fmtp:1010-11


This seems to be a feature added in pjsip.  While it's often very useful to log error packers, in our case it just winds up being noise 99.9% of the time.

Is their some way to configure Asterisk or PJSIP to not log these packets as errors?  Or maybe some way to just filter them out entirely before pjsip even gets it (other than using an IP, which of course changes).

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to