[Asterisk-Users] extensions.conf variable declaration
Benjamin Lawetz
benthos at step.polymtl.ca
Wed Jul 21 07:53:28 MST 2004
Hi,
I'm setting up multiple asterisk servers and trying to do the classic
DIAL(IAX2/asterisk1/${EXTEN}&IAX2/asterisk2/${EXTEN}&IAX2/asterisk3/${EXTEN},15)
After googling a bit, I fell on a discussion about putting this in a
variable so that adding additionnal servers would be easy. I can't seem to
find the link anymore, but it went something like this:
extensions.conf:
[global]
SERVERS = IAX2/asterisk1&IAX2/asterisk2
[default]
exten => 1234,1,DIAl(${SERVERS},15)
unfortunately, I need to have the ${EXTEN} in the variable name. But that
causes the ${EXTEN} to be evaluated at the declaration time (so it's
empty).
I tried escaping the $ sign, but that didn't do much either.
Is there a way to include the ${EXTEN} in a variable so it is evaluated at
"execution" time ?
Tried googling the archives, but I guess I didn't find the right
combination of words :-(
Thanks
--
\\\|///
\\ - - //
( @ @ )
---oOOo-(_)-oOOo-------------------------------
A compliment is something like a kiss through a veil.
-- Victor Hugo
--------------Oooo-----------------------------
oooO ( ) Benjamin Benthos Lawetz
( ) ) / mailto:benthos at step.polymtl.ca
\ ( (_/ ICQ# 4269530
\_)
More information about the asterisk-users
mailing list