[asterisk-users] Conditional "includes" in iax.conf

Scott Stingel scott at evtmedia.com
Wed Jul 7 13:18:25 CDT 2010


Hello-

For maintenance purposes, if possible I'd like to use the same iax.conf 
file in several different asterisk systems.   However, on one of the 
systems only, I would like to include an IAX "register" command to 
another external system.

Within iax.conf or other configuration files (other than 
extensions.conf), is there a way of determining what system I'm running 
on, and include a particular configuration item conditionally?   I guess 
what I'm asking is there a way to conditionally "include" lines in a 
configuration depending on the value of some linux environment variable?

thanks





More information about the asterisk-users mailing list