Your question is ...
dlal wrote:
WHY Asterisk is NOT aware of call hanging up
Personally, I have not clue, but this has nothing to do with A2Billing. An in the VoIP world in general, it is well known that sometimes, channels are not cleared down correctly. That why many VoIP base home phone service provider will put an absolute timeout on all calls to make sure that if the hangup is not detect, the absolution timeout will kill the channel anyway. Usually, it is set to 1h. The down side of this is that you cannot talk on these lines for more than 1 hour. The line will be disconnected and you will have to call again. Not all of them do the absolute timeout. Personally, I think that rtptimeout is much more stylish and it will not wait for up to 1h to free valuable resources not to mention the duration of a messy situation.
Oh, and yeah, definitely, this has nothing to do with a2billing. It may even be your provider. Or it maybe be SIP packet routing issue, it can be anything. But once a2billing connects the 2 calls, all it does is wait for the call to be completed. Asterisk is supposed to report the end of the call to A2Billing, not the other way around.