Normally I wouldn't advertise this sort of thing until there was a bug fix, but in this case it's a quick config change fortunately.
Description:
If a call is directed to a SIP device (phone etc) that has number forwarding set, the forwarded call is not accounted for in A2Billing, though it does appear in the log files. The entries in A2Billing show zero call duration. As far as I can tell, a second instance of the agi is called, which the primary instance has no knowledge of. This occurs when the phone issues a 302 redirect. I get the same results when using DID inbound.
It makes sense that redirects be done within A2billing via DID, so the solution is to disable redirects in the dial command
The following flag (i) is decribed below
Quote:
i: Asterisk will ignore any forwarding requests it may receive on this dial attempt. (new in 1.4) Useful if you are ringing a group of people and one person has set their phone to forwarded direct to voicemail on their cell or something which normally prevents any of the other phones from ringing.
As far as I can tell this has been in asterisk since 1.09, but you might want to verify it's in 1.2
Change:
The change is simple, edit the following in a2billing.conf
dialcommand_param_sipiax_friend = "|60|HL(3600000:61000:30000)"
and replace with
dialcommand_param_sipiax_friend = "|60|iHL(3600000:61000:30000)"
note the i just before HL(
regards