[asterisk-users] Solved: [SetAccount in extensions.conf]
Matt
mistershiny2 at yahoo.com
Wed Jun 6 23:43:12 CDT 2007
> I'm using Asterisk 1.4 and I'm wanting to set an
> account code for incoming calls. In the
> extensions.conf file I have the following:
>
> exten => s,1,SetAccount(1234)
> exten => s,n,Dial(SIP/1234)
>
> Then when I dial the extension the following error
> message pops up in the CLI:
>
> [Jun 6 19:12:40] WARNING[28167]: pbx.c:1783
> pbx_extension_helper: No application 'SetAccount'
> for
> extension (inbound, XXXXXXXXXX, 1)
>
> I already have the accountcode set up in sip.conf
> for
> that SIP phone and there are no problems with that.
> Does anyone know what the problem is? On
> voip-info.org, another person had the same problem
> in
> the comments section, but seemed to think it was a
> syntax difference and that SetAccount() would work
> for
> *1.2.
>
> Any info will be greatly appreciated.
> Thank You,
> -Matt
An easy way to set an account code for the above
example for extensions.conf is the following:
exten => s,1,Set(CDR(accountCode)=1234)
exten => s,n,Dial(SIP/1234)
Hope this helps others. I was consulting some other
people and they solved the problem before the
digium-users could.
-Matt
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
More information about the asterisk-users
mailing list