parse error with IPV6 addresses in square brackets

FG
Franz Georg Köhler
Wed, May 17, 2017 7:39 AM

Since asterisk 13.13, it does not recognise IPV6 SIP packets produced by
AVM Fritz OS any more.

It looks like this is related to the parsing of square brackets.
It says:
"PJSIP syntax error exception when parsing 'Status Line' header on line
2 col 112"

col 112 is: [2a01:7a0:3::2]
^

As you can see, the INVITE responses are not being processed, this
breaks my SIP installation. I wonder if anyone has also observed this
behaviour and if there is a known resolution for it?

Since asterisk 13.13, it does not recognise IPV6 SIP packets produced by AVM Fritz OS any more. It looks like this is related to the parsing of square brackets. It says: "PJSIP syntax error exception when parsing 'Status Line' header on line 2 col 112" col 112 is: [2a01:7a0:3::2] ^ As you can see, the INVITE responses are not being processed, this breaks my SIP installation. I wonder if anyone has also observed this behaviour and if there is a known resolution for it?
ZT
Zoltan.Toth.ext@rohde-schwarz.com
Wed, May 17, 2017 7:51 AM

Hello Franz,

The parser is right, the brackets are not allowed in the Via received
parameter, "received=[2a01:7a0:3::2]" is incorrect.

https://tools.ietf.org/html/rfc3261#section-25.1

via-received      =  "received" EQUAL (IPv4address / IPv6address)

where

IPv6address    =  hexpart [ ":" IPv4address ]
hexpart        =  hexseq / hexseq "::" [ hexseq ] / "::" [ hexseq ]
hexseq        =  hex4 ( ":" hex4)
hex4          =  1
4HEXDIG

Note that the value of the parameter can be an IPv6address, not an
IPv6reference (IPv6reference  =  "[" IPv6address "]").

Best regards,

Zoltan

Von:    Franz Georg Köhler lists@openunix.de
An:    pjsip@lists.pjsip.org
Datum:  17.05.2017 09:40
Betreff:        [Newsletter] [pjsip] parse error with IPV6 addresses in
square brackets
Gesendet von:  "pjsip" pjsip-bounces@lists.pjsip.org

Since asterisk 13.13, it does not recognise IPV6 SIP packets produced by
AVM Fritz OS any more.

It looks like this is related to the parsing of square brackets.
It says:
"PJSIP syntax error exception when parsing 'Status Line' header on line
2 col 112"

col 112 is: [2a01:7a0:3::2]
^

As you can see, the INVITE responses are not being processed, this
breaks my SIP installation. I wonder if anyone has also observed this
behaviour and if there is a known resolution for it?

[attachment "sip.txt" deleted by Zoltan Toth/RSD]


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hello Franz, The parser is right, the brackets are not allowed in the Via received parameter, "received=[2a01:7a0:3::2]" is incorrect. https://tools.ietf.org/html/rfc3261#section-25.1 via-received = "received" EQUAL (IPv4address / IPv6address) where IPv6address = hexpart [ ":" IPv4address ] hexpart = hexseq / hexseq "::" [ hexseq ] / "::" [ hexseq ] hexseq = hex4 *( ":" hex4) hex4 = 1*4HEXDIG Note that the value of the parameter can be an IPv6address, not an IPv6reference (IPv6reference = "[" IPv6address "]"). Best regards, Zoltan Von: Franz Georg Köhler <lists@openunix.de> An: pjsip@lists.pjsip.org Datum: 17.05.2017 09:40 Betreff: [Newsletter] [pjsip] parse error with IPV6 addresses in square brackets Gesendet von: "pjsip" <pjsip-bounces@lists.pjsip.org> Since asterisk 13.13, it does not recognise IPV6 SIP packets produced by AVM Fritz OS any more. It looks like this is related to the parsing of square brackets. It says: "PJSIP syntax error exception when parsing 'Status Line' header on line 2 col 112" col 112 is: [2a01:7a0:3::2] ^ As you can see, the INVITE responses are not being processed, this breaks my SIP installation. I wonder if anyone has also observed this behaviour and if there is a known resolution for it? [attachment "sip.txt" deleted by Zoltan Toth/RSD] _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org