I've been experimenting with using local channels in the dial plan which opens up some interesting possibilities with A2B.
If you want to simultaneously dial several numbers for a user (home, office, cell) through A2Billing, it's a little tricky as things stand at the moment.
One solution is to modify the Class.RateEngine.php file, where the dialstring is set, to pass through some additional params:
Code:
$dialstr = "$tech/$prefix$destination@$ipaddress".$dialVOIP.$dialparams;
For example to dial iax2 user rodney, you could pass through:
Code:
&iax2/rodney
I've tried this, and it works fine.
However by passing through a local channel further possibilities are opened up, e.g.
Code:
local/03456789@a2billing
This will start a second call out on a local channel (i.e. now we have two A2Billing calls going out). When the first call is answered, the second will terminate (or visa versa) so only one of them will end up being charged.
One would have to allow multiple simultaneous calls on the account.
~ Rodney