@fonoster/apiserver 0.12.8 → 0.12.12

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.
@@ -57,8 +57,7 @@ function createCreateCallSubscriber(config) {
57
57
  }
58
58
  const { ref, from, to, appRef, accessKeyId, timeout, metadata } = msg.json();
59
59
  logger.verbose("received a new call request", Object.assign({}, msg.json()));
60
- yield ariConn.channels.originateWithId({
61
- channelId: ref,
60
+ yield ariConn.channels.originate({
62
61
  app: common_1.STASIS_APP_NAME,
63
62
  endpoint: `PJSIP/${envs_1.ASTERISK_TRUNK}/sip:${to}@${envs_1.ASTERISK_SYSTEM_DOMAIN}`,
64
63
  timeout,
@@ -172,6 +172,11 @@ class VoiceClientImpl {
172
172
  channel.externalMedia((0, createExternalMediaConfig_1.createExternalMediaConfig)(port));
173
173
  channel.once(types_1.AriEvent.STASIS_START, (_, channel) => __awaiter(this, void 0, void 0, function* () {
174
174
  bridge.addChannel({ channel: [snoopChannel.id, channel.id] });
175
+ this.ari.bridges.record({
176
+ bridgeId: bridge.id,
177
+ name: `${this.config.appRef}_${this.config.sessionRef}_b`,
178
+ format: "wav"
179
+ });
175
180
  }));
176
181
  channel.once("ChannelLeftBridge", () => __awaiter(this, void 0, void 0, function* () {
177
182
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/apiserver",
3
- "version": "0.12.8",
3
+ "version": "0.12.12",
4
4
  "description": "APIServer for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -73,5 +73,5 @@
73
73
  "@types/uuid": "^10.0.0",
74
74
  "@types/validator": "^13.12.0"
75
75
  },
76
- "gitHead": "9f8a2105d2b9d7b98bb32d9439e3314b747e1083"
76
+ "gitHead": "47d04a2386eac6890b58bed3ff0974164ea13645"
77
77
  }