[asterisk-users] listen to prompt before bridging call.

Mark Michelson mmichelson at digium.com
Fri Apr 24 16:43:49 CDT 2009


Deepak wrote:
> Hi,
> Can someone please help to resolve the followinng issue:
>  
> We would like an asterisk user to call a number and when the called 
> party picks up the phone, we play a message (press 1 to accept call, 2 
> to reject call). Only when the called party presses "1", do we bridge 
> the call and the two parties can communicate.
>  
> What we would like though is that the person who makes the call be able 
> to listen to the message "press 1 to accept call, 2 to reject call) that 
> is played to the called party BUT not be able to communicate with him 
> untill he presses "1".
>  
> Is this possible in asterisk using php/agi?
>  
> Any pointers hightly appreciated.
>  

I can come up with an easy way to do part of what you want. If you are using the 
Dial application, you can use the M option to run a macro on the called channel 
when he answers. Within that macro, you can play prompts to accept or reject the 
call.

The problem is that this does not allow for the calling party to also hear the 
prompts.

Mark Michelson



More information about the asterisk-users mailing list