-
-
Save anonymous/d256470e48ce66c0dd094eac996a6233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VoxEngine.addEventListener(AppEvents.Started, function() { | |
// Стартуем скрипт подтверждения доставки через HTTP API | |
// и передаем в сценарий все нужные данные | |
var data = VoxEngine.customData(); | |
var params = data ? JSON.parse(data) : {}; | |
if (params.phoneToCall) { | |
// Собственно, маскировка номера: звоним от лица колл центра | |
var out = VoxEngine.callPSTN(params.phoneToCall, ACCESS_NUMBER); | |
// ... | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment