Play audio file to caller after pick up

Hi,

I’m trying to play an audio file both to the caller and to the called as soon as the call is picked up by the called. With the A option in the Dial command I have already succeeded in playing the audio file to the called party. But I’m having a real bad time playing this file for the caller party. Have anyone already done that? Does anyone know if this is even possible?

What I’m trying to do is to reproduce Brazilian reverse charge call system. Here, when the called party pick up the call, the called hears an audio file telling them they are receiving a reverse charge call, while the caller receives an audio message telling them to say their name and the city from where they are speaking.

Try the goto option, followed by a call to Bridge in one leg.

Hi
Enjoy :smile:

http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial

Example

exten => dial,1,Answer
exten => dial,n,Set(phone="SIP/1000@IP_dial_formula")
exten => dial,n,Set(Greeting="A(/var/www/html/prompt/greeting_out)")
exten => dial,n,Dial(${phone}||${Greeting})

[quote=“franch”]Hi,

I’m trying to play an audio file both to the caller and to the called as soon as the call is picked up by the called. With the A option in the Dial command I have already succeeded in playing the audio file to the called party. But I’m having a real bad time playing this file for the caller party. Have anyone already done that? Does anyone know if this is even possible?

What I’m trying to do is to reproduce Brazilian reverse charge call system. Here, when the called party pick up the call, the called hears an audio file telling them they are receiving a reverse charge call, while the caller receives an audio message telling them to say their name and the city from where they are speaking.[/quote]