Comparing version 0.18.0 to 0.18.1
@@ -294,5 +294,10 @@ import { C, Grammar, URI } from "../core"; | ||
} | ||
/* Adding host and port checks may break people not using contactName, so only check those | ||
* if the parameter is set. The server mucking with host and port is entirely legal, | ||
* so in cases where that occurs usage of contactName is currently broken. | ||
*/ | ||
if (contact.uri.user === this.userAgent.contact.uri.user && | ||
contact.uri.host === this.userAgent.contact.uri.host && | ||
contact.uri.port === this.userAgent.contact.uri.port) { | ||
(this.userAgent.configuration.contactName === "" || | ||
(contact.uri.host === this.userAgent.contact.uri.host && | ||
contact.uri.port === this.userAgent.contact.uri.port))) { | ||
expires = Number(contact.getParam("expires")); | ||
@@ -299,0 +304,0 @@ break; |
@@ -475,3 +475,3 @@ import { DigestAuthentication, Grammar, IncomingRequestMessage, IncomingResponseMessage, Levels, LoggerFactory, Parser, URI, UserAgentCore } from "../core"; | ||
initContact() { | ||
const contactName = this.options.contactName != "" ? this.options.contactName : createRandomToken(8); | ||
const contactName = this.options.contactName !== "" ? this.options.contactName : createRandomToken(8); | ||
const contactParams = this.options.contactParams; | ||
@@ -478,0 +478,0 @@ const contact = { |
@@ -1,2 +0,2 @@ | ||
declare const version = "0.18.0"; | ||
declare const version = "0.18.1"; | ||
declare const name = "sip.js"; | ||
@@ -3,0 +3,0 @@ export { name, version }; |
@@ -1,2 +0,2 @@ | ||
export declare const LIBRARY_VERSION = "0.18.0"; | ||
export declare const LIBRARY_VERSION = "0.18.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,1 +0,1 @@ | ||
export const LIBRARY_VERSION = "0.18.0"; | ||
export const LIBRARY_VERSION = "0.18.1"; |
@@ -5,3 +5,3 @@ { | ||
"description": "A SIP library for JavaScript", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
26164
1282014
567