Hi
With some recent development, this is entirely possible, you need to be using A2Billing version 2.0.16
We've added two new custom fields in cc_call, where the CDR are stored. you can set the value of the CDR in the dialplan before calling a2billing.php.
Therefore, write some dialplan to get the IP address of the calling party and then insert it as per the following sample dialplan:
Code:
[a2billing]
exten => _X.,1,NoOp(A2Billing Set Custom Var into CDRs table cc_call)
exten => _X.,n,Set(A2B_CUSTOM1="XYZ1234567890")
exten => _X.,n,Set(A2B_CUSTOM2=8888)
exten => _X.,n,Set(CDR(A2B_CUSTOM1)=${A2B_CUSTOM1})
exten => _X.,n,Set(CDR(A2B_CUSTOM2)=${A2B_CUSTOM2})
exten => _X.,n,Agi(a2billing.php,1)
exten => _X.,h,Hangup
The custom fields are not shown on the interface, they are only in the cc_call table, so you'd have to take a look at the table to extract the values.
Joe