Roger Schreiter
2004-Oct-05 15:15 UTC
[Asterisk-Users] Howto change ACCOUNTCODE in extensions.conf
Hi, I want to assign different accountcodes (for billing) according to the IP address and or the H.323 name (chan_oh323). I tried in extensions.conf something like setVar(ACCOUNTCODE=userid) but in cdr I find the accountcode set in oh323.conf. Howto change it in extensions.conf? Roger.
Jeremy McNamara
2004-Oct-05 15:19 UTC
[Asterisk-Users] Howto change ACCOUNTCODE in extensions.conf
Roger Schreiter wrote:> Hi, > > I want to assign different accountcodes (for billing) > according to the IP address and or the H.323 name > (chan_oh323). > > I tried in extensions.conf something like > setVar(ACCOUNTCODE=userid) > but in cdr I find the accountcode set in oh323.conf. > > Howto change it in extensions.conf?How about SetAccount ? *CLI> show application SetAccount -= Info about application 'SetAccount' =- [Synopsis]: Sets account code [Description]: SetAccount([account]): Set the channel account code for billing purposes. Always returns 0. show applications is your friend, use it. Jeremy McNamara