How do I


I would like to achieve the following.

A call comes in from ZAP channel
When I answer, before I am connected I hear a recorded message which would depend on which option the caller chose.

For example, I pick up the phone and here “sales” before I am connected or I pick up the phone and here “accounts” before I am connected.

Something like:

exten => s,1,Answer()
exten => s,n,Dial(SIP/100)
exten => s,n,Playback(sales)

But I understand we wouldn’t move on from DIAL until the call ended :frowning:



Let me ask it another way.

During a call, is it possible to press a key and have a sound file played to both parties?

look in features.conf

testfeature => #9,callee,Playback,tt-monkeys ;play tt-monkeys to callee if #9 was pressed

Thanks Reaper!

dont forget to enable do in [globals]