[Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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 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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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 [EMAIL PROTECTED] wrote: I want to allow my users to be able toCall Forward UnconditionalCall Forward Busy Call Forward No AnswerAnd curently I am doing this via my ATA and phone settings, howeverthis has the problem that when a call is forwarded it goes out withoutan 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 gointo the CDRs when the ATA/phone forwards the call, or to do the threeforwarding types directly on asterisk? ___--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo 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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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 the accountcode for the inbound call? On 12/6/05, Andy Kuo [EMAIL PROTECTED] 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 [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 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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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 (which is the extension). In any case if you create an outgoing context just for that device, then you shouldn't have a problem setting it to whatever you want, as only that device will use it. On 12/6/05, Matt [EMAIL PROTECTED] wrote: 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 the accountcode for the inbound call? On 12/6/05, Andy Kuo [EMAIL PROTECTED] 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 [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 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 ___ --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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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 /usr/src/asteriks (or one of the sub folders) Look at RDNIS or DNID, either one might have the dialded number (which is the extension). In any case if you create an outgoing context just for that device, then you shouldn't have a problem setting it to whatever you want, as only that device will use it. On 12/6/05, Matt [EMAIL PROTECTED] wrote: 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 the accountcode for the inbound call? On 12/6/05, Andy Kuo [EMAIL PROTECTED] 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 [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 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 ___ --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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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 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 (which is the extension). In any case if you create an outgoing context just for that device, then you shouldn't have a problem setting it to whatever you want, as only that device will use it. On 12/6/05, Matt [EMAIL PROTECTED] wrote: 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 the accountcode for the inbound call? On 12/6/05, Andy Kuo [EMAIL PROTECTED] 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 [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 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 ___ --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
Re: [Asterisk-Users] Call Forwarding with Account Code.. can it be done?
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). 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 the accountcode for the inbound call? On 12/6/05, Andy Kuo [EMAIL PROTECTED] 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 [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 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 [EMAIL PROTECTED] Aleph Communications ASTPP - Open Source Voip Billing Calling Cards www.aleph-com.net/astpp ___ --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