[Asterisk-Users] asterisk-wide variables

Michael Manousos manousos at inaccessnetworks.com
Thu Aug 26 07:55:51 MST 2004


Hi Rene,

Kramer, R.D.J. wrote:
> Dear all,
> 
> I have an Asterisk box serving as gateway to a set of POTS phones that
> all share the same telephone number, and I register this box as gateway
> to a H.323 gatekeeper with the telephone number as the gateway prefix.
> 
> I am wondering if there is a way to have Asterisk-wide (perhaps to be
> called 'universal') variables that can be used in all config files. As
> far as I know, now e.g. in extensions.conf you can declare a 'global'
> variable but it can only be used within extensions.conf.
> 
> As an example: I set the gateway's telephone number both in
> extensions.conf, oh323.conf and phones.conf but I don't want to change
> the same data in three separate files whenever I want to set a different
> telephone number for the gateway.

Currently there is no such capability. You just have to declare
the same information to several files.

> 
> Thanks for any advice/clarification,
> Rene.
> 

Michael.





More information about the asterisk-users mailing list