Message before you start calling

for “click to call” using AMI:

Action: Originate
Channel: Local / 10 @ from-internal
Exten: 334 *** 209
Callerid: 10
Priority: 1
Context: from-internal

I want to put a voice message when you lift the handset before dialing the number 334***209

Does anyone have an idea?

in extensions_custom.conf

[claudio-dial]
exten => _X.,1,playback(hello-world)
exten => _X.,n,goto(from-internal,${EXTEN},1)

then change the AMI:

Action: Originate
Channel: Local / 10 @ from-internal
Exten: 334 *** 209
Callerid: 10
Priority: 1
Context: claudio-dial

many thanks I’ll try soon