Hey @miconda,

Yes, calling it in CANCEL block. More complete script would be like this:

if (is_method("CANCEL")) {
                if($hdr(Reason)=="SIP;cause=487;text=ORIGINATOR_CANCEL") t_set_no_e2e_cancel_reason(1);
                if (t_check_trans()) route(RELAY);
                exit;
        }

Putting a xlog there shows that the CANCEL matches properly there but no change in reason (cannot be deactivated).

Ta,
DanB


Reply to this email directly or view it on GitHub.