kirm / sip.js

Session Initiation Protocol for node.js
MIT License
427 stars 171 forks source link

display name in AOR issue with utf8 #144

Open dkelbch opened 4 years ago

dkelbch commented 4 years ago

The display name in AOR encoding bring up problems if space or special characters are used. In this case DQUOTE has been used.

dkelbch commented 4 years ago

Here the changes to solve the problem.

function stringifyAOR(aor) { return ('"'+aor.name+'"' || '') + ' <' + stringifyUri(aor.uri) + '>'+stringifyParams(aor.params); }