We're still wrapped in  if ((tsxdata != NULL) && (tsx->state == PJSIP_TSX_STATE_COMPLETED)), so this can only be called on a final response, not a send.