⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gnugk.ini

📁 H.323网守实现
💻 INI
字号:
; Sample configuration file; VoIP Billing Platform for GnuGk; Copyright (c) 2004, Michal Zygmuntowicz; This work is published under the GNU Public License (GPL); see file COPYING for details[Gatekeeper::Main]Fourtytwo=42Name=OpenH323GK[RoutedMode]GKRouted=1H245Routed=0DropCallsByReleaseComplete=1SendReleaseCompleteOnDRQ=1ForwardOnFacility=0[Proxy]Enable=0[RasSrv::RRQFeatures]OverwriteEPOnSameAddress=1AcceptEndpointIdentifier=0[RasSrv::ARQFeatures]ArjReasonRouteCallToSCN=0ArjReasonRouteCallToGatekeeper=1[GkStatus::Auth]rule=allowShutdown=1[Gatekeeper::Auth]RadAuth=required;RRQ,ARQ;SQLPasswordAuth=optional;RRQ;SQLAliasAuth=required;RRQdefault=allow[Gatekeeper::Acct]RadAcct=required;start,update,stop,on,off;SQLAcct=required;start,update,stop[RadAuth]Servers=localhostSharedSecret=testingAppendCiscoAttributes=1IncludeTerminalAliases=1IncludeEndpointIP=1[RadAcct]Servers=localhostSharedSecret=testingAppendCiscoAttributes=1IncludeEndpointIP=1[SQLPasswordAuth]Driver=PostgreSQLHost=localhostDatabase=voipdbUsername=gkradiusPassword=gkradiusQuery=SELECT u.chappassword FROM voipuser u JOIN voipaccount a ON u.accountid = a.id WHERE u.h323id = '%1' AND NOT u.disabled AND NOT a.disabled AND a.closed IS NULL[SQLAliasAuth]Driver=PostgreSQLHost=localhostDatabase=voipdbUsername=gkradiusPassword=gkradiusQuery=SELECT CASE WHEN u.framedip IS NULL THEN 'allow' ELSE 'sigip:' || host(u.framedip) END FROM voipuser u JOIN voipaccount a ON u.accountid = a.id WHERE u.h323id = '%1' AND NOT u.disabled AND NOT a.disabled AND a.closed IS NULL[SQLAcct]Driver=PostgreSQLHost=localhostDatabase=voipdbUsername=gkradiusPassword=gkradiusStartQuery=INSERT INTO voipcall (id, h323id, acctsessionid, h323confid, gkip, gkid, callingstationip, callingstationid, calledstationip, calledstationid, setuptime, acctstarttime, acctstartdelay, acctupdatetime) VALUES (DEFAULT, '%u', '%s', '%{ConfId}', '%{gkip}', '%g', NULLIF('%{caller-ip}', '')::INET, '%{Calling-Station-Id}', NULLIF('%{callee-ip}', '')::INET, '%{Called-Station-Id}', NULLIF('%{setup-time}', '')::TIMESTAMP(0) WITH TIME ZONE, now(), 0, now())UpdateQuery=UPDATE voipcall SET duration = '%d', connecttime = NULLIF('%{connect-time}','')::TIMESTAMP(0) WITH TIME ZONE, acctupdatetime = now() WHERE acctsessionid = '%s' AND gkid = '%g' AND acctstoptime IS NULLStopQuery=UPDATE voipcall SET acctstoptime = now(), duration = '%d', terminatecause = '%c', acctstopdelay = 0, setuptime = NULLIF('%{setup-time}', '')::TIMESTAMP(0) WITH TIME ZONE, connecttime = NULLIF('%{connect-time}', '')::TIMESTAMP(0) WITH TIME ZONE, disconnecttime = NULLIF('%{disconnect-time}', '')::TIMESTAMP(0) WITH TIME ZONE WHERE acctsessionid = '%s' AND gkid = '%g' AND acctstoptime IS NULLStopQueryAlt=INSERT INTO voipcall (id, h323id, acctsessionid, h323confid, gkip, gkid, callingstationip, callingstationid, calledstationip, calledstationid, setuptime, connecttime, disconnecttime, terminatecause, duration, acctstarttime, acctstartdelay, acctupdatetime, acctstoptime, acctstopdelay) VALUES (DEFAULT,'%u', '%s', '%{ConfId}', '%{gkip}', '%g', NULLIF('%{caller-ip}', '')::INET, '%{Calling-Station-Id}', NULLIF('%{callee-ip}', '')::INET, '%{Called-Station-Id}', NULLIF('%{setup-time}','')::TIMESTAMP(0) WITH TIME ZONE, NULLIF('%{connect-time}','')::TIMESTAMP(0) WITH TIME ZONE, NULLIF('%{disconnect-time}','')::TIMESTAMP(0) WITH TIME ZONE, '%c', '%d', (now() - '%d'::INTERVAL), 0, now(), now(), 0)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -