Discussion:
[pjsip] parse error with IPV6 addresses in square brackets
Franz Georg Köhler
2017-05-17 07:39:21 UTC
Permalink
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?
Z***@rohde-schwarz.com
2017-05-17 07:51:46 UTC
Permalink
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 <***@openunix.de>
An: ***@lists.pjsip.org
Datum: 17.05.2017 09:40
Betreff: [Newsletter] [pjsip] parse error with IPV6 addresses in
square brackets
Gesendet von: "pjsip" <pjsip-***@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
***@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Loading...