I want to build an emergency system for our Lift phone where we want when someone picks up the phone, it will automatically play an announcement or greeting that “if you are in an emergency please press 1 or press pound to hangup”
when the user presses 1, it rings the emergency responder ringgroup and connect the call with emergency responder squad.
Currently I used this approach but guide me further as this is not working on off-hook
Extension context changed to emergency-lift
[emergency-lift]
exten => s,1,Answer()
exten => s,n,Wait(1) ; Optional pause before TTS
exten => s,n,Playback(demo-congrats)
;exten => s,n,Flite("If This is an emergency. Please press one to connect to the operator.")
exten => s,n,Hangup()
There is insufficient information to know if hot line calling is even possible, for your hardware, but I’d suggest that just leaving the phone off hook for more than a few seconds needs to be considered an emergency, just as much as pressing a specific key.
So it is SIP, but your dialplan is optimised for analogue. You haven’t provided details of the phone, so I can’t check whether it supports hotline dialling, and if so, how to enable it.
Assuming GHP61x(W)/GHP62x(W) – Administration Guide - Documentation Center is the right document, and I interpret it correctly, you need to set Off-hook Auto dial, and probably also Off-hook Auto Dial Delay. It says digits, so I don’t think you will be able to use s as the extension.