<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>hi,</p>
    <p>in asterisk 13.24.1 is something "different" with AMI events
      (precisely Hangup event)</p>
    <p>scenario</p>
    <p>simple call to queue, call is answered by Agent</p>
    <p>in asterisk 13.23.1 is AMI flow like this<br>
    </p>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: Consolas, 'Courier New', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"QueueCallerJoin"</span><span style="color: #d4d4d4;">, </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"AgentCalled"</span><span style="color: #d4d4d4;">,     </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destuniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512601.464"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destlinkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">}</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"AgentConnect"</span><span style="color: #d4d4d4;">,    </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destuniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512601.464"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destlinkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,}</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,          </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512601.465"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,          </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512601.471"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"AgentComplete"</span><span style="color: #d4d4d4;">,   </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destuniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512601.471"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destlinkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,}</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,          </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512601.464"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,          </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512600.457"</span><span style="color: #d4d4d4;"> }</span></div></div>
    <p>but it changed in asterisk 13.24.1 and later (ast 13.26.0 tested)</p>
    <div style="color: #d4d4d4;background-color: #1e1e1e;font-family: Consolas, 'Courier New', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"QueueCallerJoin"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> ,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"AgentCalled"</span><span style="color: #d4d4d4;">,    </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> ,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destuniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.7"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destlinkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,         </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.7"</span><span style="color: #d4d4d4;"> ,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"AgentConnect"</span><span style="color: #d4d4d4;">,   </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> ,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destuniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.7"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destlinkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,         </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.8"</span><span style="color: #d4d4d4;"> ,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"AgentComplete"</span><span style="color: #d4d4d4;">,  </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> ,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destuniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.14"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"destlinkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,         </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.14"</span><span style="color: #d4d4d4;">,</span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div><div><span style="color: #d4d4d4;">{ </span><span style="color: #9cdcfe;">"event"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"Hangup"</span><span style="color: #d4d4d4;">,         </span><span style="color: #9cdcfe;">"uniqueid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;">, </span><span style="color: #9cdcfe;">"linkedid"</span><span style="color: #d4d4d4;">: </span><span style="color: #ce9178;">"1555512879.0"</span><span style="color: #d4d4d4;"> }</span></div></div>
    <p>first Hangup is before AgentConnect</p>
    <p>do you think it can be considered bug? <br>
    </p>
    <p>any ideas where this change happened?<br>
    </p>
    <p><br>
    </p>
    <p>i found only these changes to app_queue<br>
    </p>
    <p><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28125">https://issues.asterisk.org/jira/browse/ASTERISK-28125</a></p>
    <p><a
href="https://github.com/asterisk/asterisk/commit/f23a12244d8286e26554b7658a042f51497c1485">https://github.com/asterisk/asterisk/commit/f23a12244d8286e26554b7658a042f51497c1485</a></p>
    <p><br>
    </p>
    <p>Marek<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
  </body>
</html>