[Asterisk-Users] Beginner: Dial and Playback

Steven Critchfield critch at basesys.com
Fri May 23 14:58:08 MST 2003


On Fri, 2003-05-23 at 14:23, Frank N. wrote:
> How can I dial a number (xxx) xxx-xxxx and play a sound file when the
> call is answered.
> So far I got
>  
> exten => x,1,Dial, Zap/1/(xxx)xxx-xxxx|tt
> exten => x,2,Playback,Somefile
> exten => x,3,Hangup
>  
> of course when the call is answered priority 2 is never executed.
> If someone can tell me where to look for that kind of answers I'll be
> glad to search by myself. For now, I just don't know where to start. 

If you use the extensions file, then you will have to do something like
dial an extention to initiate the call. This probably isn't what you
want. If you are wanting to have asterisk dial out and play a sound
automatically, you want to look at the sample.call file. 
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list