[asterisk-users] Can I turn off logging of Invalid packets received by PJSIP?

Steve Sether ssether at usinternet.com
Mon Dec 14 09:55:47 CST 2020


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).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201214/0c4ec312/attachment-0001.html>


More information about the asterisk-users mailing list