PERIODIC_HOOK setting

Hi
I am trying to implement periodic announcement after every 5 minutes but It starts instantly in starting of call. How to use it to run after every 5 minutes.

exten => s,n,Set(BEEPID=${PERIODIC_HOOK(periodic-hooks1,beep1,300)})

[periodic-hooks1]
;exten => beep1,1,Answer()
exten => beep1,1,NoOp(hello)
;same => n,Set(PERIODIC_HOOK(${BEEPID})=off)
same => n,Playback(beep)
;same => n,Set(PERIODIC_HOOK(${BEEPID})=on)
same => n,NoOp(Done)

There is no delay functionality for initial announcement, it would need to be added.

Thanks @jcolp

Would you like to suggest for someone technical/expert paid asterisk support ,
We need support to enhance our vosk system and other technical queries.

There is a Jobs category on this forum where you can post such requests.

where is the link ?

Or selected when creating a topic.

I need support related to vosk agi , How to see/use jobs forum.

It’s a category on this forum. You can click the “Jobs” link I gave in my prior post, and then “New Topic”. That will create it in the Jobs category.

thanks @jcolp

Hi @jcolp

As suggested , posted in Jobs category but no one replied yet.
what is second way , just asking any suggestion.

I don’t have anything else to add, someone else may comment.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.