<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17097" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>John,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You want to do it only after it fails
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If so you can do something like.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Exten => _X., 1, Dial(<A
href="mailto:SIP/${EXTEN}@<PEER>,20">SIP/${EXTEN}@<PEER></A>)<BR>Exten
=> _X., 2, GotoIf($["${DIALSTATUS}" = "ANSWER"]?10)<BR>Exten => _X., 4,
MusicOnHold()</FONT></DIV>
<DIV><FONT face=Arial size=2>Exten => _X., 10, Hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jwjohn0@gmail.com href="mailto:jwjohn0@gmail.com">John Wu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">Asterisk Users Mailing List -
Non-Commercial Discussion</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 09, 2011 10:41</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [asterisk-users] how to play
music when dial fail or time out</DIV>
<DIV><BR></DIV>Hi all,<BR>I need to support this feature. When caller dial if
the dial fail or no answer from the<BR>called number then play a music. So how
to achieve that?<BR><BR>Thanks!<BR>
<P>
<HR>
<P></P>--<BR>_____________________________________________________________________<BR>--
Bandwidth and Colocation Provided by <A
href="http://www.api-digital.com">http://www.api-digital.com</A> --<BR>New to
Asterisk? Join us for a live introductory webinar every
Thurs:<BR>
http://www.asterisk.org/hello<BR><BR>asterisk-users mailing list<BR>To
UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users</BLOCKQUOTE></BODY></HTML>