Aaron Clauson
2004-Oct-02 15:56 UTC
[Asterisk-Users] Billing Applications - When does the bill start??
Hi, I have been having a look at the code for asteriskprepaid and it appears as if the billing time starts when the Dial command is called. Is this correct? Does the caller get billed for the dialling time and the call time or just the call time? Although going off some comercial calling cards I have used I think they start billing when you begin thinking about the call. Thanks, Aaron __________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com
Matthew Marlowe
2004-Oct-02 16:03 UTC
[Asterisk-Users] Billing Applications - When does the bill start??
On Sat, 2 Oct 2004 15:56:06 -0700 (PDT), Aaron Clauson <aza_rc@yahoo.com> wrote:> Hi, > > I have been having a look at the code for > asteriskprepaid and it appears as if the billing time > starts when the Dial command is called.Keep in mind that the code you are looking at is just sample code... Modify it if need be.> Is this correct? Does the caller get billed for the > dialling time and the call time or just the call time?It's neither incorrect or correct. The caller will be billed however you decide they will be billed. The script can be changed.> Although going off some comercial calling cards I have > used I think they start billing when you begin > thinking about the call. > > Thanks, > Aaron > > __________________________________ > Do you Yahoo!? > Y! Messenger - Communicate in real time. Download now. > http://messenger.yahoo.com > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Aaron Clauson
2004-Oct-02 17:05 UTC
[Asterisk-Users] Re: Billing Applications - When does the bill start??
Ok, the mistake I made was thinking asterisk-prepaid was talking to asterisk using STDIN and STDOUT, whereas in fact it is calling the asterisk C methods directly. It's a bit to get the head around trying to work out how best to create a small custom application: 1. AGI using STDIN & STDOUT, 2. AGI using the management socket (i.e. EAGI?), 3. AGI using asterisk C calls directly. Option 1 is the easiest but you get only get limited information and no events about call progress. Regards, Aaron>matthew.marlowe at gmail.com wrote: >On Sat, 2 Oct 2004 15:56:06 -0700 (PDT), AaronClauson <aza_rc at yahoo.com> wrote:>> Hi, >> >> I have been having a look at the code for >> asteriskprepaid and it appears as if the billingtime>> starts when the Dial command is called. > >Keep in mind that the code you are looking at is justsample code...>Modify it if need be. > >> Is this correct? Does the caller get billed for the >> dialling time and the call time or just the calltime?> >It's neither incorrect or correct. The caller willbe billed however>you decide they will be billed. The script can bechanged.> >> Although going off some comercial calling cards Ihave>> used I think they start billing when you begin > thinking about the call. >> >> Thanks, >> Aaron__________________________________ Do you Yahoo!? Y! Messenger - Communicate in real time. Download now. http://messenger.yahoo.com