You could set a channel variable in the outbound route. You can see all the channel variables listed in the json field of the xml_cdr. If you are not using the accountcode variable for anything else you could set that in the OB route, accountcode is an actual field in the v_xml_cdr table...