<div dir="ltr">Ryan, have you implemented a script for this?<div><br></div><div>Basically, there&#39;s two possibilities to mark it as missed:</div><div>Either: last_app==voicemail &amp;&amp; voicemail_message_len is set.</div>

<div>OR: hangup_cause==ORIGINATOR_CANCEL</div><div><br></div><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 9:34 AM, Avi Marcus <span dir="ltr">&lt;<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

As of Jan 4th, mod_voicemail now sets the channel variable<br>
&quot;voicemail_message_len&quot; with the message length of the voicemail that<br>
was left.<br>
So now all you need is a post-call processor. E.g. you can have your<br>
xml_cdr script check - if the call had normal_clearing with last_app<br>
of bridge, then someone picked up. (I think... I didn&#39;t get around to<br>
making this yet.)<br>
If it was last_app of voicemail, and voicemail_message_len is set,<br>
then an email already went out via the voicemail application.<br>
Otherwise it&#39;s a missed call and run you script.<br>
<br>
Or I suppose you could do this as a lua script in the hangup hook with<br>
session_in_hangup hook or something.<br>
<br>
If someone can wikify dialplan code and a lua script we can get it working...<br>
I suppose the email would go to the same place as the voicemail goes<br>
to. It would be based on a separate user variable about &quot;mail on<br>
missed call&quot; though..<br>
<span class="HOEnZb"><font color="#888888"><br>
-Avi Marcus<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Jan 10, 2012 at 9:22 AM, Ryan How &lt;<a href="mailto:rhow@exemail.com.au">rhow@exemail.com.au</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; Is there any way to send an email notification of a missed call, no<br>
&gt; voicemail left?. Or even if a voicemail is left I guess, that isn&#39;t a<br>
&gt; biggy... just so if someone rings and hangs up, or rings and voicemail<br>
&gt; answers but no message.<br>
&gt;<br>
&gt; I&#39;m thinking something that goes in here like: &lt;action<br>
&gt; application=&quot;email&quot; data=&quot;something here&quot;/&gt;<br>
&gt;<br>
&gt; &lt;action application=&quot;bridge&quot;<br>
&gt; data=&quot;user/${dialed_extension}@${domain_name}&quot;/&gt;<br>
&gt; &lt;insert in here&gt;<br>
&gt; &lt;action application=&quot;answer&quot;/&gt;<br>
&gt; &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>
&gt; &lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default<br>
&gt; ${domain_name} ${dialed_extension}&quot;/&gt;<br>
&gt;<br>
&gt;<br>
&gt; But that wouldn&#39;t capture when they hang up before voicemail answering<br>
&gt; would it ?<br>
&gt;<br>
&gt; I guess I could do something like application=&quot;socket&quot; and then write an<br>
&gt; event socket program that sends an email. If there isn&#39;t already<br>
&gt; something out there that does it. Otherwise I&#39;ll leave this for another<br>
&gt; day coz it is a bit beyond my current magic ability, I need to level up :P<br>
&gt;<br>
&gt; Thanks again!<br>
&gt;<br>
&gt; Ryan<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div>