<div dir="ltr">Ryan, have you implemented a script for this?<div><br></div><div>Basically, there's two possibilities to mark it as missed:</div><div>Either: last_app==voicemail && 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"><<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>></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>
"voicemail_message_len" 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'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'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 "mail on<br>
missed call" 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 <<a href="mailto:rhow@exemail.com.au">rhow@exemail.com.au</a>> wrote:<br>
> Hi,<br>
><br>
> Is there any way to send an email notification of a missed call, no<br>
> voicemail left?. Or even if a voicemail is left I guess, that isn't a<br>
> biggy... just so if someone rings and hangs up, or rings and voicemail<br>
> answers but no message.<br>
><br>
> I'm thinking something that goes in here like: <action<br>
> application="email" data="something here"/><br>
><br>
> <action application="bridge"<br>
> data="user/${dialed_extension}@${domain_name}"/><br>
> <insert in here><br>
> <action application="answer"/><br>
> <action application="sleep" data="1000"/><br>
> <action application="bridge" data="loopback/app=voicemail:default<br>
> ${domain_name} ${dialed_extension}"/><br>
><br>
><br>
> But that wouldn't capture when they hang up before voicemail answering<br>
> would it ?<br>
><br>
> I guess I could do something like application="socket" and then write an<br>
> event socket program that sends an email. If there isn't already<br>
> something out there that does it. Otherwise I'll leave this for another<br>
> day coz it is a bit beyond my current magic ability, I need to level up :P<br>
><br>
> Thanks again!<br>
><br>
> Ryan<br>
><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div></div>