You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lua-ngcp-kamailio/ngcp/ngcp.lua

41 lines
751 B

#!/usr/bin/env lua5.1
require 'ngcp.pp'
require 'ngcp.dp'
-- class NGCPConfig
NGCPConfig = {
__class__ = 'NGCPConfig'
}
NGCPConfig_MT = { __index = NGCPConfig }
function NGCPConfig:new()
local t = {}
setmetatable( t, NGCPConfig_MT )
return t
end
-- class
-- class NGCP
NGCP = {
__class__ = 'NGCP'
}
NGCP_MT = { __index = NGCP }
function NGCP:new()
local t = NGCP.init()
setmetatable( t, NGCP_MT )
return t
end
function NGCP.init()
local t = {
config = NGCPConfig:new(),
prefs = {
domain = NGCPDomainPrefs:new(),
peer = NGCPPeerPrefs:new()
}
}
return t
end
-- class
--EOF