Antwort: [Newsletter] parse error with IPV6 addresses in square brackets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
An:        pjsip@xxxxxxxxxxxxxxx
Datum:        17.05.2017 09:40
Betreff:        [Newsletter] parse error with IPV6 addresses in square brackets
Gesendet von:        "pjsip" <pjsip-bounces@xxxxxxxxxxxxxxx>




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@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


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

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

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux