~singpolyma/cheogram-sip

c46ceee6ab8d5b34c39550ad54a4f03737e8caec — Stephen Paul Weber 8 months ago 44f1e58
Log bad calls for fail2ban to find, fix default extensions
1 files changed, 6 insertions(+), 5 deletions(-)

M extensions.lua
M extensions.lua => extensions.lua +6 -5
@@ 16,15 16,16 @@ end
extensions = {
	public = {
		["_X!"] = function(context, extension)
			app.hangup(1)
			app.log("NOTICE", "Call from '' (" .. channel.CHANNEL("peerip"):get() .. ":0) to extension '" .. extension .. "' rejected because extension not found in context 'public'.")
			app.goto("i", 1)
		end;

		["_[a-z]"] = function(context, extension)
			app.hangup(1)
		["i"] = function(context, extension)
			app.goto("default", "i", 1)
		end;

		["_[a-z][a-z]"] = function(context, extension)
			app.hangup(1)
		["h"] = function(context, extension)
			app.goto("default", "h", 1)
		end;

		["_."] = function(context, extension)