Release Call

Introduction

An SCP Lua script may request that the call be ended by sending INAP ReleaseCall on the SSP transaction.

If an SRF is currently open then a prior DisconnectForwardConnection will be sent on the SSP transaction, and any external SRF transaction will be ended according to the applicable SRF configuration.

No further telephony methods are permitted after performing release_call.

The LhoScpLuaService Release Call API

.release_call

The release_call method takes the following arguments:

Attribute Type Description
cause 0 - 127 Specify an explicit release cause.
(Default = as configured in LhoScpApp).

The release_call method returns true immediately.

Example (releasing with default release code):

local n2svcd = require "n2.n2svcd"
local scp_api = require "n2.n2svcd.scp"

local scp_call = ...

scp_api.release_call ()

return