diff options
author | Terry Wilson <twilson@digium.com> | 2008-01-17 03:09:32 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2008-01-17 03:09:32 +0000 |
commit | 417c6dcb1d232d81eeb8de8ebd72fe1bc308279a (patch) | |
tree | 55623b608d2b6e9cb6af4c51688990b22056c79e /configs/phoneprov.conf.sample | |
parent | ac3c95e370ab1aa12a3ff607f9dd5a273d25279d (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: https://origsvn.digium.com/svn/asterisk/trunk@98988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/phoneprov.conf.sample')
-rw-r--r-- | configs/phoneprov.conf.sample | 15 |
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 |