[svn-commits] rmudgett: trunk r347954 - in /trunk: ./ configs/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Dec 12 11:34:46 CST 2011


Author: rmudgett
Date: Mon Dec 12 11:34:39 2011
New Revision: 347954

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

Merged revisions 347953 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    trunk/   (props changed)
    trunk/configs/chan_dahdi.conf.sample
    trunk/configs/chan_ooh323.conf.sample
    trunk/configs/extensions.conf.sample
    trunk/configs/extensions.lua.sample
    trunk/configs/iax.conf.sample
    trunk/configs/sip.conf.sample
    trunk/configs/vpb.conf.sample

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.

Modified: trunk/configs/chan_dahdi.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/chan_dahdi.conf.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/chan_dahdi.conf.sample (original)
+++ trunk/configs/chan_dahdi.conf.sample Mon Dec 12 11:34:39 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: trunk/configs/chan_ooh323.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/chan_ooh323.conf.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/chan_ooh323.conf.sample (original)
+++ trunk/configs/chan_ooh323.conf.sample Mon Dec 12 11:34:39 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: trunk/configs/extensions.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/extensions.conf.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/extensions.conf.sample (original)
+++ trunk/configs/extensions.conf.sample Mon Dec 12 11:34:39 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: trunk/configs/extensions.lua.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/extensions.lua.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/extensions.lua.sample (original)
+++ trunk/configs/extensions.lua.sample Mon Dec 12 11:34:39 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: trunk/configs/iax.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/iax.conf.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/iax.conf.sample (original)
+++ trunk/configs/iax.conf.sample Mon Dec 12 11:34:39 2011
@@ -409,7 +409,7 @@
 ;
 [guest]
 type=user
-context=default
+context=public
 callerid="Guest IAX User"
 
 ;

Modified: trunk/configs/sip.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/sip.conf.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/sip.conf.sample (original)
+++ trunk/configs/sip.conf.sample Mon Dec 12 11:34:39 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: trunk/configs/vpb.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/vpb.conf.sample?view=diff&rev=347954&r1=347953&r2=347954
==============================================================================
--- trunk/configs/vpb.conf.sample (original)
+++ trunk/configs/vpb.conf.sample Mon Dec 12 11:34:39 2011
@@ -77,7 +77,7 @@
 ;
 ; Default context
 ;
-context=default
+context=public
 
 ;
 ; Echo cancellation




More information about the svn-commits mailing list