From e2597678b1bf10bb2ea2fac9cd6c3bd6e53e5b46 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Mon, 12 Dec 2011 17:34:39 +0000 Subject: Update sample configs to put incoming calls into context public. * Add warning about the SIP allowguest option in context public. (closes issue ASTERISK-14122) Reported by: Alec Davis Review: https://reviewboard.asterisk.org/r/719/ ........ Merged revisions 347953 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@347954 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/chan_dahdi.conf.sample | 4 ++-- configs/chan_ooh323.conf.sample | 2 +- configs/extensions.conf.sample | 9 +++++++++ configs/extensions.lua.sample | 11 ++++++++++- configs/iax.conf.sample | 2 +- configs/sip.conf.sample | 2 +- configs/vpb.conf.sample | 2 +- 7 files changed, 25 insertions(+), 7 deletions(-) (limited to 'configs') diff --git a/configs/chan_dahdi.conf.sample b/configs/chan_dahdi.conf.sample index 841787c4c..10c55ca75 100644 --- a/configs/chan_dahdi.conf.sample +++ b/configs/chan_dahdi.conf.sample @@ -51,9 +51,9 @@ ; ;language=en ; -; Context for calls. Defaults to 'default' +; Context for incoming calls. Defaults to 'default' ; -;context=incoming +context=public ; ; Switchtype: Only used for PRI. ; diff --git a/configs/chan_ooh323.conf.sample b/configs/chan_ooh323.conf.sample index 20ccf73ec..a39a47afc 100644 --- a/configs/chan_ooh323.conf.sample +++ b/configs/chan_ooh323.conf.sample @@ -88,7 +88,7 @@ gatekeeper = DISABLE ;Sets default context all clients will be placed in. ;Default - default -context=default +context=public ;Sets rtptimeout for all clients, unless overridden ;Default - 60 seconds diff --git a/configs/extensions.conf.sample b/configs/extensions.conf.sample index 890684578..b9d21d361 100644 --- a/configs/extensions.conf.sample +++ b/configs/extensions.conf.sample @@ -653,6 +653,15 @@ exten => _X.,1,Macro(page,SIP/${EXTEN}) ;exten => 1,1,Goto(default,steve,1) ;exten => 2,1,Goto(default,mark,2) +[public] +; +; ATTENTION: If your Asterisk is connected to the internet and you do +; not have allowguest=no in sip.conf, everybody out there may use your +; public context without authentication. In that case you want to +; double check which services you offer to the world. +; +include => demo + [default] ; ; By default we include the demo. In a production system, you diff --git a/configs/extensions.lua.sample b/configs/extensions.lua.sample index 5868de4f7..3badcb4aa 100644 --- a/configs/extensions.lua.sample +++ b/configs/extensions.lua.sample @@ -144,7 +144,7 @@ extensions = { end; ["1000"] = function() - app.goto("default", "s", 1) + app.goto("demo", "s", 1) end; ["1234"] = function() @@ -194,6 +194,15 @@ extensions = { include = {"demo"}; }; + public = { + -- ATTENTION: If your Asterisk is connected to the internet and you do + -- not have allowguest=no in sip.conf, everybody out there may use your + -- public context without authentication. In that case you want to + -- double check which services you offer to the world. + -- + include = {"demo"}; + }; + ["local"] = { ["_NXXXXXX"] = outgoing_local; }; diff --git a/configs/iax.conf.sample b/configs/iax.conf.sample index 35b8d7744..2f5858e95 100644 --- a/configs/iax.conf.sample +++ b/configs/iax.conf.sample @@ -409,7 +409,7 @@ autokill=yes ; [guest] type=user -context=default +context=public callerid="Guest IAX User" ; diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample index cb492161e..1f7b54970 100644 --- a/configs/sip.conf.sample +++ b/configs/sip.conf.sample @@ -112,7 +112,7 @@ ; "setvar" to set variables that can be used in the dialplan for various limits. [general] -context=default ; Default context for incoming calls +context=public ; Default context for incoming calls. Defaults to 'default' ;allowguest=no ; Allow or reject guest calls (default is yes) ; If your Asterisk is connected to the Internet ; and you have allowguest=yes diff --git a/configs/vpb.conf.sample b/configs/vpb.conf.sample index 31e5da1ec..fecb3ec59 100644 --- a/configs/vpb.conf.sample +++ b/configs/vpb.conf.sample @@ -77,7 +77,7 @@ language=en ; ; Default context ; -context=default +context=public ; ; Echo cancellation -- cgit v1.2.3