aboutsummaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-07 23:45:34 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-07 23:45:34 +0000
commitcafa29f67373a97017a8c5c3cf046208b805278c (patch)
tree647d4e75ec9858b9b579579b799f3cfb8af69cd6 /configs
parent35829f979ae2fa02b2d9cac8155a0ddb604d79d3 (diff)
Add option to register extensions on IAX or SIP registration
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3746 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs')
-rwxr-xr-xconfigs/iax.conf.sample10
-rwxr-xr-xconfigs/sip.conf.sample12
2 files changed, 22 insertions, 0 deletions
diff --git a/configs/iax.conf.sample b/configs/iax.conf.sample
index ff1543f0f..6068ce613 100755
--- a/configs/iax.conf.sample
+++ b/configs/iax.conf.sample
@@ -152,6 +152,15 @@ tos=lowdelay
;
;mailboxdetail=yes
;
+; If regcontext is specified, Asterisk will dynamically
+; create and destroy a NoOp priority 1 extension for a given
+; peer who registers or unregisters with us. The actual extension
+; is the 'regexten' parameter of the registering peer or its
+; name if 'regexten' is not provided. More than one regexten may be supplied
+; if they are separated by '&'. Patterns may be used in regexten.
+;
+;regcontext=iaxregistrations
+;
; Guest sections for unauthenticated connection attempts. Just
; specify an empty secret, or provide no secret section.
;
@@ -262,6 +271,7 @@ host=216.207.245.47
;[marko]
;type=friend
;host=dynamic
+;regexten=1234
;secret=moofoo
;context=default
;permit=0.0.0.0/0.0.0.0
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample
index 8dc3d32e2..de46d9439 100755
--- a/configs/sip.conf.sample
+++ b/configs/sip.conf.sample
@@ -71,6 +71,16 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; ; Note that promiscredir when redirects are made to the
; ; local system will cause loops since SIP is incapable
; ; of performing a "hairpin" call.
+;
+; If regcontext is specified, Asterisk will dynamically
+; create and destroy a NoOp priority 1 extension for a given
+; peer who registers or unregisters with us. The actual extension
+; is the 'regexten' parameter of the registering peer or its
+; name if 'regexten' is not provided. More than one regexten may be supplied
+; if they are separated by '&'. Patterns may be used in regexten.
+;
+;regcontext=iaxregistrations
+;
; Asterisk can register as a SIP user agent to a SIP proxy (provider)
; Format for the register statement is:
; register => user[:secret[:authuser]]@host[:port][/extension]
@@ -145,6 +155,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
; username
; template
; fromdomain
+; regexten
; fromuser
; host
; mask
@@ -190,6 +201,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;Turn off silence suppression in X-Lite ("Transmit Silence"=YES)!
;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
;type=friend
+;regexten=1234 ; When they register, create extension 1234
;username=xlite1
;callerid="Jane Smith" <5678>
;host=dynamic