<div dir="ltr">Hi guys,<div><br></div><div>I am using the api_hangup_hook variable to let my internal system know when a call is terminated.</div><div><br></div><div>Every now and then  my calling party cancels the SIP Invite before my dial plan is finished.  IN this case FreeSWITCH properly responds with a &quot;487 Request Terminated&quot;  </div>
<div><br></div><div>However, this does not fire the command assigned to the api_hangup_hook variable.  This is probably also proper since the call has not yet been established.  </div><div><br></div><div>My question is whether there is a place somewhere where I can hook into the processing of the CANCEL SIP message.</div>
<div><br></div><div>Thank you</div><div>Oleg</div></div>