Here is one way to do it (works in 1.4.22-1.4.30 at least) exten => s,n,Dial(SIP/XXXX,10) exten => s,n,Dial(SIP/XXXX,90,m(default)) This snippet will ring XXXX for 10 seconds with Ringing, then ring XXXX for 90 seconds or until answered with MOH.
_____ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Matteo Campana Sent: Thursday, June 10, 2010 8:03 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Ring + Music on Hold in the same call Hi list, is there a way to achieve in asterisk (version 1.4.x) the behavior described below? * a caller place a call to an extension, and I want the caller hears the extension ringing for some seconds, and then hears the music on hold (or a courtesy message) in the same call; * the called extension must continue to ring until answered. With the m(...) option in the Dial command (like the example below) asterisk provides only music on hold while the phone rings. exten => s,n,Dial(SIP/XXXX,30,m(default)) I can not use queues because the requirements is to have 1 call and not a lot of calls. Thanks in advance, Matteo
-- _____________________________________________________________________ -- 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