Send a custom SIP response code (PJSIP)

Put the literal value of the desired hangup cause in the Hangup call. Note that the value is the ISDN cause code that corresponds to the SIP response, not the actual SIP response.

(Hangup() is equivalent to Hangup(${HANGUPCAUSE}), but I’m not sure that you can set that “variable”.