SBN Media Lua Standard Library

These are the built-in libraries available to scripts executed by SBN Media.

Import them into your scripts using "require"

local api3 = require("api3")

api3.exec("g_ma_installation", { s_ins = 5, deal_id = "1001" })

Modules

alarmqueue Access the SBN alarm queue
api3 Execute SBN API3 calls This uses the SBN Front End service to execute API3 calls, returning results in a LUA friendly format
config Read configuration
device Connect and control SBN media devices
installation Lookup SBN installation information
logger Log messages using the SBN Media logger
nats Simplified NATS (https://nats.io) client
sbnivr Support for processing SBN IVR messages
script-control Script control
script-globals Script globals
search Search for an installation
signal Inject a signal into SBN
sip Control the SIP Proxy
sms Control the Paging Queue
tonerecognizer Use the tone recognizer service to recognize DTMF tones within a stream
tts Convert text to speech and send to a device
uniqueid Generate a unique identifier
url Parse urls
generated by LDoc 1.5.0 Last updated 2025-06-05 18:17:56