I'm trying to make an AMI call. I want to call a number, play an announcement when the call is answered, then call a second number and connect the two when the second call is answered. I an able to make a simple call to two numbers and connect them using the manager API but playing the announcement has me beat. Suggestions anyone? Bruce Ferrell
Maybe drop the call in a Meetme room and have an announcement? On Sun, May 16, 2010 at 10:15 AM, Bruce Ferrell <bferrell at baywinds.org>wrote:> I'm trying to make an AMI call. I want to call a number, play an > announcement when the call is answered, then call a second number and > connect the two when the second call is answered. > > I an able to make a simple call to two numbers and connect them using > the manager API but playing the announcement has me beat. > > Suggestions anyone? > > Bruce Ferrell > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100516/7af70a9c/attachment.htm
Use a dialplan to do what you want and dial that. Originate a call to the first person and point it at context, exten, priority that plays the sound file and then does a dial command to the number you want them to talk to. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ On May 16, 2010, at 7:15 AM, Bruce Ferrell wrote:> I'm trying to make an AMI call. I want to call a number, play an > announcement when the call is answered, then call a second number and > connect the two when the second call is answered. > > I an able to make a simple call to two numbers and connect them using > the manager API but playing the announcement has me beat. > > Suggestions anyone? > > Bruce Ferrell > > -- > _____________________________________________________________________ > -- 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
On Sun, May 16, 2010 at 07:15:50AM -0700, Bruce Ferrell wrote:> I'm trying to make an AMI call. I want to call a number, play an > announcement when the call is answered, then call a second number and > connect the two when the second call is answered. > > I an able to make a simple call to two numbers and connect them using > the manager API but playing the announcement has me beat.Isn't it simple? What am I missing? Action: Originate Channel: $channel_for_first_number Context: whatever Extension: $second_number ... [whatever] exten=> _X.,1,Playback(an-announcement) exten=> _X.,n,Dial(${some_trunk}/${EXTEN}) -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
On Sun, 16 May 2010, Bruce Ferrell wrote:> Suggestions anyone?We all get "stumped" from time to time. A better subject yields better responses. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Bruce-> I'm trying to make an AMI call. I want to call a number, play an > announcement when the call is answered, then call a second number and > connect the two when the second call is answered. > > I an able to make a simple call to two numbers and connect them using > the manager API but playing the announcement has me beat. > > Suggestions anyone?Suggest: -use an accurate subject line -be very specific about the problem -show an example of your script or command sequence that is not working When people search Asterisk archives for a solution they're typically going to search for subject lines containing technical terms related to their problem. -Jeff
Maybe because I am closer to several customers which often make questions like yours. I can supposse you mean that the call is answered by the dahdi channel as soon as you set the originate command on AMI, I supposse you are using an FXO channel connected to your POTS line. Am I right? Jose Flores Galicia <<FloJoSe at gmail.com>> BriefCode && Code Based Training 2010/5/16 Bruce Ferrell <bferrell at baywinds.org>> I'm trying to make an AMI call. I want to call a number, play an > announcement when the call is answered, then call a second number and > connect the two when the second call is answered. > > I an able to make a simple call to two numbers and connect them using > the manager API but playing the announcement has me beat. > > Suggestions anyone? > > Bruce Ferrell > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100516/a1703ce9/attachment.htm
Bruce-> On 05/16/2010 11:22 AM, Jeff Brower wrote: >> Bruce- >> >> >>> I'm trying to make an AMI call. I want to call a number, play an >>> announcement when the call is answered, then call a second number and >>> connect the two when the second call is answered. >>> >>> I an able to make a simple call to two numbers and connect them using >>> the manager API but playing the announcement has me beat. >>> >>> Suggestions anyone? >>> >> Suggest: >> >> -use an accurate subject line >> >> -be very specific about the problem >> >> -show an example of your script or command sequence >> that is not working >> >> When people search Asterisk archives for a solution they're typically going to search for subject lines containing >> technical terms related to their problem. >> >> -Jeff >> > Jeff > > I appreciate that you think you're trying to be helpful to the list but > your response indicates that either didn't read the question or have no > useful answers beyond a snark and have succeeded only in cluttering the > list with meaningless noise.You asked for help from the group, true? Then try to respect the group. A well-indexed and searchable archive is crucial to the success of an online group. You may not be happy with me and my comments, but at the least I would hope your subject lines are meaningful in the future. -Jeff