prefixkit Ask an engineerAsk RU

SIP response codes

SIP 513 Message Too Large

Message Too Large: the request is bigger than the server accepts, typically over UDP.

513
Name
Message Too Large
Class
5xx · Server error
Defined in
RFC 3261
Q.850 cause towards the PSTN
127 · Interworking, unspecified

When it happens

  • A large SDP with many codecs plus long headers goes over the UDP size limit and gets fragmented.

What to check

  • Switch the transport to TCP, or trim codecs and headers.

What the response looks like

SIP/2.0 513 Message Too Large
Via: SIP/2.0/UDP 203.0.113.10:5060;branch=z9hG4bK776asdhds
From: <sip:101@pbx.example>;tag=1928301774
To: <sip:+15551234567@pbx.example>;tag=a6c85cf
Call-ID: a84b4c76e66710@203.0.113.10
CSeq: 2 INVITE
Reason: Q.850;cause=127;text="Interworking, unspecified"
Content-Length: 0