(I am responding to the sipx-dev list since this is probably of interest to
all)

Pepin, Martin (CAR:9D80) wrote:
> Hi Damian,
> 
> How can I make sure that the sipXconfig generated sipxrest-config.xml
> file gets replicated on all servers even though the REST server resides
> on a particular server?

sipXconfig generates configuration files based on the description of the
service usually in services.beans.xml
Every service declared there (and if you add a new service it'll have to be
declared there) has a list of configuration files that are replicated for
the service. sipXconfig knows where services should be running and it'll
only try to send the configuration files to the servers on which services
are running.

Additionally your service descriptor read by sipxsupervisor would have to
declare dependency on the configuration file that you want to read.
Otherwise sipXconfig would be sending the file but sipxsupervisor will not
accept it.

While you can certainly configure sipXconfig and sipXsupervisor to
replicate any file to any service this is probably not the right approach.
Please read my recent e-mail on this very topic here:
<http://permalink.gmane.org/gmane.comp.voip.sipx.devel/18402>

> 
> I am writing a REST client and I need to know where the REST server is
> and what https number I should be using. This info is in the
> sipxrest-config.xml file.
> 
> -bash-3.2$ more etc/sipxpbx/sipxrest-config.xml
> <?xml version="1.0" ?>
> <rest-config
> xmlns="http://www.sipfoundry.org/sipX/schema/xml/rest-config-00-00";>
>   <ip-address>47.135.152.180</ip-address>
>   <https-port>6666</https-port>
>   <external-http-port>6667</external-http-port>
>   <sipx-proxy-domain>bcmdesk2180.ca.nortel.com</sipx-proxy-domain>
>  
> <log-directory>/home/sipxchange/WORKING2/INSTALL/var/log/sipxpbx</log-directory>
> 
>   <log-level>NOTICE</log-level>
>   <sip-port>6050</sip-port>
> </rest-config>
> 
> Thanks,
> Martin
> 


It's usually easier to just include all the information that your service
needs in its configuration file.
D.
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to