<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Checking if there was a VM left was indeed a problem, which has been fixed quite a while ago (Thanks Moc!).</div><div class="gmail_quote">It&#39;s in: variables-&gt;voicemail_message_len which has the length in seconds.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">I check my CDRs for this:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="gmail_quote">$outside_call &amp;&amp; $leg==&quot;a&quot; &amp;&amp; ##that the outside call variable was set, and it&#39;s leg A -- we only want inbound calls to trigger this, not outbound calls that weren&#39;t picked up. If you have multiple transfers inside an IVR it might not catch them....</div><div class="gmail_quote">( ($last_app==&quot;voicemail&quot; &amp;&amp; (!isset($voicemail_message)||$voicemail_message!=1)) ||$hangup_cause==&quot;ORIGINATOR_CANCEL&quot; )   ) //3 options: the last_app was voicemail AND voicemail_message_len wasn&#39;t set (if it was set we&#39;ll have a VM email) OR we had an originator cancel so they never even reached the VM.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Sorry for the pidgin code, it&#39;s from hacked PHP code that processes the xml_cdrs...</div><div class="gmail_quote"><br></div><div class="gmail_quote">-Avi </div></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Fri, Apr 17, 2015 at 8:48 PM, Chris Tunbridge <span dir="ltr">&lt;<a href="mailto:blasterjr@gmail.com" target="_blank">blasterjr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">as for the voice mail, I&#39;m not 100% certain if there&#39;s a way to check if a voicemail was left, however you can check to see where the hangup occurred typically it mentions the app in event.</div></blockquote></div></div></div>