aboutsummaryrefslogtreecommitdiffstats
path: root/configs/phoneprov.conf.sample
diff options
context:
space:
mode:
authortwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-17 03:09:32 +0000
committertwilson <twilson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-17 03:09:32 +0000
commit7918f534be20606736878f0a89df4a8369735ef3 (patch)
tree55623b608d2b6e9cb6af4c51688990b22056c79e /configs/phoneprov.conf.sample
parent507fd79b110f00a9433b04375b6996a82ae227df (diff)
Update res_phoneprov to default to setting the SERVER variable to the IP
the HTTP request for the config came in on and the SERVER_PORT to the bindport setting in sip.conf. I've left in the ability to override these options, because I can't always guess how someone might decide to do something weird with what is available to them--although needing to is pretty unlikely. Documentation was updated to reflect preference for not setting serveraddr, serveriface, or serverport. Tested on Linux and OS X. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@98988 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs/phoneprov.conf.sample')
-rw-r--r--configs/phoneprov.conf.sample15
1 files changed, 10 insertions, 5 deletions
diff --git a/configs/phoneprov.conf.sample b/configs/phoneprov.conf.sample
index 3b82490c1..8f55fa88b 100644
--- a/configs/phoneprov.conf.sample
+++ b/configs/phoneprov.conf.sample
@@ -1,9 +1,14 @@
[general]
-;serveraddr=192.168.1.1 ; Address to send to the phone to use as server address.
-serveriface=eth0 ; Same as above, except an ethernet interface.
- ; Useful for when the interface uses DHCP.
- ; There is no default for either of the above, and only one should be set.
-serverport=5060 ; Port to send to the phone to use as server port. Default is 5060.
+; The default behavior of res_phoneprov will be to set the SERVER template variable to
+; the IP address that the phone uses to contact the provisioning server and the
+; SERVER_PORT variable to the bindport setting in sip.conf. Unless you have a very
+; unusual setup, you should not need to set serveraddr, serveriface, or serverport.
+
+;serveraddr=192.168.1.1 ; Override address to send to the phone to use as server address.
+;serveriface=eth0 ; Same as above, except an ethernet interface.
+ ; Useful for when the interface uses DHCP and the asterisk http
+ ; server listens on a different IP than chan_sip.
+;serverport=5060 ; Override port to send to the phone to use as server port.
default_profile=polycom ; The default profile to use if none specified in users.conf
; You can define profiles for different phones specifying what files to register