PJSIP Issue – Syntax Error Exception When Parsing

Home » Asterisk Users » PJSIP Issue – Syntax Error Exception When Parsing
Asterisk Users 2 Comments

–C0QFpPkb1GnU2Jkez22QMuv3Jxua41OsH
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable Content-Language: en-US

Hi all, i’m getting this error:

[Feb 21 09:29:09] ERROR[1250]: pjproject:0 :           
sip_transport.c Error processing 396 bytes packet from UDP
193.xxxxx:5060 : PJSIP syntax error exception when parsing ” header on line 2 col 1:
SIP/2.0 480 User 7000 not registered

Via: SIP/2.0/UDP
193.xxxxx:5060;received=193.xxxxxx;rport=5060;branch=z9hG4bKPjb092b027-a5b9-4683-8652-c7fefc06ae29
From: ;tag=3d0a19e7-eabe-4446-84dd-43f02d831033
To: ;tag=24eb447e8d0b8b1e81ba6efb9d8649a2.ea35
Call-ID: defee3c7-e5ba-41ff-9be7-3c37e62437f2
CSeq: 22011 INVITE
Content-Length: 0

— end of packet.

Asterisk 15.2.0 and PJSip 2.7.1

Tnx, Michele

2 thoughts on - PJSIP Issue – Syntax Error Exception When Parsing

  • This error is caused by the phone sending an erroneous sip header not by asterisk pjsip stack. solution would be to change the phone.

  • hello,

    you receive this error because the second line of SIP message not can begin without a Header. You Phone or server (maybe OpenSIPs or Kamailio)
    whet quitting a Via Header make some kind of error so the result is you have the Via Header in two lines instead one.

    Regards