the script context (and use the appropriate reply function), or test if a transaction exists (t_lookup_request()) or just try t_reply() and if it fails use sl_send_reply() (if (!t_reply()) sl_send_reply(...)).