versatica/JsSIP — pull request #145 by wakamoleguy (2013-08-14 13:17:27+00:00)
Title: Grammar - join escaped characters into string

When parsing SIP messages that contain NameAddrHeaders with parameters involving escaped character sequences (for example, `"Hiro" `), JsSIP is misinterpreting the escaped character sequence as an array. The parameter value is then joined (`pvalue.join('')`), which calls `toString` on the array. The resulting NameAddrHeader has a uri looking like this: `"Hiro" `.

This pull requests fixes the issue by joining the escaped characters into a single string (rather than leaving as an array) after they have been parsed.