[asterisk-commits] rmudgett: branch 10 r347953 - /branches/10/configs/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 12 11:34:12 CST 2011


Author: rmudgett
Date: Mon Dec 12 11:34:05 2011
New Revision: 347953

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=347953
Log:
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/

Modified:
    branches/10/configs/chan_dahdi.conf.sample
    branches/10/configs/chan_ooh323.conf.sample
    branches/10/configs/extensions.conf.sample
    branches/10/configs/extensions.lua.sample
    branches/10/configs/iax.conf.sample
    branches/10/configs/sip.conf.sample
    branches/10/configs/vpb.conf.sample

Modified: branches/10/configs/chan_dahdi.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/chan_dahdi.conf.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/chan_dahdi.conf.sample (original)
+++ branches/10/configs/chan_dahdi.conf.sample Mon Dec 12 11:34:05 2011
@@ -51,9 +51,9 @@
 ;
 ;language=en
 ;
-; Context for calls. Defaults to 'default'
-;
-;context=incoming
+; Context for incoming calls. Defaults to 'default'
+;
+context=public
 ;
 ; Switchtype:  Only used for PRI.
 ;

Modified: branches/10/configs/chan_ooh323.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/chan_ooh323.conf.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/chan_ooh323.conf.sample (original)
+++ branches/10/configs/chan_ooh323.conf.sample Mon Dec 12 11:34:05 2011
@@ -88,7 +88,7 @@
 
 ;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

Modified: branches/10/configs/extensions.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/extensions.conf.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/extensions.conf.sample (original)
+++ branches/10/configs/extensions.conf.sample Mon Dec 12 11:34:05 2011
@@ -652,6 +652,15 @@
 ;exten => s,n,WaitExten
 ;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]
 ;

Modified: branches/10/configs/extensions.lua.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/extensions.lua.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/extensions.lua.sample (original)
+++ branches/10/configs/extensions.lua.sample Mon Dec 12 11:34:05 2011
@@ -144,7 +144,7 @@
 		end;
 
 		["1000"] = function()
-			app.goto("default", "s", 1)
+			app.goto("demo", "s", 1)
 		end;
 
 		["1234"] = function()
@@ -194,6 +194,15 @@
 		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;
 	};

Modified: branches/10/configs/iax.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/iax.conf.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/iax.conf.sample (original)
+++ branches/10/configs/iax.conf.sample Mon Dec 12 11:34:05 2011
@@ -409,7 +409,7 @@
 ;
 [guest]
 type=user
-context=default
+context=public
 callerid="Guest IAX User"
 
 ;

Modified: branches/10/configs/sip.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/sip.conf.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/sip.conf.sample (original)
+++ branches/10/configs/sip.conf.sample Mon Dec 12 11:34:05 2011
@@ -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

Modified: branches/10/configs/vpb.conf.sample
URL: http://svnview.digium.com/svn/asterisk/branches/10/configs/vpb.conf.sample?view=diff&rev=347953&r1=347952&r2=347953
==============================================================================
--- branches/10/configs/vpb.conf.sample (original)
+++ branches/10/configs/vpb.conf.sample Mon Dec 12 11:34:05 2011
@@ -77,7 +77,7 @@
 ;
 ; Default context
 ;
-context=default
+context=public
 
 ;
 ; Echo cancellation




More information about the asterisk-commits mailing list