i started to wonder why some stuff is missing from accounting records and looks like the reason is that pv $ai is not working. i have in my script:
if (is_present_hf("P-Asserted-Identity")) { xlog("L_INFO", "P-A-I header <$(hdr(P-Asserted-Identity))> with URI <$ai>\n");
and i get to syslog:
Nov 1 10:50:19 localhost /usr/sbin/sip-proxy[1241]: INFO: P-A-I header sip:jh@test.fi with URI <<null>>
-- juha