W
W
webportal2015-02-17 04:55:34
SIP
webportal, 2015-02-17 04:55:34

How to transfer Caller ID to VoxEngine?

There is a script:

// подключаем модуль записи
require(Modules.Recorder);

// устанавливаем прослушиватель события звонка - включаем запись разговора
VoxEngine.addEventListener(AppEvents.CallAlerting, function (e) {
  var call = e.call, // экземпляр звонка
  recorder = VoxEngine.createRecorder(); // создаем экземпляр записывающего "магнитофона"

  // как только установлено соединение - включаем запись
  call2.addEventListener(CallEvents.Connected, function (callevent) {
    call.sendMediaTo(recorder);
  });
});

// совершаем сам звонок
VoxEngine.forwardCallToPSTN();

There is a number purchased from VoxImplant. The call is made via WebSDC voximplant.com/docs/references/websdk/VoxImplant.C... but the wrong number is determined on the phone that was purchased

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aylarov, 2015-02-17
@aylarov

The forwardCallToPSTN method does not provide for passing the Caller ID, for this you need to use the voximplant.com/docs/references/appengine/VoxEngine... method , see the second parameter. And then connect this outgoing call with the call from the SDK via easyProcess voximplant.com/docs/references/appengine/VoxEngine...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question