Offhook IVR PLAY to an Extension in the lift for emergency

Hi Team,

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.

1 Like

ok and how can I achieve this?

You haven’t provided any information about the phone and how it is connected. A link to the administrator manual would be useful.

1 Like

image

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.

I will be using grandstream grand-stream-ghp-610ghp-610w and second one is cisco7841 3pcc

SIP Phone.

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.