[Asterisk-Users] want to set a var in sip.conf

brian k. west brian at bkw.org
Tue May 18 23:10:32 MST 2004


Just as a better example of how to use accountcode for this ... maybe we
could add areacode= to sip.conf and pull that into a var instead of wasting
the accountcode for this.... hrm...

[1234567]
username=whatever
secret=whatever
context=phones
accountcode=920

 then in extensions.conf

[outbound]
exten => NXXXXXX,1,goto(1${ACCOUNTCODE}${EXTEN},1)

[phones]
include => outbound





More information about the asterisk-users mailing list