[Asterisk-Users] Accountcodes
David A. Lauer
dalauer at tristarcorp.net
Tue Dec 30 21:58:06 MST 2003
I'm trying to use accountcodes, but experiencing inconsistant
results. I have two * servers, one which appears to be working as
expected and one not. I would like to prepend the device's accountcode
to the dialed number. The sip1 server does not seem to have the
${ACCOUNTCODE} variable set when reading the extensions.conf, but sip2
server does.
What troubleshooting or trace information can I review to determine the
cause?
sip server #1
sip.conf
[2105]
type=friend
username=2105
secret=105
canreinvite=no
host=dynamic
;context=from-sip
mailbox=2105
nat=yes
accountcode=22222
extensions.conf
exten => _1NXXNXXXXXX,1,Dial(SIP/${ACCOUNTCODE}#${EXTEN}@200.62.15.251)
sip server #2
sip.conf
[2108]
type=friend
username=2108
secret=108
canreinvite=no
host=dynamic
context=from-sip
mailbox=2108
nat=yes
callerid=9549778081
accountcode=12345
extensions.conf
exten => _1NXXNXXXXXX,1,Dial(SIP/${ACCOUNTCODE}#${EXTEN}@200.62.15.251)
Thanks,
--
David A. Lauer
Tristar Communications
More information about the asterisk-users
mailing list