[asterisk-tech] AGI Problem

Aragon Gouveia aragon at phat.za.net
Thu Oct 30 17:37:04 SAST 2008


Howdy,

| By waveduke at web.de <waveduke at web.de>
|                                          [ 2008-10-30 15:05 +0200 ]
> I have a little problem with my billing system, maybe you can help me out there...
> I programmed a billing system based on the astcc code. I wanted to add some 'real-time' calculation of the callcost so the customer can see how much money is left in his prepaid account while he is incall. My problem is now that my 'real-time' calculation already starts when the dial-command ist executed. But it should not start before the call is established. The variables like 'ANSWEREDTIME' are not set before the dial() application exited. Therefore they give no information while still incall. 
> 
> Is there a way to determine when the call is established while executing dial()?

Perhaps Dial()'s 'M' or 'G' flags will help you?  See here:

http://www.voip-info.org/wiki-Asterisk+cmd+dial


Regards,
Aragon


More information about the tech mailing list