[general]

[internal]
exten => _.,1,Verbose(PERIODIC_HOOK Crash)
  same => n,Goto(p-hook-test,s,1)


[p-hook-test]
exten => s,1,Verbose(Testing Periodic Hook)

same => n,Set(BEEP_HOOK=${PERIODIC_HOOK(play-custom-recording-beep,s,15)})

same => n,Playback(custom/hello)
same => n,Dial(${PJSIP_DIAL_CONTACTS(6001)})


[play-custom-recording-beep]
exten => s,1,Verbose(Playing recurring beep into ${HOOK_CHANNEL})
  same => n,Wait(.830)