call an external mobile number after voicemail answer

Status
Not open for further replies.

Rubik

New Member
Jan 31, 2018
16
1
3
48
Hi All,

we need to make the fusionpbx call a specific mobile number after a voice mail was created

so the call scenario should be the following:
1. an incoming call calls a destination in fustionpbx
2. the destination is being redirected to voicemail
3. the caller left a message in the voicemail
4. fusionpbx generates a call to a predefined mobile number with the voice-message to let the calle be aware that someone has left him a message

although i am aware to the ability to send an email upon voicemail message create still we need to generate a call so the calle will get a live call only once the voicemail has been recorded

any idea how can we achieve such a thing?

the reason for a call after a voicemail has been generated and not a simple email or an SMS is the need in our case to wake up the person (the project manager in our case) once someone has left him a message outside the working hours
 

KonradSC

Active Member
Mar 10, 2017
166
99
28
This is the first thing that came to mind...

Start with a dialplan step that matches the Destination & Time Condition. If the conditions are true, then you run a lua script when the call is terminated. You would use the "api_hangup_hook" to hook the script to the end of the call.

https://freeswitch.org/confluence/display/FREESWITCH/api_hangup_hook

The script would verify that there is a voicemail, generate the call to the manager, and play some sort of message.
 
  • Like
Reactions: JamesBorne
Status
Not open for further replies.