Hi, I would like to know, what would be the best way to handle email alerts for missed calls. 1) Only send the notification if the call was not answered at all. for example when it was ringing a group of extensions. Maybe use a special status code or custom event header? 2) When the call was answered by voicemail and only if the caller did not leave a voicemail, it should be considered missed. 3) If a caller hangs up a call within a IVR. Thanks. -- Aron Podrigal - //Be happy :-)
You can use a event hook in lua on the hangup events (don't know them off the top of my head) and then you can check them to see if it was originator cancel or a answered elsewhere on the body of the event. On Fri, Apr 17, 2015 at 11:22 AM, Podrigal, Aron <aronp@guaranteedplus.com> wrote:
Hi,
I would like to know, what would be the best way to handle email alerts for missed calls.
1) Only send the notification if the call was not answered at all. for example when it was ringing a group of extensions. Maybe use a special status code or custom event header?
2) When the call was answered by voicemail and only if the caller did not leave a voicemail, it should be considered missed.
3) If a caller hangs up a call within a IVR.
Thanks.
-- Aron Podrigal - //Be happy :-)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
as for the voice mail, I'm not 100% certain if there'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. On Fri, Apr 17, 2015 at 11:36 AM, Chris Tunbridge <blasterjr@gmail.com> wrote:
You can use a event hook in lua on the hangup events (don't know them off the top of my head) and then you can check them to see if it was originator cancel or a answered elsewhere on the body of the event.
On Fri, Apr 17, 2015 at 11:22 AM, Podrigal, Aron <aronp@guaranteedplus.com
wrote:
Hi,
I would like to know, what would be the best way to handle email alerts for missed calls.
1) Only send the notification if the call was not answered at all. for example when it was ringing a group of extensions. Maybe use a special status code or custom event header?
2) When the call was answered by voicemail and only if the caller did not leave a voicemail, it should be considered missed.
3) If a caller hangs up a call within a IVR.
Thanks.
-- Aron Podrigal - //Be happy :-)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Checking if there was a VM left was indeed a problem, which has been fixed quite a while ago (Thanks Moc!). It's in: variables->voicemail_message_len which has the length in seconds. I check my CDRs for this: $outside_call && $leg=="a" && ##that the outside call variable was set, and it's leg A -- we only want inbound calls to trigger this, not outbound calls that weren't picked up. If you have multiple transfers inside an IVR it might not catch them.... ( ($last_app=="voicemail" && (!isset($voicemail_message)||$voicemail_message!=1)) ||$hangup_cause=="ORIGINATOR_CANCEL" ) ) //3 options: the last_app was voicemail AND voicemail_message_len wasn't set (if it was set we'll have a VM email) OR we had an originator cancel so they never even reached the VM. Sorry for the pidgin code, it's from hacked PHP code that processes the xml_cdrs... -Avi On Fri, Apr 17, 2015 at 8:48 PM, Chris Tunbridge <blasterjr@gmail.com> wrote:
as for the voice mail, I'm not 100% certain if there'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.
participants (3)
-
Avi Marcus
-
Chris Tunbridge
-
Podrigal, Aron