Tuesday, October 30, 2007

Re: [asterisk-users] A Leg Control on Asterisk Callback

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

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: