[asterisk-users] Setvar=var=val in sip.conf
Douglas Garstang
dgarstang at oneeighty.com
Mon Jul 17 10:10:50 MST 2006
sip.conf:
[2944093]
type = friend
context = one_start
username = 2944093
accountcode = 2944093
subscribecontext = one_blf
qualify = no
canreinvite = no
host = dynamic
callgroup = 1
pickupgroup = 1
dtmfmode = rfc2833
nat = no
mailbox = 2944093 at voicemail
callerid = Doug <2944093>
setvar = cid_agent = 80014054 ; <---- This should set variable cid_agent to 80014054
extensions.conf:
exten => 4001,1,Answer
exten => 4001,2,NoOp(${cid_agent})
When I dial 4001, the console displays:
-- Executing Answer("SIP/2944093-956b", "") in new stack
-- Executing NoOp("SIP/2944093-956b", "") in new stack
It seems that setvar= in sip.conf is not working. I've used it before. What am I missing?
Doug.
More information about the asterisk-users
mailing list