[Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread Matt
I want to allow my users to be able to Call Forward Unconditional Call Forward Busy Call Forward No Answer And curently I am doing this via my ATA and phone settings, however this has the problem that when a call is forwarded it goes out without an accountcode (Even though the ATA is forwarding

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread C F
Create a context for that ATA that always applies the account code in the DP before it you issue the dial command. On 12/6/05, Matt [EMAIL PROTECTED] wrote: I want to allow my users to be able to Call Forward Unconditional Call Forward Busy Call Forward No Answer And curently I am doing

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread Andy Kuo
I use SetAccount(${EXTEN}) when the extension gets the call. The original dialed extension will be recorded as AccountCode in CDR, before the call is forwarded. The 1st field in CDR will be the extension your customer, the 2nd will be the caller (source), the 3rd will be the forwared number. It

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread Matt
Hrmm that works except that my accountcode is not the extension of the customer/user, but is a distinct accountcode (ID). Oooo... you are setting the accountcode when you GET the call. I guess I could do that... before I go to do too much work, is there a way to get asterisk to know

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread C F
I'm not sure what you are trying to set it to, I'm assuming that some of the stuff you want is available here: http://www.voip-info.org/wiki-asterisk+variables or in README.variables in /usr/src/asteriks (or one of the sub folders) Look at RDNIS or DNID, either one might have the dialded number

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread Matt
Right, but I can't create a context for every device :) On 12/6/05, C F [EMAIL PROTECTED] wrote: I'm not sure what you are trying to set it to, I'm assuming that some of the stuff you want is available here: http://www.voip-info.org/wiki-asterisk+variables or in README.variables in

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread C F
Why cant you create a context for every device? It can be just a one line context or a context that is based on a template. I don't see why you cant. On 12/6/05, Matt [EMAIL PROTECTED] wrote: Right, but I can't create a context for every device :) On 12/6/05, C F [EMAIL PROTECTED] wrote: I'm

Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?

2005-12-06 Thread Darren Wiebe
You have to do that from the dialplan. I have a script that looks up the DID in a database and sets the accountcode. It does some other stuff also but that could easily be cut out. It's part of ASTPP. Drop me a line if you need a copy. Darren Wiebe Matt wrote: Hrmm that works except