Ok i've worked out how to get the userfield to display in the CDR's by adding a line to the "call-log-customers.php".
This is the line i added
$FG_TABLE_COL[]=array (gettext ( "CLI" ), "userfield", "7%", "center", "SORT", "30" );
I changed the dial plan edit to the below to use the "userfield section.
exten => a2b-identify,n(lbl_a2billing-dialler_1),Set(CDR(userfield)=${NewCLI:5:11})
Which i can see in the CLI produces this
(I've replaced the CLI with "040000000" since its my actual phone number)
-- Executing [a2b-identify@a2billing-dialler:22] Set("SIP/carrier-in-00013138", "CDR(userfield)=040000000") in new stack
So that looks like it should be working but when i check the CDR records in a2b its putting some value in there but i have no idea what that value relates too
This is how the CDR displays (i've hidden most of the information in the CDR for obvious reasons).
![Image](http://img267.imageshack.us/img267/6610/68982794.jpg)
i've circled the value i'm talking about. I named the field "CLI" in the php.
I have no idea what that data in that field relates to, its different in every record but seems to always start with 709