In Dial-plan how to detect SIP response 4xx/5xx/6xx

If you are referring to adding a hangup handler[1] then you can use the variables functionality in call files to set one.

[1] Hangup Handlers - Asterisk Project - Asterisk Project Wiki

1 Like