[Asterisk-Users] Accountcode in SIP.CONF not set

Ed Greenberg edg at greenberg.org
Tue Apr 12 11:29:01 MST 2005


Using asterisk 1.0.5.

In my sip.conf I have this:

[user1]
type=friend
host=dynamic
context=users
disallow=all
allow=ulaw
secret=xxx
username=user1
accountcode=test

In my extensions.conf, I have this:
[users]
exten => _1NXXNXXXXXX,1,NoOp(${ACCOUNTCODE})
exten => _1NXXNXXXXXX,2,Dial(SIP/${EXTEN}@provider|60|s)

The call goes through, but ${ACCOUNTCODE} is blank:
   -- Executing NoOp("SIP/s-a990", "") in new stack

Any ideas why?
</edg>




More information about the asterisk-users mailing list