Voice mail detection AVMD

Status
Not open for further replies.

Jiz

Member
Mar 29, 2021
49
1
8
41
I am trying to detect voice mail with mod_avmd and play an audio if beep detected to drop a message to voice mail. By following https://freeswitch.org/confluence/display/FREESWITCH/mod_avmd I have managed to install the module and created the dialplan for inbound call. Beep successfully detected and fires an event avmd::beep
Now, how do I play an audio using this event ? i believe some kind of script is needed to listen the event and execute audio play. Anybody can help with the script and how to use it ? or some work around ?


I have another fusionPBX server in production which is working fine this scenario which is deployed by some one else. Is there anyway to figure it out from that server how it works ?

Event
Code:
RECV EVENT
Event-Subclass: avmd::beep
Event-Name: CUSTOM
Core-UUID: ad557fe7-94e5-4fb5-93b9-a369aee45458
FreeSWITCH-Hostname: debian-2gb-hel1-1
FreeSWITCH-Switchname: debian-2gb-hel1-1
FreeSWITCH-IPv4: 66.888.66.888
FreeSWITCH-IPv6: 2ec1:559:c111:6550::1
Event-Date-Local: 2021-08-31 21:08:08
Event-Date-GMT: Tue, 31 Aug 2021 19:08:08 GMT
Event-Date-Timestamp: 1630436888930580
Event-Calling-File: mod_avmd.c
Event-Calling-Function: avmd_fire_event
Event-Calling-Line-Number: 700
Event-Sequence: 61019
Unique-ID: 00df99fb-e2d0-4ef3-afcf-a96a6dc53481
Call-command: avmd
Beep-Status: DETECTED
Frequency: 499.812687
Frequency-variance: 0.000019
Amplitude: 23663.483743
Amplitude-variance: 88325.268021
Detection-time: 9239993
Detector-resolution: 1
Detector-offset: 0
Detector-index: 0

Thanks
 

Adrian Fretwell

Well-Known Member
Aug 13, 2017
1,415
376
83
Start by having a look in /etc/freeswitch/autoload_configs/lua.conf.xml and see if a event hook has been set up to handle the CUSTOM event subclass.
Something like:

<hook event="CUSTOM" subclass="avnd::beep" script="some-named-script.lua"/>
 
Status
Not open for further replies.