<div dir="ltr">We're using Asterisk 14.7.6 and I have a dialplan that ends like this:<div><br></div><div><div> same => n,Dial(SIP/${EXTEN:0:4}@peer1)</div><div> same => n,Set(GLOBAL(EpochAtCallEnd)=${EPOCH})</div><div> same => n,Hangup()</div></div><div><br></div><div>When peer1 hangsup, the priorities after the Dial are executed fine. But when the caller hangsup during the Dial, the cleanup steps aren't done. Why?</div><div><br></div>I did read "Note that on a successful connection, in the absence of the g and G modifiers (below), the Dial command does not return to allow execution of further commands for that extension in that context." at <a href="https://www.voip-info.org/asterisk-cmd-dial/">https://www.voip-info.org/asterisk-cmd-dial/</a> But it seems not to apply because I'm seeing the 'g' behavior without specifying that option, and the 'G' option seems intended for a far more complicated scenario.<div><br></div><div>Cheers,</div><div>David</div></div>