mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
sip.js: Additional tests for updated/added methods
This commit is contained in:
@@ -7,11 +7,12 @@ const logConnector = (level: string, category: string, label: string, content: s
|
||||
|
||||
const uaWithConfig: SIP.UA = new SIP.UA({
|
||||
uri: "wss://uri",
|
||||
wsServers: ["s1", "s2"],
|
||||
wsServers: ["s1", "s2", { ws_uri: "s3", weight: 1 }],
|
||||
allowLegacyNotifications: true,
|
||||
authenticationFactory: mediaHandler,
|
||||
authorizationUser: "user",
|
||||
autostart: true,
|
||||
autostop: false,
|
||||
connectionRecoveryMaxInterval: 1,
|
||||
connectionRecoveryMinInterval: 1,
|
||||
displayName: "name",
|
||||
@@ -93,3 +94,12 @@ ua.on('invite', (session: SIP.Session) => {
|
||||
session.on('rejected', (response) => {});
|
||||
});
|
||||
ua.on('message', (message: SIP.Message) => { });
|
||||
|
||||
session.hold({
|
||||
extraHeaders: [""],
|
||||
eventHandlers: {
|
||||
succeeded: () => {}
|
||||
}
|
||||
});
|
||||
|
||||
ua.start().stop();
|
||||
|
||||
Reference in New Issue
Block a user