[asterisk-users] A Leg Control on Asterisk Callback

Suity Zsolt suich at yunord.net
Tue Oct 30 07:56:55 CDT 2007


Douglas Garstang wrote:

> [LegA]
> exten => _X.,1,Dial(SIP/${EXTEN}@provider)
> exten => _X.,n,Playback(tt-monkeys)
> 
> I wanted to have control over the call both before and after it is 
> placed. I wanted to be able to play a prompt to the caller before the 
> call is placed to the destination number. However, since we've dialled 
> the A party already, we have no control over the dial plan anymore after 
> they have answered, and I can't play prompts.

If you want to play (just) an anouncement, add option A() to Dial command:
A(x): Play an announcement (x.gsm) to the called party.

or M(), if You want to do more:

M(x): Executes the macro (x) upon connect of the call (i.e. when the 
called party answers)

--
Suich



More information about the asterisk-users mailing list