Skip to content

Commit 2e18a6b

Browse files
committed
FIx contact match in 200 response to REGISTER
- Adapt to new JsSIP.URI style
1 parent 4929b92 commit 2e18a6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Registrator.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ JsSIP.Registrator.prototype = {
9595

9696
while(contacts--) {
9797
contact = response.parseHeader('contact', contacts);
98-
if(contact.uri === this.ua.contact.uri) {
98+
if(contact.uri.toString() === this.ua.contact.uri) {
9999
expires = contact.getParam('expires');
100100
break;
101+
} else {
102+
contact = null;
101103
}
102104
}
103105

0 commit comments

Comments
 (0)