Play message to caller depending on dial pattern in outbound route


#1

Hey Community,
I would like to add a messages to the caller on certain outbound routes before the number is dialled.

As an exemple, if someone is calling a “premium-rate numbers”, I would like to warn the caller with a message like " be aware you are calling a premium number that costs XX cts per minute".
So, all numbers called starting 09xxx (here in CH), the caller will get that message from a specific outbound route with the right dial pattern.

Any easy way implementing this with a standard FreePBX distro ?

Thanks in advance
Cedric


(Lorne Gaetz) #2

Prob easiest to use a predial hook to check the value of OUTBOUND_ROUTE_NAME to play a recording.


#3

Thanks Lome.
It looks the way forward indeed.
Cheers