Hi all,
I'm parsing SIP packets like so:
and ones like this fail as the User-Agent is empty. Any tips to ignore failures?
REGISTER sip:1017@XXX SIP/2.0
To: 1017 <sip:1017@XXX>
From: <sip:1017@XXX>;tag=0c26cd11
Via: SIP/2.0/UDP XXX:42026;branch=5x1ixd9rl88d5x4tdqkr345vdqzz080k1xgkt2mi4rnqpnsbyr3vhx1m4inpmg9zno08dly;rport
Call-ID: 678dcbe7d762683c43af2d11ee6e55de
CSeq: 1 REGISTER
Contact: <sip:1017@XXX:42026>
User-Agent:
Max-forwards: 70
Allow: INVITE, ACK, CANCEL, BYE, REFER
Content-Type: application/sdp
--