On Thu, 2009-04-02 at 20:07 -0400, Dale Worley wrote:
> I think I've worked out the proper sequence for refreshing a sipX
> working copy and setting it to a desired hostname and IP address:
> 
> To (re-)set-up a sipX system for a particular host name and IP address:
> 
> 1. Build the sipX system.  (This sets the first-run flag.)

Where do you think this sets the first-run flag?  What command do you
mean by "build the sipX system"?

> 2. If you put the host's name in /etc/hosts as a name for 127.0.0.1
> (which allows your host to know its name even if its network
> connection is down), put your host's preferred FQDN as the *first*
> hostname in the line for 127.0.0.1.  Otherwise, sipxecs-setup's
> getfqdn() will decide that your host is "localhost.localdomain".

I do this slightly differently - I add a line to /etc/hosts:

127.0.0.2       scott.local

then as root run 'hostname scott.local'

any 127 address is usable as a local address, and this way you can tell
whether you're using localhost when you shouldn't.

> 3. Delete etc/sipxpbx/ssl, to prepare for installing new certificates.

Also remove all files in var/sipxdata/certdb

> 4. Run bin/sipxecs-setup.  Give it the correct IP address and netmask.
> Give it the correct FQDN.
> 
> 5.Set SIP_REALM and CONFIG_HOSTS in etc/sipxpbx/domain-config.
> Set SIPXCHANGE_DOMAIN_NAME and SIPXCHANGE_REALM in config.defs.
> *Note that the realm must match the realm used in the user credentials
> currently in the config database or else the users' passwords must be
> reentered.

I've got a patch queued up that should remove the need for this step,
since it removes all use of config.defs - just waiting for some help
with the last few references in sipXconfig before I can check it in.

> 6. Delete the contents of var/log/sipxpbx so you can easily see the
> post-revision messages.

Better to do that before you run sipxecs-setup so you have a good
setup.log

> 7. Run "etc/init.d/sipxecs start".
> 
> 8. Log into the web UI.
> 
> 9. Go to the Servers page, set up one server, the host, with its IP
> address.  Send profiles to it.  Restart all services.  *Note: Do *not*
> stop all services and then start all services, as that will stop
> sipXconfig.  (See XCF-3591.)

I don't think I've had to do that one... perhaps because of the
difference in how I set the host?



_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to