@wireapp/avs 10.5.16 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -174,13 +174,17 @@ export declare class Wcall {
174
174
  setActiveSpeakerHandler(wuser: number, activeh: WcallActiveSpeakerHandler): void;
175
175
  requestVideoStreams(wuser: number, convid: string, mode: number, json: string): number;
176
176
  processNotifications(wuser: number, processing: number): number;
177
- audioRecord(wuser: number, path: string): number;
177
+ audioRecord(wuser: number, convid: string, path: string): number;
178
178
  poll(): void;
179
179
  setupEx(flags: number): number;
180
180
  eventCreate(userid: string, clientid: string, incomingh: WcallIncomingHandler, missedh: WcallMissedHandler, closeh: WcallCloseHandler, arg?: number): number;
181
181
  eventStart(wuser: number): void;
182
182
  eventProcess(wuser: number, buf: string, len: number, curr_time: number, msg_time: number, convid: string, userid: string, clientid: string, conv_type: number): number;
183
183
  eventEnd(wuser: number): void;
184
+ sipInit(wuser: number, conf_path: string): number;
185
+ sipClose(wuser: number): number;
186
+ sipCreate(wuser: number, convid: string, aor: string): number;
187
+ sipDestroy(wuser: number, convid: string, aor: string): number;
184
188
  setMode(mode: number): void;
185
189
  getMode(): number;
186
190
  setConfigVersion(sft_version: number, turn_version: number): void;
package/dist/avs_wcall.js CHANGED
@@ -602,8 +602,8 @@ var Wcall = /** @class */ (function () {
602
602
  Wcall.prototype.processNotifications = function (wuser, processing) {
603
603
  return this.em_module.ccall("wcall_process_notifications", "number", ["number", "number"], [wuser, processing]);
604
604
  };
605
- Wcall.prototype.audioRecord = function (wuser, path) {
606
- return this.em_module.ccall("wcall_audio_record", "number", ["number", "string"], [wuser, path]);
605
+ Wcall.prototype.audioRecord = function (wuser, convid, path) {
606
+ return this.em_module.ccall("wcall_audio_record", "number", ["number", "string", "string"], [wuser, convid, path]);
607
607
  };
608
608
  Wcall.prototype.poll = function () {
609
609
  this.em_module.ccall("wcall_poll", "null", [], []);
@@ -660,6 +660,18 @@ var Wcall = /** @class */ (function () {
660
660
  Wcall.prototype.eventEnd = function (wuser) {
661
661
  this.em_module.ccall("wcall_event_end", "null", ["number"], [wuser]);
662
662
  };
663
+ Wcall.prototype.sipInit = function (wuser, conf_path) {
664
+ return this.em_module.ccall("wcall_sip_init", "number", ["number", "string"], [wuser, conf_path]);
665
+ };
666
+ Wcall.prototype.sipClose = function (wuser) {
667
+ return this.em_module.ccall("wcall_sip_close", "number", ["number"], [wuser]);
668
+ };
669
+ Wcall.prototype.sipCreate = function (wuser, convid, aor) {
670
+ return this.em_module.ccall("wcall_sip_create", "number", ["number", "string", "string"], [wuser, convid, aor]);
671
+ };
672
+ Wcall.prototype.sipDestroy = function (wuser, convid, aor) {
673
+ return this.em_module.ccall("wcall_sip_destroy", "number", ["number", "string", "string"], [wuser, convid, aor]);
674
+ };
663
675
  Wcall.prototype.setMode = function (mode) {
664
676
  this.em_module.ccall("wcall_set_mode", "null", ["number"], [mode]);
665
677
  };
package/package.json CHANGED
@@ -27,5 +27,5 @@
27
27
  "prepack": "prettier -w src/avs_wcall.ts && tsc && cp src/*.js src/*.d.ts dist/",
28
28
  "test": "karma start"
29
29
  },
30
- "version": "10.5.16"
30
+ "version": "11.0.1"
31
31
  }