I have to send a custom SIP response code (compliant to RFC3261) to the calling party on a specific condition (defined by a value of a dialplan variable). Do you know if there is any way to achieve it with dialplan functions?
For instance, something like this:
exten => s,n,Set(ResponseCode=<VALUE>)
If this is supported, could you provide the correct syntax?
P.S. Asterisk 13.21, PJSIP channel drvier.