May 6, 2023, 10:40am
I would like to do something probably simple : when a user takes his phone, before to hear the beep signal, a voice tell him how many message are waiting in his voicebox and after he can make a normal call
My question is where to catch this event and how after the agi script let the user to continue to dial who he wants ?
May 6, 2023, 11:38am
You will need to use analogue phones for this as VoIP phone do on hook dialling, which means that the first thing the PABX knows about the call is when the number called arrives.
To make it work with SIP, you need to configure the phone to automatically dial a preset number.
Most phone models have “Acrion URL” off hook being on of the actions, not real sure how you’d get this work but that’s the only method to determine the handset has been lifted off hook
May 15, 2023, 6:04am
i see but then, is it possible to start the message just after the user has done the numbers and before to do the call ?
i would like also to inform users that the calls are recorded
Yes. Have a look at this:
Despite the frequency with which it arises here in the forum, there is not yet a good resource for learning to use dialplan hooks in FreePBX. This will probably end up in the wiki at some point, but until that happens, here are the broad strokes for leveraging dialplan hooks in FreePBX 14.
What is a dialplan hook?
A dialplan hook refers to several pre-defined FreePBX contexts that exist solely for users to add their own Asterisk Macros to be run at specific locations in the call flow. They all …