[Asterisk-Users] How to transfer value to extensions.conf?
Ning Zhou
n.ningzhou at gmail.com
Fri Nov 26 08:56:33 MST 2004
Hi, all,
I met a problem for several days, any suggestion is really appreciated!!!
I'd like to do autodial using Asterisk.
For example, I have a file under /var/spool/asterisk/outgoing, which include:
channel: zap/g1/12345
MaxRetries: 0
RetryTime: 60
WaitTime: 20
Context: default
Extension: 2222
Priority: 1
And in my "extensions.conf" file, I have
[default]
exten => 2222,1,Dial(Zap/g1/34567,20)
exten => 2222,2,Hangup
Then Asterisk will first dial the 'number 12345, then dial the number
indicted in the exten =>2222 which is 34567, then setup a bridge
between them. That is exactly what I want.
My question is, if I like to transfer some variable to the
extensions.conf, to replace the number 34567, since the number dialed
every time is not a fixed phone number, what should I do?
Really hope you have give me some hints.
BRs,
ning zhou
More information about the asterisk-users
mailing list