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

Darren Wiebe darren at aleph-com.net
Tue Dec 6 17:21:44 MST 2005


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 that my accountcode is not the extension of the
>customer/user, but is a distinct accountcode (ID).
>
>Oooooooooooooooo... 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 the accountcode for the inbound
>call?
>
>On 12/6/05, Andy Kuo <akuoca at gmail.com> wrote:
>  
>
>>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 works for me pretty well.
>>
>>Andy
>>
>>
>>On 12/6/05, Matt <mhoppes at gmail.com> 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 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 the call), and hence
>>>I can't track the call!
>>>
>>>Can someone suggest a way to either fix this so that accountcodes go
>>>into the CDRs when the ATA/phone forwards the call, or to do the three
>>>forwarding types directly on asterisk?
>>>_______________________________________________
>>>--Bandwidth and Colocation provided by Easynews.com --
>>>
>>>Asterisk-Users mailing list
>>>To UNSUBSCRIBE or update options visit:
>>>
>>>      
>>>
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>    
>>
>>_______________________________________________
>>--Bandwidth and Colocation provided by Easynews.com --
>>
>>Asterisk-Users mailing list
>>To UNSUBSCRIBE or update options visit:
>>
>>http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>
>>    
>>
>_______________________________________________
>--Bandwidth and Colocation provided by Easynews.com --
>
>Asterisk-Users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>  
>


-- 
Darren Wiebe
darren at aleph-com.net
Aleph Communications
ASTPP - Open Source Voip Billing & Calling Cards
www.aleph-com.net/astpp




More information about the asterisk-users mailing list