thanks Dovid.
On Mon, May 9, 2011 at 5:30 PM, Dovid Bender <[email protected]>wrote:
> John,
>
> You want to do it only after it fails ?
>
> If so you can do something like.
>
> Exten => _X., 1, Dial(SIP/${EXTEN}@<PEER> <SIP/$%7BEXTEN%7D@%3CPEER%3E,20>
> )
> Exten => _X., 2, GotoIf($["${DIALSTATUS}" = "ANSWER"]?10)
> Exten => _X., 4, MusicOnHold()
> Exten => _X., 10, Hangup
>
>
> ----- Original Message -----
> *From:* John Wu <[email protected]>
> *To:* Asterisk Users Mailing List - Non-Commercial
> Discussion<[email protected]>
> *Sent:* Monday, May 09, 2011 10:41
> *Subject:* [asterisk-users] how to play music when dial fail or time out
>
> Hi all,
> I need to support this feature. When caller dial if the dial fail or no
> answer from the
> called number then play a music. So how to achieve that?
>
> Thanks!
>
> ------------------------------
>
> --
> _____________________________________________________________________
> -- 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
>
>
> --
> _____________________________________________________________________
> -- 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
>
--
_____________________________________________________________________
-- 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