login | register
Sat 17 of May, 2008 [05:20 UTC]

voip-info.org

Search with Google
Search this site with Google. Results may not include recent changes.
 
Google Ads
Shoutbox
  • Juan Ortega, Thu 15 of May, 2008 [10:33 UTC]: Hi everybody, I'm Juan, an ITCom student, and I need to know what basic elements I need to create a VoIP network. Can anybody helpme, please?,Thank you very much
  • gineta, Wed 14 of May, 2008 [03:58 UTC]: any here not fine the configuration of firewall juniper -screem for VOIP asterisk????
  • Anoop Prabhakaran, Tue 13 of May, 2008 [12:16 UTC]: I am developing Asterisk IVR, Whenever i make a internation call to the IVR system, the DTMF is not getting detected properly, this happens only for the first time, second call onwards system works fine. why this is happening
  • joe, Mon 12 of May, 2008 [04:27 UTC]: Is there an opensource browser based softphone, or a system like Busta where everything is not manages through their website?
  • Nick Barnes, Fri 09 of May, 2008 [11:36 UTC]: Christopher - yesterday I tried an Asterisk install on a CentOS 5.1 box with stock GUI and it all worked fine. Sorry I can't help.
  • aero, Fri 09 of May, 2008 [08:20 UTC]: can someone help me out on this, i tried to play some sound files on my asterisk box and this is the error message i got. WARNING[4429]: format_wav.c:169 check_header: Unexpected freqency 22050 May 8 11:17:39 WARNING[4433]: codec_gsm.c:194 gsmtolin_fra
  • Christopher Faust, Thu 08 of May, 2008 [14:15 UTC]: I beleive that I may have to change something in the xserver configuration. Please advise
  • Christopher Faust, Thu 08 of May, 2008 [14:14 UTC]: Everything was perfect. In the bios I have increased the memory allocated Still receive input not supported on my display.
  • Christopher Faust, Thu 08 of May, 2008 [14:13 UTC]: This would not be my main box. I am doing some testing to see if I can install zaptel and asterisk 1.4 on a full centos 5.1 box with development software Its bizzare, because before I went through the asterisk and zaptel installation everything was perfe
  • Nick Barnes, Thu 08 of May, 2008 [13:44 UTC]: Christopher - I can't see any way in which an Asterisk installation would muck your GUI, but remember that it is advised not to use a GUI on an Asterisk box anyway.
Server Stats
  • Execution time: 0.38s
  • Memory usage: 2.21MB
  • Database queries: 33
  • GZIP: Disabled
  • Server load: 0.82

Asterisk cmd SetAccount

Note: This function is deprecated. It has been replaced by Set(CDR(accountcode)=[account]) in latest SVN.

Synopsis:

 Sets account code

Description:

 SetAccount([account])

Set the channel account code for billing purposes.

Return codes

Always returns 0.

The ACCOUNTCODE variable

The accountcode is available as ${ACCOUNTCODE} from within the dialplan. Therefore you can use for example

  GotoIf($[${ACCOUNTCODE} = 1234]?4:6)

for further processing.

See also




Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ

Created by oej, Last modification by chandave on Fri 12 of Oct, 2007 [06:52 UTC]

Comments Filter

SetAccount has been deprecated

by Dennis D on Sunday 11 of November, 2007 [04:25:01 UTC]
SetAccount has been deprecated in favor of the Set(CDR(accountcode)=account).

by Nicholas Blasgen on Sunday 05 of August, 2007 [19:23:07 UTC]
Oliver, as the NOTE at the top of the page says, this function doesn't exist anymore in 1.4+. Please use Set(CDR(accountcode)=account)

by oliver on Monday 02 of April, 2007 [03:09:36 UTC]
Trying to test SetAccount with Asterisk 1.4.1, and simply adding the following line before the Dial:
exten => _1NXXNXXXXXX,n,SetAccount(1122)

When dialing out, I get a "Call failed: denied" on the SIP client,
and the following on the asterisk console:
WARNING32574: pbx.c:1779 pbx_extension_helper: No application 'SetAccount' for extension (siplogin, 18002553700, 4)

Do the accounts need to be pre-declared somewhere, or has the SetAccount syntax changed with v1.4.1 ?

Thanks!

SetAccount Example.

by cian on Monday 04 of April, 2005 [17:29:51 UTC]
Here is an example of how to ask for a billing or AccountCode after someone has dialed a number.

I use this for a Bank that needs to back charge for LongDistance calls. The Code is not authenticated, but can be easily. If there is no code, then the default 999 is entered.

macro-account_calls

exten => s,1,DigitTimeout(6)
exten => s,2,ResponseTimeout(10)
exten => s,3,Wait(4)
exten => s,4,Read(accountcode,billing-3digit,3)
exten => s,5,GotoIf($"${accountcode}" = ""?macro-account_calls,s,10) ;Jump to set account at 999 if nothing entered
exten => s,6,SetAccount(${accountcode})
exten => s,7,Goto(s,12) ;if accountcode is not empty jump to end.
exten => s,10,SetAccount(999)
exten => s,12,NoOp(AccountCode=${accountcode} DialOut=${ARG1})
exten => s,13,Wait(2)
exten => s,13,Playback(pls-wait-connect-call)
exten => s,14,Macro(dialout,${ARG1})


Edit

See also: Authenticate()

by Anonymous on Tuesday 02 of December, 2003 [12:26:14 UTC]
See also: Authenticate with the a option

Example: Authenticate(1234|a)

Please update this page with new information, just login and click on the "Edit" or "Add Comment" button above. Get a free login here: Register Thanks! - support@voip-info.org

Page Changes | Comments

Sponsored by:

Terms of Service Privacy Policy
© 2003-2008 VOIP-Info.org LLC

Powered by bitweaver