Take a look at the A(x) and m options to dial.  In the Asterisk CLI "core show 
application dial" for a the docs to Dial(). 

-----Original Message-----
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jim Boykin
Sent: Thursday, August 18, 2011 9:12 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Playback while dialing out

Hi, please help me with dialplan below.

My current dialplan looks like this, it plays a file and then connects the 
caller to my phone by dialing out. As you can see, it waits for file to be 
played completely before dialing out. What I would really like is that it 
should play the file (preferably repetitively) and simultaneously dial out the 
number, playback should stop as soon as dial answers or early media detected.

exten => 500,1,Answer
exten => 500,2,Playback(wait-while-we-connect-you)
exten => 500,3,Dial(SIP/14085551234@myprovider)

How do I make it work?

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to