StefanKopieczek / gossip

SIP stack in Golang
GNU Lesser General Public License v2.1
336 stars 109 forks source link

Fix for Issue26 #27

Closed rynorris closed 7 years ago

rynorris commented 9 years ago

Fixed issue 26 and added tests to prove it. In fact, the behaviour was worse than stated.

Our parser always only read an unquoted display name up until the first space. However looks to me like the ABNF grammar specifies it may contain spaces.

name-addr      =  [ display-name ] LAQUOT addr-spec RAQUOT
addr-spec      =  SIP-URI / SIPS-URI / absoluteURI
display-name   =  *(token LWS)/ quoted-string

This is also fixed by this pull request.